# `viw_mftworkorder_salsalesorder` (view)


- **Updatable:** NO

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `bProduction` | `bit(1)` | YES |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `tCreateDate` | `datetime` | NO |
| 5 | `sMakePerson` | `varchar(255)` | NO |
| 6 | `sFormId` | `varchar(100)` | NO |
| 7 | `iOrder` | `int` | NO |
| 8 | `sBillNo` | `varchar(255)` | NO |
| 9 | `sMemo` | `mediumtext` | YES |
| 10 | `bCheck` | `bit(1)` | NO |
| 11 | `tCheckDate` | `datetime` | YES |
| 12 | `sCheckPerson` | `varchar(255)` | YES |
| 13 | `dAdvanceMoney` | `decimal(18,6)` | NO |
| 14 | `dRealAdvanceMoney` | `decimal(18,6)` | NO |
| 15 | `tAdvanceDate` | `datetime` | YES |
| 16 | `bPrint` | `bit(1)` | NO |
| 17 | `bBillComplete` | `bit(1)` | YES |
| 18 | `bBillOutside` | `bit(1)` | NO |
| 19 | `bCopyLimit` | `bit(1)` | NO |
| 20 | `sStatus` | `varchar(255)` | YES |
| 21 | `bInvalid` | `bit(1)` | NO |
| 22 | `sMReserve1` | `varchar(255)` | YES |
| 23 | `sMReserve2` | `varchar(255)` | YES |
| 24 | `sMReserve3` | `varchar(255)` | YES |
| 25 | `sMReserve4` | `varchar(255)` | YES |
| 26 | `sMReserve5` | `varchar(255)` | YES |
| 27 | `sMReserve6` | `varchar(255)` | YES |
| 28 | `dMReserve1` | `decimal(18,6)` | YES |
| 29 | `dMReserve2` | `decimal(18,6)` | YES |
| 30 | `dMReserve3` | `decimal(18,6)` | YES |
| 31 | `iMReserve1` | `int` | YES |
| 32 | `iMReserve2` | `int` | YES |
| 33 | `iMReserve3` | `int` | YES |
| 34 | `tMReserve1` | `datetime` | YES |
| 35 | `tMReserve2` | `datetime` | YES |
| 36 | `bNotInStorageOverdueComplete` | `bit(1)` | YES |
| 37 | `sType` | `varchar(255)` | YES |
| 38 | `sProcessType` | `varchar(255)` | YES |
| 39 | `sProductionClassify` | `varchar(255)` | YES |
| 40 | `sFinalConfirmation` | `varchar(255)` | YES |
| 41 | `dPlatediameter` | `decimal(18,6)` | YES |
| 42 | `sPrintingSequence` | `varchar(255)` | YES |
| 43 | `sSlaveId` | `varchar(100)` | NO |
| 44 | `iSlaveOrder` | `int` | NO |
| 45 | `sCustomerId` | `varchar(100)` | YES |
| 46 | `sContacts` | `varchar(255)` | YES |
| 47 | `sPhone` | `varchar(255)` | YES |
| 48 | `tDeliverDate` | `datetime` | YES |
| 49 | `sSalesManId` | `varchar(255)` | YES |
| 50 | `sProductTechnologyVer` | `varchar(255)` | YES |
| 51 | `sGetPayId` | `varchar(255)` | YES |
| 52 | `tGetPayDate` | `datetime` | YES |
| 53 | `sConsignee` | `varchar(255)` | YES |
| 54 | `sConsigneeMobile` | `varchar(255)` | YES |
| 55 | `sDeliverId` | `varchar(100)` | YES |
| 56 | `sProvince` | `varchar(255)` | YES |
| 57 | `sCity` | `varchar(255)` | YES |
| 58 | `sArea` | `varchar(255)` | YES |
| 59 | `sDeliverTo` | `varchar(255)` | YES |
| 60 | `sManualNo` | `varchar(255)` | YES |
| 61 | `sCustomerOrderNo` | `varchar(255)` | YES |
| 62 | `sCurrency` | `varchar(255)` | YES |
| 63 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 64 | `sProductId` | `varchar(100)` | NO |
| 65 | `dProductQty` | `decimal(18,6)` | NO |
| 66 | `dProductNotStoreQty` | `decimal(19,6)` | NO |
| 67 | `dProductPrice` | `decimal(18,6)` | NO |
| 68 | `dProductMoney` | `decimal(18,6)` | NO |
| 69 | `sProductInfo` | `mediumtext` | YES |
| 70 | `sMaterialsMemo` | `mediumtext` | YES |
| 71 | `sProcessMemo` | `mediumtext` | YES |
| 72 | `sSrcSlaveId` | `varchar(100)` | NO |
| 73 | `sSrcId` | `varchar(100)` | NO |
| 74 | `sSrcNo` | `varchar(255)` | NO |
| 75 | `dSrcQty` | `decimal(18,6)` | YES |
| 76 | `dProductPQty` | `decimal(18,6)` | YES |
| 77 | `bProductInStoreComplete` | `bit(1)` | YES |
| 78 | `bDeliverComplete` | `bit(1)` | NO |
| 79 | `bDeliverNotifyComplete` | `bit(1)` | NO |
| 80 | `bOutsideProcessComplete` | `bit(1)` | NO |
| 81 | `sQualityRequireMemo` | `mediumtext` | YES |
| 82 | `sPackRequireMemo` | `mediumtext` | YES |
| 83 | `sSlaveMemo` | `mediumtext` | YES |
| 84 | `sTaxId` | `varchar(100)` | YES |
| 85 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 86 | `dProductNoTaxMoney` | `decimal(18,6)` | YES |
| 87 | `dProductTaxMoney` | `decimal(18,6)` | YES |
| 88 | `dProductTaxForeignMoney` | `decimal(18,6)` | YES |
| 89 | `dProductForeignMoney` | `decimal(18,6)` | YES |
| 90 | `dProductInStoreQty` | `decimal(18,6)` | YES |
| 91 | `dDeliverNotifyQty` | `decimal(18,6)` | NO |
| 92 | `dDeliverQty` | `decimal(18,6)` | NO |
| 93 | `dCheckingQty` | `decimal(18,6)` | NO |
| 94 | `dReceiptMoney` | `decimal(18,6)` | NO |
| 95 | `dOutsideProcessQty` | `decimal(18,6)` | NO |
| 96 | `sWebOrderNo` | `varchar(255)` | NO |
| 97 | `sWebOrderId` | `varchar(100)` | NO |
| 98 | `sBarcode` | `varchar(255)` | YES |
| 99 | `dGiveQty` | `decimal(18,6)` | NO |
| 100 | `sProductTechnologyId` | `varchar(100)` | YES |
| 101 | `sOrderId` | `varchar(100)` | YES |
| 102 | `sOrderNo` | `varchar(255)` | YES |
| 103 | `sSReserve1` | `varchar(255)` | YES |
| 104 | `sSReserve2` | `varchar(255)` | YES |
| 105 | `sSReserve3` | `varchar(255)` | YES |
| 106 | `sSReserve4` | `varchar(255)` | YES |
| 107 | `sSReserve5` | `varchar(255)` | YES |
| 108 | `sSReserve6` | `varchar(255)` | YES |
| 109 | `dSReserve1` | `decimal(18,6)` | YES |
| 110 | `dSReserve2` | `decimal(18,6)` | YES |
| 111 | `dSReserve3` | `decimal(18,6)` | YES |
| 112 | `iSReserve1` | `int` | YES |
| 113 | `iSReserve2` | `int` | YES |
| 114 | `iSReserve3` | `int` | YES |
| 115 | `tSReserve1` | `datetime` | YES |
| 116 | `tSReserve2` | `datetime` | YES |
| 117 | `sId` | `varchar(100)` | NO |
| 118 | `tBillCompleteDate` | `datetime` | YES |
| 119 | `dPresentQty` | `decimal(18,6)` | NO |
| 120 | `sOrderSlaveId` | `varchar(100)` | YES |
| 121 | `iProductStick` | `int` | YES |
| 122 | `bCheckingComplete` | `bit(1)` | NO |
| 123 | `bAdvanceComplete` | `bit(1)` | NO |
| 124 | `bSlaveAdvanceComplete` | `bit(1)` | YES |
| 125 | `sPlateMaking` | `varchar(255)` | NO |
| 126 | `iIncrement` | `int` | NO |
| 127 | `bQlyComplete` | `bit(1)` | YES |
| 128 | `dQlyQty` | `decimal(18,6)` | YES |
| 129 | `dAllMoney` | `decimal(18,6)` | YES |
| 130 | `dTransportMoney` | `decimal(18,6)` | YES |
| 131 | `dPackMoney` | `decimal(18,6)` | YES |
| 132 | `dAuxiliaryMaterialsMoney` | `decimal(18,6)` | YES |
| 133 | `dMasterMaterialsMoney` | `decimal(18,6)` | YES |
| 134 | `dPrintProductMoney` | `decimal(18,6)` | YES |
| 135 | `dPrintAfterMoney` | `decimal(18,6)` | YES |
| 136 | `dPrintMoney` | `decimal(18,6)` | YES |
| 137 | `dPrintBeforeMoney` | `decimal(18,6) unsigned` | YES |
| 138 | `bCarryOver` | `bit(1)` | YES |
| 139 | `dProductCarryOverQty` | `decimal(18,6)` | YES |
| 140 | `tFactCountCost` | `datetime` | YES |
| 141 | `bReceiptComplete` | `bit(1)` | NO |
| 142 | `dSampleQty` | `decimal(18,6)` | YES |
| 143 | `dCombineQty` | `decimal(18,6)` | YES |
| 144 | `dDiameter` | `decimal(18,6)` | YES |
| 145 | `dOutSideDiameter` | `decimal(18,6)` | YES |
| 146 | `bCutting` | `bit(1)` | NO |
| 147 | `dMeters` | `decimal(18,6)` | YES |
| 148 | `dPaper` | `decimal(18,6)` | YES |
| 149 | `sPaperDirection` | `varchar(255)` | YES |
| 150 | `dSkip` | `decimal(18,6)` | YES |
| 151 | `dLeftSide` | `decimal(18,6)` | YES |
| 152 | `sPartsStyle` | `varchar(255)` | YES |
| 153 | `sParam5` | `varchar(255)` | YES |
| 154 | `sParam4` | `varchar(255)` | YES |
| 155 | `sParam3` | `varchar(255)` | YES |
| 156 | `sParam2` | `varchar(255)` | YES |
| 157 | `sParam1` | `varchar(255)` | YES |
| 158 | `sColorMemo` | `mediumtext` | YES |
| 159 | `bCustomerStatus` | `bit(1)` | YES |
| 160 | `bCustomerStatusEnd` | `bit(1)` | YES |
| 161 | `dCompleteQty` | `decimal(18,6)` | YES |
| 162 | `sNoFormat` | `varchar(255)` | NO |
| 163 | `sStockup` | `char(1)` | NO |
| 164 | `bCustomerSureComplete` | `bit(1)` | YES |
| 165 | `dDiffDate` | `bigint` | YES |
| 166 | `dEverybarQty` | `decimal(18,6)` | YES |
| 167 | `dEachcaseQty` | `decimal(18,6)` | YES |
| 168 | `dPackQty` | `decimal(18,6)` | YES |
| 169 | `sBoxStyle` | `varchar(100)` | YES |
| 170 | `dFactProductQty` | `decimal(18,6)` | YES |
| 171 | `dLimitSampleQty` | `decimal(18,6)` | YES |
| 172 | `dStandardSampleQty` | `decimal(18,6)` | YES |
| 173 | `sColorReference` | `varchar(100)` | YES |
| 174 | `sTransferredMatterCheck` | `varchar(100)` | YES |
| 175 | `sTransferredMatter` | `varchar(100)` | YES |
| 176 | `sWorkpieceModel` | `varchar(100)` | YES |
| 177 | `sProcessesNo` | `varchar(100)` | YES |
| 178 | `dConversionRate` | `decimal(18,6)` | YES |
| 179 | `dProductionCycle` | `decimal(18,6)` | YES |
| 180 | `sProductionCenter` | `varchar(100)` | YES |
| 181 | `sMinPack` | `varchar(100)` | YES |
| 182 | `dCombineCoefficient` | `decimal(18,6)` | YES |
| 183 | `sCutMode` | `varchar(100)` | YES |
| 184 | `sPlateNo` | `varchar(100)` | YES |
| 185 | `sMaterialsStyle` | `varchar(100)` | NO |
| 186 | `sAuxiliaryUnit` | `varchar(100)` | NO |
| 187 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 188 | `dConversionQty` | `decimal(18,6)` | NO |
| 189 | `dNProductMoney` | `decimal(18,6)` | NO |
| 190 | `dNProductPrice` | `decimal(18,6)` | NO |
| 191 | `dFreightMoney` | `decimal(18,6)` | NO |
| 192 | `dKnifeMouldMoney` | `decimal(18,6)` | NO |
| 193 | `dPlateMoney` | `decimal(18,6)` | NO |
| 194 | `dProofingMoney` | `decimal(18,6)` | NO |
| 195 | `dProductForeignPrice` | `decimal(18,6)` | NO |
| 196 | `dFreightReturnMoney` | `decimal(18,6)` | NO |
| 197 | `dKnifeMouldReturnMoney` | `decimal(18,6)` | NO |
| 198 | `dPlateReturnMoney` | `decimal(18,6)` | NO |
| 199 | `dProofingReturnMoney` | `decimal(18,6)` | NO |
| 200 | `dCertificateQty` | `decimal(18,6)` | YES |
| 201 | `bCertificateComplete` | `bit(1)` | YES |
| 202 | `sSalveMemo` | `mediumtext` | YES |
| 203 | `dStockupQty` | `decimal(18,6)` | NO |

## Definition

```sql
select `mftworkordermaster`.`bProduction` AS `bProduction`,`mftworkordermaster`.`sBrandsId` AS `sBrandsId`,`mftworkordermaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`mftworkordermaster`.`tCreateDate` AS `tCreateDate`,`mftworkordermaster`.`sMakePerson` AS `sMakePerson`,`mftworkordermaster`.`sFormId` AS `sFormId`,`mftworkordermaster`.`iOrder` AS `iOrder`,`mftworkordermaster`.`sBillNo` AS `sBillNo`,`mftworkordermaster`.`sMemo` AS `sMemo`,`mftworkordermaster`.`bCheck` AS `bCheck`,`mftworkordermaster`.`tCheckDate` AS `tCheckDate`,`mftworkordermaster`.`sCheckPerson` AS `sCheckPerson`,`mftworkordermaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`mftworkordermaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`mftworkordermaster`.`tAdvanceDate` AS `tAdvanceDate`,`mftworkordermaster`.`bPrint` AS `bPrint`,`mftworkordermaster`.`bBillComplete` AS `bBillComplete`,`mftworkordermaster`.`bBillOutside` AS `bBillOutside`,`mftworkordermaster`.`bCopyLimit` AS `bCopyLimit`,`mftworkordermaster`.`sStatus` AS `sStatus`,`mftworkordermaster`.`bInvalid` AS `bInvalid`,`mftworkordermaster`.`sMReserve1` AS `sMReserve1`,`mftworkordermaster`.`sMReserve2` AS `sMReserve2`,`mftworkordermaster`.`sMReserve3` AS `sMReserve3`,`mftworkordermaster`.`sMReserve4` AS `sMReserve4`,`mftworkordermaster`.`sMReserve5` AS `sMReserve5`,`mftworkordermaster`.`sMReserve6` AS `sMReserve6`,`mftworkordermaster`.`dMReserve1` AS `dMReserve1`,`mftworkordermaster`.`dMReserve2` AS `dMReserve2`,`mftworkordermaster`.`dMReserve3` AS `dMReserve3`,`mftworkordermaster`.`iMReserve1` AS `iMReserve1`,`mftworkordermaster`.`iMReserve2` AS `iMReserve2`,`mftworkordermaster`.`iMReserve3` AS `iMReserve3`,`mftworkordermaster`.`tMReserve1` AS `tMReserve1`,`mftworkordermaster`.`tMReserve2` AS `tMReserve2`,`mftworkordermaster`.`bNotInStorageOverdueComplete` AS `bNotInStorageOverdueComplete`,`mftworkordermaster`.`sType` AS `sType`,`mftworkordermaster`.`sProcessType` AS `sProcessType`,`mftworkordermaster`.`sProductionClassify` AS `sProductionClassify`,`mftworkordermaster`.`sFinalConfirmation` AS `sFinalConfirmation`,`mftworkordermaster`.`dPlatediameter` AS `dPlatediameter`,`mftworkordermaster`.`sPrintingSequence` AS `sPrintingSequence`,`mftworkorderslave`.`sId` AS `sSlaveId`,`mftworkorderslave`.`iOrder` AS `iSlaveOrder`,`mftworkorderslave`.`sCustomerId` AS `sCustomerId`,`mftworkorderslave`.`sContacts` AS `sContacts`,`mftworkorderslave`.`sPhone` AS `sPhone`,`mftworkorderslave`.`tDeliverDate` AS `tDeliverDate`,`mftworkorderslave`.`sSalesManId` AS `sSalesManId`,`mftworkorderslave`.`sProductTechnologyVer` AS `sProductTechnologyVer`,`mftworkorderslave`.`sGetPayId` AS `sGetPayId`,`mftworkorderslave`.`tGetPayDate` AS `tGetPayDate`,`mftworkorderslave`.`sConsignee` AS `sConsignee`,`mftworkorderslave`.`sConsigneeMobile` AS `sConsigneeMobile`,`mftworkorderslave`.`sDeliverId` AS `sDeliverId`,`mftworkorderslave`.`sProvince` AS `sProvince`,`mftworkorderslave`.`sCity` AS `sCity`,`mftworkorderslave`.`sArea` AS `sArea`,`mftworkorderslave`.`sDeliverTo` AS `sDeliverTo`,`mftworkorderslave`.`sManualNo` AS `sManualNo`,`mftworkorderslave`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`mftworkorderslave`.`sCurrency` AS `sCurrency`,`mftworkorderslave`.`dCurrencyRate` AS `dCurrencyRate`,`mftworkorderslave`.`sProductId` AS `sProductId`,`mftworkorderslave`.`dProductQty` AS `dProductQty`,(ifnull(`mftworkorderslave`.`dProductQty`,0) - ifnull(`mftworkorderslave`.`dProductInStoreQty`,0)) AS `dProductNotStoreQty`,`mftworkorderslave`.`dProductPrice` AS `dProductPrice`,`mftworkorderslave`.`dProductMoney` AS `dProductMoney`,`mftworkorderslave`.`sProductInfo` AS `sProductInfo`,`mftworkorderslave`.`sMaterialsMemo` AS `sMaterialsMemo`,`mftworkorderslave`.`sProcessMemo` AS `sProcessMemo`,`mftworkorderslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`mftworkorderslave`.`sSrcId` AS `sSrcId`,`mftworkorderslave`.`sSrcNo` AS `sSrcNo`,`mftworkorderslave`.`dSrcQty` AS `dSrcQty`,`mftworkorderslave`.`dProductPQty` AS `dProductPQty`,`mftworkorderslave`.`bProductInStoreComplete` AS `bProductInStoreComplete`,`mftworkorderslave`.`bDeliverComplete` AS `bDeliverComplete`,`mftworkorderslave`.`bDeliverNotifyComplete` AS `bDeliverNotifyComplete`,`mftworkorderslave`.`bOutsideProcessComplete` AS `bOutsideProcessComplete`,`mftworkorderslave`.`sQualityRequireMemo` AS `sQualityRequireMemo`,`mftworkorderslave`.`sPackRequireMemo` AS `sPackRequireMemo`,`mftworkorderslave`.`sSlaveMemo` AS `sSlaveMemo`,`mftworkorderslave`.`sTaxId` AS `sTaxId`,`mftworkorderslave`.`dProductNoTaxPrice` AS `dProductNoTaxPrice`,`mftworkorderslave`.`dProductNoTaxMoney` AS `dProductNoTaxMoney`,`mftworkorderslave`.`dProductTaxMoney` AS `dProductTaxMoney`,`mftworkorderslave`.`dProductTaxForeignMoney` AS `dProductTaxForeignMoney`,`mftworkorderslave`.`dProductForeignMoney` AS `dProductForeignMoney`,`mftworkorderslave`.`dProductInStoreQty` AS `dProductInStoreQty`,`mftworkorderslave`.`dDeliverNotifyQty` AS `dDeliverNotifyQty`,`mftworkorderslave`.`dDeliverQty` AS `dDeliverQty`,`mftworkorderslave`.`dCheckingQty` AS `dCheckingQty`,`mftworkorderslave`.`dReceiptMoney` AS `dReceiptMoney`,`mftworkorderslave`.`dOutsideProcessQty` AS `dOutsideProcessQty`,`mftworkorderslave`.`sWebOrderNo` AS `sWebOrderNo`,`mftworkorderslave`.`sWebOrderId` AS `sWebOrderId`,`mftworkorderslave`.`sBarcode` AS `sBarcode`,`mftworkorderslave`.`dGiveQty` AS `dGiveQty`,`mftworkorderslave`.`sProductTechnologyId` AS `sProductTechnologyId`,`mftworkorderslave`.`sOrderId` AS `sOrderId`,`mftworkorderslave`.`sOrderNo` AS `sOrderNo`,`mftworkorderslave`.`sSReserve1` AS `sSReserve1`,`mftworkorderslave`.`sSReserve2` AS `sSReserve2`,`mftworkorderslave`.`sSReserve3` AS `sSReserve3`,`mftworkorderslave`.`sSReserve4` AS `sSReserve4`,`mftworkorderslave`.`sSReserve5` AS `sSReserve5`,`mftworkorderslave`.`sSReserve6` AS `sSReserve6`,`mftworkorderslave`.`dSReserve1` AS `dSReserve1`,`mftworkorderslave`.`dSReserve2` AS `dSReserve2`,`mftworkorderslave`.`dSReserve3` AS `dSReserve3`,`mftworkorderslave`.`iSReserve1` AS `iSReserve1`,`mftworkorderslave`.`iSReserve2` AS `iSReserve2`,`mftworkorderslave`.`iSReserve3` AS `iSReserve3`,`mftworkorderslave`.`tSReserve1` AS `tSReserve1`,`mftworkorderslave`.`tSReserve2` AS `tSReserve2`,`mftworkordermaster`.`sId` AS `sId`,`mftworkordermaster`.`tBillCompleteDate` AS `tBillCompleteDate`,`mftworkorderslave`.`dPresentQty` AS `dPresentQty`,`mftworkorderslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`mftworkorderslave`.`iProductStick` AS `iProductStick`,`mftworkorderslave`.`bCheckingComplete` AS `bCheckingComplete`,`mftworkordermaster`.`bAdvanceComplete` AS `bAdvanceComplete`,`mftworkorderslave`.`bAdvanceComplete` AS `bSlaveAdvanceComplete`,`mftworkordermaster`.`sPlateMaking` AS `sPlateMaking`,`mftworkorderslave`.`iIncrement` AS `iIncrement`,`mftworkorderslave`.`bQlyComplete` AS `bQlyComplete`,`mftworkorderslave`.`dQlyQty` AS `dQlyQty`,`mftworkordermaster`.`dAllMoney` AS `dAllMoney`,`mftworkordermaster`.`dTransportMoney` AS `dTransportMoney`,`mftworkordermaster`.`dPackMoney` AS `dPackMoney`,`mftworkordermaster`.`dAuxiliaryMaterialsMoney` AS `dAuxiliaryMaterialsMoney`,`mftworkordermaster`.`dMasterMaterialsMoney` AS `dMasterMaterialsMoney`,`mftworkordermaster`.`dPrintProductMoney` AS `dPrintProductMoney`,`mftworkordermaster`.`dPrintAfterMoney` AS `dPrintAfterMoney`,`mftworkordermaster`.`dPrintMoney` AS `dPrintMoney`,`mftworkordermaster`.`dPrintBeforeMoney` AS `dPrintBeforeMoney`,`mftworkordermaster`.`bCarryOver` AS `bCarryOver`,`mftworkordermaster`.`dProductCarryOverQty` AS `dProductCarryOverQty`,`mftworkordermaster`.`tFactCountCost` AS `tFactCountCost`,`mftworkorderslave`.`bReceiptComplete` AS `bReceiptComplete`,`mftworkorderslave`.`dSampleQty` AS `dSampleQty`,`mftworkorderslave`.`dCombineQty` AS `dCombineQty`,`mftworkorderslave`.`dDiameter` AS `dDiameter`,`mftworkorderslave`.`dOutSideDiameter` AS `dOutSideDiameter`,`mftworkorderslave`.`bCutting` AS `bCutting`,`mftworkorderslave`.`dMeters` AS `dMeters`,`mftworkorderslave`.`dPaper` AS `dPaper`,`mftworkorderslave`.`sPaperDirection` AS `sPaperDirection`,`mftworkorderslave`.`dSkip` AS `dSkip`,`mftworkorderslave`.`dLeftSide` AS `dLeftSide`,`mftworkorderslave`.`sPartsStyle` AS `sPartsStyle`,`mftworkorderslave`.`sParam5` AS `sParam5`,`mftworkorderslave`.`sParam4` AS `sParam4`,`mftworkorderslave`.`sParam3` AS `sParam3`,`mftworkorderslave`.`sParam2` AS `sParam2`,`mftworkorderslave`.`sParam1` AS `sParam1`,`mftworkorderslave`.`sColorMemo` AS `sColorMemo`,`mftworkorderslave`.`bCustomerStatus` AS `bCustomerStatus`,`mftworkorderslave`.`bCustomerStatusEnd` AS `bCustomerStatusEnd`,`mftworkorderslave`.`dCompleteQty` AS `dCompleteQty`,`mftworkordermaster`.`sNoFormat` AS `sNoFormat`,`mftworkordermaster`.`sStockup` AS `sStockup`,`mftworkordermaster`.`bCustomerSureComplete` AS `bCustomerSureComplete`,(to_days(now()) - to_days(`mftworkorderslave`.`tDeliverDate`)) AS `dDiffDate`,`mftworkorderslave`.`dEverybarQty` AS `dEverybarQty`,`mftworkorderslave`.`dEachcaseQty` AS `dEachcaseQty`,`mftworkorderslave`.`dPackQty` AS `dPackQty`,`mftworkorderslave`.`sBoxStyle` AS `sBoxStyle`,`mftworkorderslave`.`dFactProductQty` AS `dFactProductQty`,`mftworkorderslave`.`dLimitSampleQty` AS `dLimitSampleQty`,`mftworkorderslave`.`dStandardSampleQty` AS `dStandardSampleQty`,`mftworkorderslave`.`sColorReference` AS `sColorReference`,`mftworkorderslave`.`sTransferredMatterCheck` AS `sTransferredMatterCheck`,`mftworkorderslave`.`sTransferredMatter` AS `sTransferredMatter`,`mftworkorderslave`.`sWorkpieceModel` AS `sWorkpieceModel`,`mftworkorderslave`.`sProcessesNo` AS `sProcessesNo`,`mftworkorderslave`.`dConversionRate` AS `dConversionRate`,`mftworkorderslave`.`dProductionCycle` AS `dProductionCycle`,`mftworkorderslave`.`sProductionCenter` AS `sProductionCenter`,`mftworkorderslave`.`sMinPack` AS `sMinPack`,`mftworkorderslave`.`dCombineCoefficient` AS `dCombineCoefficient`,`mftworkorderslave`.`sCutMode` AS `sCutMode`,`mftworkorderslave`.`sPlateNo` AS `sPlateNo`,`mftworkorderslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`mftworkorderslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`mftworkorderslave`.`dMaterialsQty` AS `dMaterialsQty`,`mftworkorderslave`.`dConversionQty` AS `dConversionQty`,`mftworkorderslave`.`dNProductMoney` AS `dNProductMoney`,`mftworkorderslave`.`dNProductPrice` AS `dNProductPrice`,`mftworkorderslave`.`dFreightMoney` AS `dFreightMoney`,`mftworkorderslave`.`dKnifeMouldMoney` AS `dKnifeMouldMoney`,`mftworkorderslave`.`dPlateMoney` AS `dPlateMoney`,`mftworkorderslave`.`dProofingMoney` AS `dProofingMoney`,`mftworkorderslave`.`dProductForeignPrice` AS `dProductForeignPrice`,`mftworkorderslave`.`dFreightReturnMoney` AS `dFreightReturnMoney`,`mftworkorderslave`.`dKnifeMouldReturnMoney` AS `dKnifeMouldReturnMoney`,`mftworkorderslave`.`dPlateReturnMoney` AS `dPlateReturnMoney`,`mftworkorderslave`.`dProofingReturnMoney` AS `dProofingReturnMoney`,`mftworkorderslave`.`dCertificateQty` AS `dCertificateQty`,`mftworkorderslave`.`bCertificateComplete` AS `bCertificateComplete`,`mftworkorderslave`.`sMemo` AS `sSalveMemo`,`mftworkorderslave`.`dStockupQty` AS `dStockupQty` from (`mftworkordermaster` join `mftworkorderslave` on((`mftworkordermaster`.`sId` = `mftworkorderslave`.`sParentId`))) union all select NULL AS `bProduction`,`salsalesordermaster`.`sBrandsId` AS `sBrandsId`,`salsalesordermaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`salsalesordermaster`.`tCreateDate` AS `tCreateDate`,`salsalesordermaster`.`sMakePerson` AS `sMakePerson`,`salsalesordermaster`.`sFormId` AS `sFormId`,`salsalesordermaster`.`iOrder` AS `iOrder`,`salsalesordermaster`.`sBillNo` AS `sBillNo`,`salsalesordermaster`.`sMemo` AS `sMemo`,`salsalesordermaster`.`bCheck` AS `bCheck`,`salsalesordermaster`.`tCheckDate` AS `tCheckDate`,`salsalesordermaster`.`sCheckPerson` AS `sCheckPerson`,`salsalesordermaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`salsalesordermaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`salsalesordermaster`.`tAdvanceDate` AS `tAdvanceDate`,`salsalesordermaster`.`bPrint` AS `bPrint`,NULL AS `bBillComplete`,`salsalesorderslave`.`bOutside` AS `bBillOutside`,`salsalesordermaster`.`bCopyLimit` AS `bCopyLimit`,`salsalesordermaster`.`sStatus` AS `sStatus`,`salsalesordermaster`.`bInvalid` AS `bInvalid`,`salsalesordermaster`.`sMReserve1` AS `sMReserve1`,`salsalesordermaster`.`sMReserve2` AS `sMReserve2`,`salsalesordermaster`.`sMReserve3` AS `sMReserve3`,`salsalesordermaster`.`sMReserve4` AS `sMReserve4`,`salsalesordermaster`.`sMReserve5` AS `sMReserve5`,`salsalesordermaster`.`sMReserve6` AS `sMReserve6`,`salsalesordermaster`.`dMReserve1` AS `dMReserve1`,`salsalesordermaster`.`dMReserve2` AS `dMReserve2`,`salsalesordermaster`.`dMReserve3` AS `dMReserve3`,`salsalesordermaster`.`iMReserve1` AS `iMReserve1`,`salsalesordermaster`.`iMReserve2` AS `iMReserve2`,`salsalesordermaster`.`iMReserve3` AS `iMReserve3`,`salsalesordermaster`.`tMReserve1` AS `tMReserve1`,`salsalesordermaster`.`tMReserve2` AS `tMReserve2`,NULL AS `bNotInStorageOverdueComplete`,NULL AS `sType`,NULL AS `sProcessType`,NULL AS `sProductionClassify`,NULL AS `sFinalConfirmation`,NULL AS `dPlatediameter`,NULL AS `sPrintingSequence`,`salsalesorderslave`.`sId` AS `sSlaveId`,`salsalesorderslave`.`iOrder` AS `iSlaveOrder`,`salsalesordermaster`.`sCustomerId` AS `sCustomerId`,`salsalesordermaster`.`sContacts` AS `sContacts`,`salsalesordermaster`.`sPhone` AS `sPhone`,`salsalesorderslave`.`tDeliverDate` AS `tDeliverDate`,`salsalesordermaster`.`sSalesManId` AS `sSalesManId`,NULL AS `sProductTechnologyVer`,`salsalesordermaster`.`sGetPayId` AS `sGetPayId`,`salsalesordermaster`.`tGetPayDate` AS `tGetPayDate`,`salsalesordermaster`.`sConsignee` AS `sConsignee`,`salsalesordermaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`salsalesordermaster`.`sDeliverId` AS `sDeliverId`,`salsalesordermaster`.`sProvince` AS `sProvince`,`salsalesordermaster`.`sCity` AS `sCity`,`salsalesordermaster`.`sArea` AS `sArea`,`salsalesordermaster`.`sDeliverTo` AS `sDeliverTo`,`salsalesordermaster`.`sManualNo` AS `sManualNo`,`salsalesorderslave`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`salsalesordermaster`.`sCurrency` AS `sCurrency`,`salsalesordermaster`.`dCurrencyRate` AS `dCurrencyRate`,`salsalesorderslave`.`sProductId` AS `sProductId`,`salsalesorderslave`.`dProductQty` AS `dProductQty`,(ifnull(`salsalesorderslave`.`dProductQty`,0) - ifnull(`salsalesorderslave`.`dOutsideProcessQty`,0)) AS `dProductNotStoreQty`,`salsalesorderslave`.`dProductPrice` AS `dProductPrice`,`salsalesorderslave`.`dProductMoney` AS `dProductMoney`,`salsalesorderslave`.`sProductInfo` AS `sProductInfo`,`salsalesorderslave`.`sMaterialsMemo` AS `sMaterialsMemo`,`salsalesorderslave`.`sProcessMemo` AS `sProcessMemo`,`salsalesorderslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`salsalesorderslave`.`sSrcId` AS `sSrcId`,`salsalesorderslave`.`sSrcNo` AS `sSrcNo`,`salsalesorderslave`.`dSrcQty` AS `dSrcQty`,`salsalesorderslave`.`dProductPQty` AS `dProductPQty`,NULL AS `bProductInStoreComplete`,`salsalesorderslave`.`bDeliverComplete` AS `bDeliverComplete`,`salsalesorderslave`.`bDeliverNotifyComplete` AS `bDeliverNotifyComplete`,`salsalesorderslave`.`bOutsideProcessComplete` AS `bOutsideProcessComplete`,`salsalesorderslave`.`sQualityRequireMemo` AS `sQualityRequireMemo`,`salsalesorderslave`.`sPackRequireMemo` AS `sPackRequireMemo`,`salsalesorderslave`.`sSlaveMemo` AS `sSlaveMemo`,`salsalesorderslave`.`sTaxId` AS `sTaxId`,`salsalesorderslave`.`dProductNoTaxPrice` AS `dProductNoTaxPrice`,`salsalesorderslave`.`dProductNoTaxMoney` AS `dProductNoTaxMoney`,`salsalesorderslave`.`dProductTaxMoney` AS `dProductTaxMoney`,`salsalesorderslave`.`dProductTaxForeignMoney` AS `dProductTaxForeignMoney`,`salsalesorderslave`.`dProductForeignMoney` AS `dProductForeignMoney`,NULL AS `dProductInStoreQty`,`salsalesorderslave`.`dDeliverNotifyQty` AS `dDeliverNotifyQty`,`salsalesorderslave`.`dDeliverQty` AS `dDeliverQty`,`salsalesorderslave`.`dCheckingQty` AS `dCheckingQty`,`salsalesorderslave`.`dReceiptMoney` AS `dReceiptMoney`,`salsalesorderslave`.`dOutsideProcessQty` AS `dOutsideProcessQty`,`salsalesorderslave`.`sWebOrderNo` AS `sWebOrderNo`,`salsalesorderslave`.`sWebOrderId` AS `sWebOrderId`,`salsalesorderslave`.`sBarcode` AS `sBarcode`,`salsalesorderslave`.`dGiveQty` AS `dGiveQty`,NULL AS `sProductTechnologyId`,NULL AS `sOrderId`,NULL AS `sOrderNo`,`salsalesorderslave`.`sSReserve1` AS `sSReserve1`,`salsalesorderslave`.`sSReserve2` AS `sSReserve2`,`salsalesorderslave`.`sSReserve3` AS `sSReserve3`,`salsalesorderslave`.`sSReserve4` AS `sSReserve4`,`salsalesorderslave`.`sSReserve5` AS `sSReserve5`,`salsalesorderslave`.`sSReserve6` AS `sSReserve6`,`salsalesorderslave`.`dSReserve1` AS `dSReserve1`,`salsalesorderslave`.`dSReserve2` AS `dSReserve2`,`salsalesorderslave`.`dSReserve3` AS `dSReserve3`,`salsalesorderslave`.`iSReserve1` AS `iSReserve1`,`salsalesorderslave`.`iSReserve2` AS `iSReserve2`,`salsalesorderslave`.`iSReserve3` AS `iSReserve3`,`salsalesorderslave`.`tSReserve1` AS `tSReserve1`,`salsalesorderslave`.`tSReserve2` AS `tSReserve2`,`salsalesordermaster`.`sId` AS `sId`,NULL AS `tBillCompleteDate`,`salsalesorderslave`.`dPresentQty` AS `dPresentQty`,NULL AS `sOrderSlaveId`,NULL AS `iProductStick`,`salsalesorderslave`.`bCheckingComplete` AS `bCheckingComplete`,`salsalesordermaster`.`bAdvanceComplete` AS `bAdvanceComplete`,NULL AS `bSlaveAdvanceComplete`,`salsalesorderslave`.`sPlateMaking` AS `sPlateMaking`,`salsalesorderslave`.`iIncrement` AS `iIncrement`,NULL AS `bQlyComplete`,NULL AS `dQlyQty`,NULL AS `dAllMoney`,NULL AS `dTransportMoney`,NULL AS `dPackMoney`,NULL AS `dAuxiliaryMaterialsMoney`,NULL AS `dMasterMaterialsMoney`,NULL AS `dPrintProductMoney`,NULL AS `dPrintAfterMoney`,NULL AS `dPrintMoney`,NULL AS `dPrintBeforeMoney`,NULL AS `bCarryOver`,NULL AS `dProductCarryOverQty`,NULL AS `tFactCountCost`,`salsalesorderslave`.`bReceiptComplete` AS `bReceiptComplete`,NULL AS `dSampleQty`,NULL AS `dCombineQty`,`salsalesorderslave`.`dDiameter` AS `dDiameter`,`salsalesorderslave`.`dOutSideDiameter` AS `dOutSideDiameter`,`salsalesorderslave`.`bCutting` AS `bCutting`,`salsalesorderslave`.`dMeters` AS `dMeters`,`salsalesorderslave`.`dPaper` AS `dPaper`,`salsalesorderslave`.`sPaperDirection` AS `sPaperDirection`,`salsalesorderslave`.`dSkip` AS `dSkip`,`salsalesorderslave`.`dLeftSide` AS `dLeftSide`,NULL AS `sPartsStyle`,NULL AS `sParam5`,NULL AS `sParam4`,NULL AS `sParam3`,NULL AS `sParam2`,NULL AS `sParam1`,NULL AS `sColorMemo`,NULL AS `bCustomerStatus`,NULL AS `bCustomerStatusEnd`,NULL AS `dCompleteQty`,`salsalesordermaster`.`sNoFormat` AS `sNoFormat`,`salsalesordermaster`.`sStockup` AS `sStockup`,NULL AS `bCustomerSureComplete`,(to_days(now()) - to_days(`salsalesorderslave`.`tDeliverDate`)) AS `dDiffDate`,NULL AS `dEverybarQty`,NULL AS `dEachcaseQty`,NULL AS `dPackQty`,NULL AS `sBoxStyle`,NULL AS `dFactProductQty`,NULL AS `dLimitSampleQty`,NULL AS `dStandardSampleQty`,NULL AS `sColorReference`,NULL AS `sTransferredMatterCheck`,NULL AS `sTransferredMatter`,NULL AS `sWorkpieceModel`,NULL AS `sProcessesNo`,NULL AS `dConversionRate`,NULL AS `dProductionCycle`,NULL AS `sProductionCenter`,NULL AS `sMinPack`,NULL AS `dCombineCoefficient`,NULL AS `sCutMode`,NULL AS `sPlateNo`,`salsalesorderslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`salsalesorderslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`salsalesorderslave`.`dMaterialsQty` AS `dMaterialsQty`,`salsalesorderslave`.`dConversionQty` AS `dConversionQty`,`salsalesorderslave`.`dNProductMoney` AS `dNProductMoney`,`salsalesorderslave`.`dNProductPrice` AS `dNProductPrice`,`salsalesorderslave`.`dFreightMoney` AS `dFreightMoney`,`salsalesorderslave`.`dKnifeMouldMoney` AS `dKnifeMouldMoney`,`salsalesorderslave`.`dPlateMoney` AS `dPlateMoney`,`salsalesorderslave`.`dProofingMoney` AS `dProofingMoney`,`salsalesorderslave`.`dProductForeignPrice` AS `dProductForeignPrice`,`salsalesorderslave`.`dFreightReturnMoney` AS `dFreightReturnMoney`,`salsalesorderslave`.`dKnifeMouldReturnMoney` AS `dKnifeMouldReturnMoney`,`salsalesorderslave`.`dPlateReturnMoney` AS `dPlateReturnMoney`,`salsalesorderslave`.`dProofingReturnMoney` AS `dProofingReturnMoney`,NULL AS `dCertificateQty`,NULL AS `bCertificateComplete`,`salsalesordermaster`.`sMemo` AS `sSalveMemo`,`salsalesorderslave`.`dStockupQty` AS `dStockupQty` from (`salsalesordermaster` join `salsalesorderslave` on((`salsalesordermaster`.`sId` = `salsalesorderslave`.`sParentId`))) where (`salsalesorderslave`.`bOutside` = 1)
```

## Narrative

_No human-written narrative yet._
