# `viw_salsalesorder` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `tCreateDate` | `datetime` | NO |
| 5 | `sMakePerson` | `varchar(255)` | NO |
| 6 | `iOrder` | `int` | NO |
| 7 | `sFormId` | `varchar(100)` | NO |
| 8 | `sFSC` | `varchar(50)` | YES |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sCustomerId` | `varchar(100)` | YES |
| 11 | `sContacts` | `varchar(255)` | YES |
| 12 | `sPhone` | `varchar(255)` | YES |
| 13 | `tProofingDate` | `datetime` | YES |
| 14 | `sSalesManId` | `varchar(100)` | YES |
| 15 | `sGetPayId` | `varchar(100)` | YES |
| 16 | `tGetPayDate` | `datetime` | YES |
| 17 | `tDeliverDate` | `datetime` | YES |
| 18 | `sConsignee` | `varchar(255)` | YES |
| 19 | `sConsigneeMobile` | `varchar(255)` | YES |
| 20 | `sDeliverId` | `varchar(100)` | NO |
| 21 | `sProvince` | `varchar(255)` | YES |
| 22 | `sCity` | `varchar(255)` | YES |
| 23 | `sArea` | `varchar(255)` | YES |
| 24 | `sDeliverTo` | `varchar(255)` | NO |
| 25 | `sManualNo` | `varchar(255)` | YES |
| 26 | `sCustomerOrderNo` | `varchar(255)` | NO |
| 27 | `sMemo` | `text` | YES |
| 28 | `bCheck` | `bit(1)` | NO |
| 29 | `tCheckDate` | `datetime` | YES |
| 30 | `sCheckPerson` | `varchar(255)` | YES |
| 31 | `bPrint` | `bit(1)` | NO |
| 32 | `bCopyLimit` | `bit(1)` | NO |
| 33 | `dAdvanceMoney` | `decimal(18,6)` | NO |
| 34 | `tAdvanceDate` | `datetime` | YES |
| 35 | `dRealAdvanceMoney` | `decimal(18,6)` | NO |
| 36 | `sCurrency` | `varchar(255)` | YES |
| 37 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 38 | `sStatus` | `varchar(255)` | YES |
| 39 | `bInvalid` | `bit(1)` | NO |
| 40 | `sMReserve1` | `varchar(255)` | YES |
| 41 | `sMReserve2` | `varchar(255)` | YES |
| 42 | `sMReserve3` | `varchar(255)` | YES |
| 43 | `sMReserve4` | `varchar(255)` | YES |
| 44 | `sMReserve5` | `varchar(255)` | YES |
| 45 | `sMReserve6` | `varchar(255)` | YES |
| 46 | `dMReserve1` | `decimal(18,6)` | YES |
| 47 | `dMReserve2` | `decimal(18,6)` | YES |
| 48 | `dMReserve3` | `decimal(18,6)` | YES |
| 49 | `iMReserve1` | `int` | YES |
| 50 | `iMReserve2` | `int` | YES |
| 51 | `iMReserve3` | `int` | YES |
| 52 | `tMReserve1` | `datetime` | YES |
| 53 | `tMReserve2` | `datetime` | YES |
| 54 | `sOrderType` | `varchar(255)` | NO |
| 55 | `sStockup` | `char(1)` | NO |
| 56 | `bAdvanceComplete` | `bit(1)` | NO |
| 57 | `sRip` | `varchar(255)` | NO |
| 58 | `sRipTrue` | `varchar(255)` | NO |
| 59 | `sProofing` | `varchar(255)` | NO |
| 60 | `sProofingDetail` | `varchar(8000)` | YES |
| 61 | `bManual` | `bit(1)` | NO |
| 62 | `bCorrespondFile` | `bit(1)` | NO |
| 63 | `bLock` | `bit(1)` | NO |
| 64 | `sNoFormat` | `varchar(255)` | NO |
| 65 | `sCheck` | `varchar(255)` | YES |
| 66 | `tCheck` | `datetime` | YES |
| 67 | `iProofing` | `int` | NO |
| 68 | `sLockPerson` | `varchar(255)` | YES |
| 69 | `tSend` | `datetime` | YES |
| 70 | `sSend` | `varchar(255)` | YES |
| 71 | `sSlaveId` | `varchar(100)` | NO |
| 72 | `iSlaveOrder` | `int` | NO |
| 73 | `sProductId` | `varchar(100)` | NO |
| 74 | `dProductLength` | `decimal(18,6)` | NO |
| 75 | `dProductWidth` | `decimal(18,6)` | NO |
| 76 | `dMw` | `decimal(18,6)` | YES |
| 77 | `dProductQty` | `decimal(18,6)` | NO |
| 78 | `dProductPrice` | `decimal(18,6)` | NO |
| 79 | `dProductMoney` | `decimal(18,6)` | NO |
| 80 | `sProductInfo` | `text` | YES |
| 81 | `sMaterialsMemo` | `text` | YES |
| 82 | `sProcessMemo` | `text` | YES |
| 83 | `sSrcSlaveId` | `varchar(100)` | NO |
| 84 | `sSrcId` | `varchar(100)` | NO |
| 85 | `sSrcNo` | `varchar(255)` | NO |
| 86 | `dSrcQty` | `decimal(18,6)` | YES |
| 87 | `dProductPQty` | `decimal(18,6)` | YES |
| 88 | `bWorkOrderComplete` | `bit(1)` | NO |
| 89 | `bDeliverComplete` | `bit(1)` | NO |
| 90 | `bDeliverNotifyComplete` | `bit(1)` | NO |
| 91 | `bCheckingComplete` | `bit(1)` | NO |
| 92 | `sQualityRequireMemo` | `text` | YES |
| 93 | `sPackRequireMemo` | `text` | YES |
| 94 | `sSlaveMemo` | `text` | YES |
| 95 | `sTaxId` | `varchar(100)` | YES |
| 96 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 97 | `dProductNoTaxMoney` | `decimal(18,6)` | YES |
| 98 | `dProductTaxMoney` | `decimal(18,6)` | YES |
| 99 | `dProductTaxForeignMoney` | `decimal(18,6)` | YES |
| 100 | `dProductForeignMoney` | `decimal(18,6)` | YES |
| 101 | `dWorkOrderQty` | `decimal(18,6)` | NO |
| 102 | `dDeliverNotifyQty` | `decimal(18,6)` | NO |
| 103 | `dDeliverNotifyGiveQty` | `decimal(18,6)` | NO |
| 104 | `dDeliverQty` | `decimal(18,6)` | NO |
| 105 | `dCheckingQty` | `decimal(18,6)` | NO |
| 106 | `dReceiptMoney` | `decimal(18,6)` | NO |
| 107 | `sWebOrderNo` | `varchar(255)` | NO |
| 108 | `sWebOrderId` | `varchar(100)` | NO |
| 109 | `dGiveQty` | `decimal(18,6)` | NO |
| 110 | `sBarcode` | `varchar(255)` | YES |
| 111 | `sSReserve1` | `varchar(255)` | YES |
| 112 | `sSReserve2` | `varchar(255)` | YES |
| 113 | `sSReserve3` | `varchar(255)` | YES |
| 114 | `sSReserve4` | `varchar(255)` | YES |
| 115 | `sSReserve5` | `varchar(255)` | YES |
| 116 | `sSReserve6` | `varchar(255)` | YES |
| 117 | `dSReserve1` | `decimal(18,6)` | YES |
| 118 | `dSReserve2` | `decimal(18,6)` | YES |
| 119 | `dSReserve3` | `decimal(18,6)` | YES |
| 120 | `iSReserve1` | `int` | YES |
| 121 | `iSReserve2` | `int` | YES |
| 122 | `iSReserve3` | `int` | YES |
| 123 | `tSReserve1` | `datetime` | YES |
| 124 | `tSReserve2` | `datetime` | YES |
| 125 | `dSortNum` | `decimal(18,6)` | NO |
| 126 | `dPresentQty` | `decimal(18,6)` | NO |
| 127 | `iIncrement` | `int` | NO |
| 128 | `dLeftSide` | `decimal(18,6)` | NO |
| 129 | `dSkip` | `decimal(18,6)` | NO |
| 130 | `sPaperDirection` | `varchar(255)` | NO |
| 131 | `dPaper` | `decimal(18,6)` | NO |
| 132 | `dMeters` | `decimal(18,6)` | NO |
| 133 | `bCutting` | `bit(1)` | NO |
| 134 | `dOutSideDiameter` | `decimal(18,6)` | NO |
| 135 | `dDiameter` | `decimal(18,6)` | NO |
| 136 | `tSlaveDeliverDate` | `varchar(10)` | YES |
| 137 | `bReceiptComplete` | `bit(1)` | NO |
| 138 | `dMatchbillQty` | `decimal(18,6)` | NO |
| 139 | `dStockupQty` | `decimal(18,6)` | NO |
| 140 | `sMaterialsStyle` | `varchar(100)` | NO |
| 141 | `sAuxiliaryUnit` | `varchar(100)` | NO |
| 142 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 143 | `dConversionQty` | `decimal(18,6)` | NO |
| 144 | `dProductForeignPrice` | `decimal(18,6)` | NO |
| 145 | `dProofingMoney` | `decimal(18,6)` | NO |
| 146 | `dPlateMoney` | `decimal(18,6)` | NO |
| 147 | `dFreightMoney` | `decimal(18,6)` | NO |
| 148 | `dKnifeMouldMoney` | `decimal(18,6)` | NO |
| 149 | `dProofingReturnMoney` | `decimal(18,6)` | NO |
| 150 | `dPlateReturnMoney` | `decimal(18,6)` | NO |
| 151 | `dKnifeMouldReturnMoney` | `decimal(18,6)` | NO |
| 152 | `dFreightReturnMoney` | `decimal(18,6)` | NO |
| 153 | `bMatchbillComplete` | `bit(1)` | NO |
| 154 | `dQuotationMoney` | `decimal(18,6)` | NO |
| 155 | `sLogisticCode` | `varchar(100)` | NO |
| 156 | `bStockupComplete` | `bit(1)` | NO |
| 157 | `dTrunkQty` | `decimal(18,6)` | NO |
| 158 | `dReturnTrunkQty` | `decimal(18,6)` | NO |
| 159 | `sPlateMaking` | `varchar(100)` | NO |
| 160 | `iReplyCount` | `int` | NO |
| 161 | `iReplyResult` | `int` | NO |
| 162 | `sCraftworksMemo` | `varchar(1000)` | YES |
| 163 | `sWorkOrderNo` | `varchar(100)` | NO |
| 164 | `sWorkOrderId` | `varchar(100)` | NO |
| 165 | `sSaleDepartMemo` | `varchar(1000)` | YES |
| 166 | `tCraftworksReply` | `datetime` | YES |
| 167 | `bCraftworksReply` | `bit(1)` | NO |
| 168 | `sCraftworkPerson` | `varchar(255)` | NO |
| 169 | `tSaleDepartReply` | `datetime` | YES |
| 170 | `sSlaveCustomerOrderNo` | `varchar(50)` | NO |
| 171 | `sKpiQuoMemo` | `varchar(255)` | NO |
| 172 | `bKpiQuo` | `bit(1)` | NO |
| 173 | `tKpiQuoCloseDate` | `datetime` | YES |
| 174 | `sKpiObsoleteMemo` | `varchar(255)` | NO |
| 175 | `bKpiObsolete` | `bit(1)` | NO |
| 176 | `tKpiObsoleteCloseDate` | `datetime` | YES |
| 177 | `sKpiObsoleteDutyPerson` | `varchar(255)` | NO |
| 178 | `tKpiObsoleteDutyDate` | `datetime` | YES |
| 179 | `bSlaveComplete` | `bit(1)` | NO |
| 180 | `tDeliverCompleteDate` | `datetime` | YES |
| 181 | `sDeliverCompleteMemo` | `varchar(255)` | NO |
| 182 | `sDeliverCompleteType` | `varchar(255)` | NO |
| 183 | `bProductionOrder` | `bit(1)` | NO |
| 184 | `sProductionOrder` | `varchar(255)` | NO |
| 185 | `tProductionOrder` | `datetime` | YES |
| 186 | `sProductionOrderMemo` | `varchar(255)` | NO |
| 187 | `sFilePerson` | `varchar(255)` | NO |
| 188 | `tFileDate` | `datetime` | YES |
| 189 | `sBillType` | `varchar(255)` | YES |
| 190 | `bFile` | `bit(1)` | NO |
| 191 | `sItemNo` | `varchar(255)` | YES |
| 192 | `bOutSideMould` | `bit(1)` | NO |
| 193 | `bOutSideMouldComplete` | `bit(1)` | NO |
| 194 | `sProductTechnologyVer` | `varchar(255)` | NO |
| 195 | `sBomId` | `varchar(255)` | NO |
| 196 | `bPrepareMaterials` | `bit(1)` | YES |
| 197 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 198 | `sWorkOrderCompletePerson` | `varchar(255)` | NO |
| 199 | `tWorkOrderCompleteDate` | `datetime` | YES |
| 200 | `dDiffDate` | `int` | YES |
| 201 | `dNProductPrice` | `decimal(18,6)` | NO |
| 202 | `dNProductMoney` | `decimal(18,6)` | NO |
| 203 | `dCostMoney` | `decimal(18,6)` | NO |
| 204 | `bOutside` | `bit(1)` | NO |
| 205 | `dOutsideProcessQty` | `decimal(18,6)` | NO |
| 206 | `bOutsideProcessComplete` | `bit(1)` | NO |
| 207 | `sWebQuotationId` | `varchar(100)` | NO |
| 208 | `sPrintMemo` | `varchar(255)` | NO |
| 209 | `sOrderWay` | `varchar(255)` | NO |
| 210 | `sProductType` | `varchar(255)` | NO |
| 211 | `sSizeSource` | `varchar(255)` | NO |
| 212 | `sBoxStructure` | `varchar(255)` | NO |
| 213 | `sPaperMaterial` | `varchar(255)` | NO |
| 214 | `sFilePath` | `varchar(255)` | NO |
| 215 | `sRDNo` | `varchar(255)` | NO |
| 216 | `dMaterialsDeliverQty` | `decimal(18,6)` | NO |
| 217 | `dMaterialsDeliverNotifyQty` | `decimal(18,6)` | NO |
| 218 | `dSalesdevplanQty` | `decimal(18,6)` | NO |
| 219 | `bSalesdevplanComplete` | `bit(1)` | NO |
| 220 | `dMaterialsSalesCheckingQty` | `decimal(18,6)` | NO |
| 221 | `bWebReceiptComplete` | `bit(1)` | NO |
| 222 | `sKnifeLine` | `varchar(255)` | YES |
| 223 | `iProoferState` | `int` | NO |
| 224 | `sConfirmPerson` | `varchar(255)` | YES |
| 225 | `iConfirmPersonSate` | `int` | NO |
| 226 | `sFollowUpPhase` | `longtext` | YES |
| 227 | `sProoferPerson` | `varchar(255)` | YES |
| 228 | `dWorkOrderStockupQty` | `decimal(18,6)` | NO |
| 229 | `dAuxiliaryPrice` | `decimal(18,6)` | NO |
| 230 | `iDemand` | `int` | YES |
| 231 | `sFatherSlaveId` | `varchar(50)` | NO |
| 232 | `dQuoRate` | `decimal(18,6)` | YES |
| 233 | `dQuoPrice` | `decimal(24,13)` | NO |
| 234 | `dRealityPrice` | `decimal(24,13)` | NO |
| 235 | `sMaterialsId` | `varchar(255)` | YES |
| 236 | `tClaimDate` | `datetime` | YES |
| 237 | `dSparesQty` | `decimal(18,6)` | NO |
| 238 | `dNotifySparesQty` | `decimal(18,6)` | YES |
| 239 | `dUseStockQty` | `decimal(18,6)` | NO |
| 240 | `dThisUseStockQty` | `decimal(18,6)` | NO |
| 241 | `dThisReleaseQty` | `decimal(18,6)` | NO |
| 242 | `sFlowState` | `varchar(3)` | YES |
| 243 | `sSrcType` | `varchar(50)` | YES |
| 244 | `sCustomerProductNo` | `varchar(255)` | YES |
| 245 | `tNextDate` | `datetime` | YES |
| 246 | `iSucceed` | `int` | YES |
| 247 | `sOldOrderNo` | `varchar(50)` | YES |
| 248 | `dRejectQty` | `decimal(18,2)` | YES |
| 249 | `iOldNew` | `int` | YES |
| 250 | `dOutProductRejQty` | `decimal(18,6)` | YES |
| 251 | `dDeliverNotifyQty1` | `decimal(23,6)` | YES |
| 252 | `dDeliverQty1` | `decimal(23,6)` | YES |
| 253 | `dRejectBSQty` | `decimal(18,2)` | YES |
| 254 | `sCustomerName` | `varchar(255)` | YES |
| 255 | `bTechnology` | `bit(1)` | YES |
| 256 | `sServiceName` | `varchar(255)` | YES |
| 257 | `sNPDNo` | `varchar(255)` | YES |
| 258 | `bBillComplete` | `bit(1)` | YES |
| 259 | `tBillCompleteDate` | `datetime` | YES |
| 260 | `sCompletePerson` | `varchar(255)` | YES |
| 261 | `iNPD` | `int` | YES |
| 262 | `dRejectGiveQty` | `decimal(18,6)` | YES |
| 263 | `dRejectMaterialsBSQty` | `decimal(18,6)` | YES |
| 264 | `iFlowState` | `int` | YES |

## Definition

```sql
select `salsalesordermaster`.`sId` AS `sId`,`salsalesordermaster`.`sBrandsId` AS `sBrandsId`,`salsalesordermaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`salsalesordermaster`.`tCreateDate` AS `tCreateDate`,`salsalesordermaster`.`sMakePerson` AS `sMakePerson`,`salsalesordermaster`.`iOrder` AS `iOrder`,`salsalesordermaster`.`sFormId` AS `sFormId`,`salsalesordermaster`.`sFSC` AS `sFSC`,`salsalesordermaster`.`sBillNo` AS `sBillNo`,`salsalesordermaster`.`sCustomerId` AS `sCustomerId`,`salsalesordermaster`.`sContacts` AS `sContacts`,`salsalesordermaster`.`sPhone` AS `sPhone`,`salsalesordermaster`.`tProofingDate` AS `tProofingDate`,`salsalesordermaster`.`sSalesManId` AS `sSalesManId`,`salsalesordermaster`.`sGetPayId` AS `sGetPayId`,`salsalesordermaster`.`tGetPayDate` AS `tGetPayDate`,`salsalesordermaster`.`tDeliverDate` AS `tDeliverDate`,`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`,ifnull(`salsalesordermaster`.`sCustomerOrderNo`,`salsalesorderslave`.`sCustomerOrderNo`) AS `sCustomerOrderNo`,`salsalesordermaster`.`sMemo` AS `sMemo`,`salsalesordermaster`.`bCheck` AS `bCheck`,`salsalesordermaster`.`tCheckDate` AS `tCheckDate`,`salsalesordermaster`.`sCheckPerson` AS `sCheckPerson`,`salsalesordermaster`.`bPrint` AS `bPrint`,`salsalesordermaster`.`bCopyLimit` AS `bCopyLimit`,`salsalesordermaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`salsalesordermaster`.`tAdvanceDate` AS `tAdvanceDate`,`salsalesordermaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`salsalesordermaster`.`sCurrency` AS `sCurrency`,`salsalesordermaster`.`dCurrencyRate` AS `dCurrencyRate`,`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`,`salsalesordermaster`.`sOrderType` AS `sOrderType`,`salsalesordermaster`.`sStockup` AS `sStockup`,`salsalesordermaster`.`bAdvanceComplete` AS `bAdvanceComplete`,`salsalesordermaster`.`sRip` AS `sRip`,`salsalesordermaster`.`sRipTrue` AS `sRipTrue`,`salsalesordermaster`.`sProofing` AS `sProofing`,`salsalesordermaster`.`sProofingDetail` AS `sProofingDetail`,`salsalesordermaster`.`bManual` AS `bManual`,`salsalesordermaster`.`bCorrespondFile` AS `bCorrespondFile`,`salsalesordermaster`.`bLock` AS `bLock`,`salsalesordermaster`.`sNoFormat` AS `sNoFormat`,`salsalesordermaster`.`sCheck` AS `sCheck`,`salsalesordermaster`.`tCheck` AS `tCheck`,`salsalesordermaster`.`iProofing` AS `iProofing`,`salsalesordermaster`.`sLockPerson` AS `sLockPerson`,`salsalesordermaster`.`tSend` AS `tSend`,`salsalesordermaster`.`sSend` AS `sSend`,`salsalesorderslave`.`sId` AS `sSlaveId`,`salsalesorderslave`.`iOrder` AS `iSlaveOrder`,`salsalesorderslave`.`sProductId` AS `sProductId`,`salsalesorderslave`.`dProductLength` AS `dProductLength`,`salsalesorderslave`.`dProductWidth` AS `dProductWidth`,`salsalesorderslave`.`dMw` AS `dMw`,`salsalesorderslave`.`dProductQty` AS `dProductQty`,`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`,`salsalesorderslave`.`bWorkOrderComplete` AS `bWorkOrderComplete`,`salsalesorderslave`.`bDeliverComplete` AS `bDeliverComplete`,`salsalesorderslave`.`bDeliverNotifyComplete` AS `bDeliverNotifyComplete`,`salsalesorderslave`.`bCheckingComplete` AS `bCheckingComplete`,`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`,`salsalesorderslave`.`dWorkOrderQty` AS `dWorkOrderQty`,`salsalesorderslave`.`dDeliverNotifyQty` AS `dDeliverNotifyQty`,`salsalesorderslave`.`dDeliverNotifyGiveQty` AS `dDeliverNotifyGiveQty`,`salsalesorderslave`.`dDeliverQty` AS `dDeliverQty`,`salsalesorderslave`.`dCheckingQty` AS `dCheckingQty`,`salsalesorderslave`.`dReceiptMoney` AS `dReceiptMoney`,`salsalesorderslave`.`sWebOrderNo` AS `sWebOrderNo`,`salsalesorderslave`.`sWebOrderId` AS `sWebOrderId`,`salsalesorderslave`.`dGiveQty` AS `dGiveQty`,`salsalesorderslave`.`sBarcode` AS `sBarcode`,`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`,`salsalesorderslave`.`dSortNum` AS `dSortNum`,`salsalesorderslave`.`dPresentQty` AS `dPresentQty`,`salsalesorderslave`.`iIncrement` AS `iIncrement`,`salsalesorderslave`.`dLeftSide` AS `dLeftSide`,`salsalesorderslave`.`dSkip` AS `dSkip`,`salsalesorderslave`.`sPaperDirection` AS `sPaperDirection`,`salsalesorderslave`.`dPaper` AS `dPaper`,`salsalesorderslave`.`dMeters` AS `dMeters`,`salsalesorderslave`.`bCutting` AS `bCutting`,`salsalesorderslave`.`dOutSideDiameter` AS `dOutSideDiameter`,`salsalesorderslave`.`dDiameter` AS `dDiameter`,date_format(`salsalesorderslave`.`tDeliverDate`,'%Y-%m-%d') AS `tSlaveDeliverDate`,`salsalesorderslave`.`bReceiptComplete` AS `bReceiptComplete`,`salsalesorderslave`.`dMatchbillQty` AS `dMatchbillQty`,`salsalesorderslave`.`dStockupQty` AS `dStockupQty`,`salsalesorderslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`salsalesorderslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`salsalesorderslave`.`dMaterialsQty` AS `dMaterialsQty`,`salsalesorderslave`.`dConversionQty` AS `dConversionQty`,`salsalesorderslave`.`dProductForeignPrice` AS `dProductForeignPrice`,`salsalesorderslave`.`dProofingMoney` AS `dProofingMoney`,`salsalesorderslave`.`dPlateMoney` AS `dPlateMoney`,`salsalesorderslave`.`dFreightMoney` AS `dFreightMoney`,`salsalesorderslave`.`dKnifeMouldMoney` AS `dKnifeMouldMoney`,`salsalesorderslave`.`dProofingReturnMoney` AS `dProofingReturnMoney`,`salsalesorderslave`.`dPlateReturnMoney` AS `dPlateReturnMoney`,`salsalesorderslave`.`dKnifeMouldReturnMoney` AS `dKnifeMouldReturnMoney`,`salsalesorderslave`.`dFreightReturnMoney` AS `dFreightReturnMoney`,`salsalesorderslave`.`bMatchbillComplete` AS `bMatchbillComplete`,`salsalesorderslave`.`dQuotationMoney` AS `dQuotationMoney`,`salsalesorderslave`.`sLogisticCode` AS `sLogisticCode`,`salsalesorderslave`.`bStockupComplete` AS `bStockupComplete`,`salsalesorderslave`.`dTrunkQty` AS `dTrunkQty`,`salsalesorderslave`.`dReturnTrunkQty` AS `dReturnTrunkQty`,`salsalesorderslave`.`sPlateMaking` AS `sPlateMaking`,`salsalesorderslave`.`iReplyCount` AS `iReplyCount`,`salsalesorderslave`.`iReplyResult` AS `iReplyResult`,`salsalesorderslave`.`sCraftworksMemo` AS `sCraftworksMemo`,`salsalesorderslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`salsalesorderslave`.`sWorkOrderId` AS `sWorkOrderId`,`salsalesorderslave`.`sSaleDepartMemo` AS `sSaleDepartMemo`,`salsalesorderslave`.`tCraftworksReply` AS `tCraftworksReply`,`salsalesorderslave`.`bCraftworksReply` AS `bCraftworksReply`,`salsalesorderslave`.`sCraftworkPerson` AS `sCraftworkPerson`,`salsalesorderslave`.`tSaleDepartReply` AS `tSaleDepartReply`,`salsalesorderslave`.`sCustomerOrderNo` AS `sSlaveCustomerOrderNo`,`salsalesorderslave`.`sKpiQuoMemo` AS `sKpiQuoMemo`,`salsalesorderslave`.`bKpiQuo` AS `bKpiQuo`,`salsalesorderslave`.`tKpiQuoCloseDate` AS `tKpiQuoCloseDate`,`salsalesorderslave`.`sKpiObsoleteMemo` AS `sKpiObsoleteMemo`,`salsalesorderslave`.`bKpiObsolete` AS `bKpiObsolete`,`salsalesorderslave`.`tKpiObsoleteCloseDate` AS `tKpiObsoleteCloseDate`,`salsalesorderslave`.`sKpiObsoleteDutyPerson` AS `sKpiObsoleteDutyPerson`,`salsalesorderslave`.`tKpiObsoleteDutyDate` AS `tKpiObsoleteDutyDate`,`salsalesorderslave`.`bSlaveComplete` AS `bSlaveComplete`,`salsalesorderslave`.`tDeliverCompleteDate` AS `tDeliverCompleteDate`,`salsalesorderslave`.`sDeliverCompleteMemo` AS `sDeliverCompleteMemo`,`salsalesorderslave`.`sDeliverCompleteType` AS `sDeliverCompleteType`,`salsalesorderslave`.`bProductionOrder` AS `bProductionOrder`,`salsalesorderslave`.`sProductionOrder` AS `sProductionOrder`,`salsalesorderslave`.`tProductionOrder` AS `tProductionOrder`,`salsalesorderslave`.`sProductionOrderMemo` AS `sProductionOrderMemo`,`salsalesorderslave`.`sFilePerson` AS `sFilePerson`,`salsalesorderslave`.`tFileDate` AS `tFileDate`,`salsalesorderslave`.`sBillType` AS `sBillType`,`salsalesorderslave`.`bFile` AS `bFile`,`salsalesorderslave`.`sItemNo` AS `sItemNo`,`salsalesorderslave`.`bOutSideMould` AS `bOutSideMould`,`salsalesorderslave`.`bOutSideMouldComplete` AS `bOutSideMouldComplete`,`salsalesorderslave`.`sProductTechnologyVer` AS `sProductTechnologyVer`,`salsalesorderslave`.`sBomId` AS `sBomId`,`salsalesorderslave`.`bPrepareMaterials` AS `bPrepareMaterials`,`salsalesorderslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`salsalesorderslave`.`sWorkOrderCompletePerson` AS `sWorkOrderCompletePerson`,`salsalesorderslave`.`tWorkOrderCompleteDate` AS `tWorkOrderCompleteDate`,if((`salsalesorderslave`.`dDeliverQty` >= `salsalesorderslave`.`dProductQty`),0,(to_days(now()) - to_days(`salsalesorderslave`.`tDeliverDate`))) AS `dDiffDate`,`salsalesorderslave`.`dNProductPrice` AS `dNProductPrice`,`salsalesorderslave`.`dNProductMoney` AS `dNProductMoney`,`salsalesorderslave`.`dCostMoney` AS `dCostMoney`,`salsalesorderslave`.`bOutside` AS `bOutside`,`salsalesorderslave`.`dOutsideProcessQty` AS `dOutsideProcessQty`,`salsalesorderslave`.`bOutsideProcessComplete` AS `bOutsideProcessComplete`,`salsalesorderslave`.`sWebQuotationId` AS `sWebQuotationId`,`salsalesorderslave`.`sPrintMemo` AS `sPrintMemo`,`salsalesorderslave`.`sOrderWay` AS `sOrderWay`,`salsalesorderslave`.`sProductType` AS `sProductType`,`salsalesorderslave`.`sSizeSource` AS `sSizeSource`,`salsalesorderslave`.`sBoxStructure` AS `sBoxStructure`,`salsalesorderslave`.`sPaperMaterial` AS `sPaperMaterial`,`salsalesorderslave`.`sFilePath` AS `sFilePath`,`salsalesorderslave`.`sRDNo` AS `sRDNo`,`salsalesorderslave`.`dMaterialsDeliverQty` AS `dMaterialsDeliverQty`,`salsalesorderslave`.`dMaterialsDeliverNotifyQty` AS `dMaterialsDeliverNotifyQty`,`salsalesorderslave`.`dSalesdevplanQty` AS `dSalesdevplanQty`,`salsalesorderslave`.`bSalesdevplanComplete` AS `bSalesdevplanComplete`,`salsalesorderslave`.`dMaterialsSalesCheckingQty` AS `dMaterialsSalesCheckingQty`,`salsalesorderslave`.`bWebReceiptComplete` AS `bWebReceiptComplete`,`salsalesorderslave`.`sKnifeLine` AS `sKnifeLine`,`salsalesorderslave`.`iProoferState` AS `iProoferState`,`salsalesorderslave`.`sConfirmPerson` AS `sConfirmPerson`,`salsalesorderslave`.`iConfirmPersonSate` AS `iConfirmPersonSate`,`salsalesorderslave`.`sFollowUpPhase` AS `sFollowUpPhase`,`salsalesorderslave`.`sProoferPerson` AS `sProoferPerson`,`salsalesorderslave`.`dWorkOrderStockupQty` AS `dWorkOrderStockupQty`,`salsalesorderslave`.`dAuxiliaryPrice` AS `dAuxiliaryPrice`,`salsalesordermaster`.`iDemand` AS `iDemand`,`salsalesorderslave`.`sFatherSlaveId` AS `sFatherSlaveId`,`salsalesorderslave`.`dQuoRate` AS `dQuoRate`,`salsalesorderslave`.`dQuoPrice` AS `dQuoPrice`,`salsalesorderslave`.`dRealityPrice` AS `dRealityPrice`,`salsalesorderslave`.`sMaterialsId` AS `sMaterialsId`,`salsalesorderslave`.`tClaimDate` AS `tClaimDate`,`salsalesorderslave`.`dSparesQty` AS `dSparesQty`,`salsalesorderslave`.`dNotifySparesQty` AS `dNotifySparesQty`,`salsalesorderslave`.`dUseStockQty` AS `dUseStockQty`,`salsalesorderslave`.`dThisUseStockQty` AS `dThisUseStockQty`,`salsalesorderslave`.`dThisReleaseQty` AS `dThisReleaseQty`,(case when (`salsalesorderslave`.`iFlowState` = 1) then '新订单' when (`salsalesorderslave`.`iFlowState` = 2) then '已下达' when (`salsalesorderslave`.`iFlowState` = 3) then '已外购' when (`salsalesorderslave`.`iFlowState` = 4) then '已开单' when (`salsalesorderslave`.`iFlowState` = 5) then '已生产' when (`salsalesorderslave`.`iFlowState` = 6) then '已入库' when (`salsalesorderslave`.`iFlowState` = 7) then '已送货' end) AS `sFlowState`,`salsalesordermaster`.`sSrcType` AS `sSrcType`,`salsalesorderslave`.`sCustomerProductNo` AS `sCustomerProductNo`,`salsalesordermaster`.`tNextDate` AS `tNextDate`,`salsalesorderslave`.`iSucceed` AS `iSucceed`,`salsalesordermaster`.`sOldOrderNo` AS `sOldOrderNo`,`salsalesorderslave`.`dRejectQty` AS `dRejectQty`,`salsalesordermaster`.`iOldNew` AS `iOldNew`,`salsalesorderslave`.`dOutProductRejQty` AS `dOutProductRejQty`,(`salsalesorderslave`.`dDeliverNotifyQty` - `salsalesorderslave`.`dRejectQty`) AS `dDeliverNotifyQty1`,(`salsalesorderslave`.`dDeliverQty` - `salsalesorderslave`.`dRejectQty`) AS `dDeliverQty1`,`salsalesorderslave`.`dRejectBSQty` AS `dRejectBSQty`,`salsalesordermaster`.`sCustomerName` AS `sCustomerName`,`salsalesordermaster`.`bTechnology` AS `bTechnology`,`salsalesordermaster`.`sServiceName` AS `sServiceName`,`salsalesordermaster`.`sNPDNo` AS `sNPDNo`,`salsalesordermaster`.`bBillComplete` AS `bBillComplete`,`salsalesordermaster`.`tBillCompleteDate` AS `tBillCompleteDate`,`salsalesordermaster`.`sCompletePerson` AS `sCompletePerson`,`salsalesordermaster`.`iNPD` AS `iNPD`,`salsalesorderslave`.`dRejectGiveQty` AS `dRejectGiveQty`,`salsalesorderslave`.`dRejectMaterialsBSQty` AS `dRejectMaterialsBSQty`,`salsalesorderslave`.`iFlowState` AS `iFlowState` from (`salsalesordermaster` join `salsalesorderslave` on((`salsalesorderslave`.`sParentId` = `salsalesordermaster`.`sId`)))
```

## Narrative

_No human-written narrative yet._
