# `viw_purpurchasecheck` (view)


- **Updatable:** NO

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(100)` | NO |
| 3 | `sBrandsId` | `varchar(100)` | NO |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `sMakePerson` | `varchar(255)` | NO |
| 7 | `iOrder` | `int` | NO |
| 8 | `sFormId` | `varchar(100)` | NO |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sSupplyId` | `varchar(100)` | NO |
| 11 | `sContacts` | `varchar(255)` | YES |
| 12 | `sPhone` | `varchar(255)` | YES |
| 13 | `tDeliverDate` | `datetime` | YES |
| 14 | `sPurchaseManId` | `varchar(100)` | YES |
| 15 | `sGetPayId` | `varchar(100)` | YES |
| 16 | `tGetPayDate` | `datetime` | YES |
| 17 | `sConsignee` | `varchar(255)` | YES |
| 18 | `sConsigneeMobile` | `varchar(255)` | YES |
| 19 | `sDeliverId` | `varchar(100)` | YES |
| 20 | `sProvince` | `varchar(255)` | YES |
| 21 | `sCity` | `varchar(255)` | YES |
| 22 | `sArea` | `varchar(255)` | YES |
| 23 | `sDeliverTo` | `varchar(255)` | YES |
| 24 | `sManualNo` | `varchar(255)` | YES |
| 25 | `sMemo` | `mediumtext` | YES |
| 26 | `bCheck` | `bit(1)` | NO |
| 27 | `tCheckDate` | `datetime` | YES |
| 28 | `sCheckPerson` | `varchar(255)` | YES |
| 29 | `bPrint` | `bit(1)` | NO |
| 30 | `bCopyLimit` | `bit(1)` | NO |
| 31 | `dAdvanceMoney` | `decimal(18,6)` | YES |
| 32 | `tAdvanceDate` | `datetime` | YES |
| 33 | `dRealAdvanceMoney` | `decimal(18,6)` | NO |
| 34 | `sCurrency` | `varchar(255)` | YES |
| 35 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 36 | `sStatus` | `varchar(255)` | YES |
| 37 | `bInvalid` | `bit(1)` | NO |
| 38 | `sMReserve1` | `varchar(255)` | YES |
| 39 | `sMReserve2` | `varchar(255)` | YES |
| 40 | `sMReserve3` | `varchar(255)` | YES |
| 41 | `sMReserve4` | `varchar(255)` | YES |
| 42 | `sMReserve5` | `varchar(255)` | YES |
| 43 | `sMReserve6` | `varchar(255)` | YES |
| 44 | `dMReserve1` | `decimal(18,6)` | YES |
| 45 | `dMReserve2` | `decimal(18,6)` | YES |
| 46 | `dMReserve3` | `decimal(18,6)` | YES |
| 47 | `iMReserve1` | `int` | YES |
| 48 | `iMReserve2` | `int` | YES |
| 49 | `iMReserve3` | `int` | YES |
| 50 | `tMReserve1` | `datetime` | YES |
| 51 | `tMReserve2` | `datetime` | YES |
| 52 | `sSlaveId` | `varchar(100)` | NO |
| 53 | `iSlaveOrder` | `int` | NO |
| 54 | `sMaterialsId` | `varchar(100)` | NO |
| 55 | `sMaterialsStyle` | `varchar(255)` | NO |
| 56 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 57 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 58 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 59 | `dConversionQty` | `decimal(18,6)` | NO |
| 60 | `dPresentAuxiliaryQty` | `decimal(18,6)` | YES |
| 61 | `dPresentQty` | `decimal(18,6)` | YES |
| 62 | `sSrcSlaveId` | `varchar(100)` | NO |
| 63 | `sSrcId` | `varchar(100)` | NO |
| 64 | `sSrcNo` | `varchar(255)` | NO |
| 65 | `dSrcQty` | `decimal(18,6)` | YES |
| 66 | `sSlaveMemo` | `mediumtext` | YES |
| 67 | `sTaxId` | `varchar(100)` | YES |
| 68 | `bCheckingComplete` | `bit(1)` | NO |
| 69 | `dCheckingAuxiliaryQty` | `decimal(18,6)` | NO |
| 70 | `dCheckingQty` | `decimal(18,6)` | NO |
| 71 | `dRejectAuxiliaryQty` | `decimal(18,6)` | YES |
| 72 | `dRejectQty` | `decimal(18,6)` | YES |
| 73 | `dPayMoney` | `decimal(18,6)` | NO |
| 74 | `sDefineNo` | `varchar(100)` | NO |
| 75 | `sDefineNo2` | `varchar(100)` | NO |
| 76 | `sWareHouseId` | `varchar(100)` | NO |
| 77 | `sLocationId` | `varchar(100)` | NO |
| 78 | `sWareHouseLocationId` | `varchar(100)` | NO |
| 79 | `sPurchaseOrderId` | `varchar(100)` | NO |
| 80 | `sPurchaseOrderSlaveId` | `varchar(100)` | NO |
| 81 | `sPurchaseOrderNo` | `varchar(255)` | NO |
| 82 | `sOrderId` | `varchar(100)` | NO |
| 83 | `sOrderSlaveId` | `varchar(100)` | NO |
| 84 | `sOrderNo` | `varchar(255)` | NO |
| 85 | `sWorkOrderId` | `varchar(100)` | NO |
| 86 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 87 | `sWorkOrderNo` | `text` | NO |
| 88 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 89 | `sBarcode` | `varchar(255)` | YES |
| 90 | `sSReserve1` | `varchar(255)` | YES |
| 91 | `sSReserve2` | `varchar(255)` | YES |
| 92 | `sSReserve3` | `varchar(255)` | YES |
| 93 | `sSReserve4` | `varchar(255)` | YES |
| 94 | `sSReserve5` | `varchar(255)` | YES |
| 95 | `sSReserve6` | `varchar(255)` | YES |
| 96 | `dSReserve1` | `decimal(18,6)` | YES |
| 97 | `dSReserve2` | `decimal(18,6)` | YES |
| 98 | `dSReserve3` | `decimal(18,6)` | YES |
| 99 | `iSReserve1` | `int` | YES |
| 100 | `iSReserve2` | `int` | YES |
| 101 | `iSReserve3` | `int` | YES |
| 102 | `tSReserve1` | `datetime` | YES |
| 103 | `tSReserve2` | `datetime` | YES |
| 104 | `dGiveAuxiliaryQty` | `decimal(18,6)` | YES |
| 105 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 106 | `dGiveQty` | `decimal(18,6)` | YES |
| 107 | `dMaterialsMoney` | `decimal(18,6)` | YES |
| 108 | `dMaterialsPrice` | `decimal(18,6)` | YES |
| 109 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 110 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 111 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 112 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 113 | `bVMI` | `decimal(1,0)` | YES |

## Definition

```sql
select `purpurchaseinstoremaster`.`iIncrement` AS `iIncrement`,`purpurchaseinstoremaster`.`sId` AS `sId`,`purpurchaseinstoremaster`.`sBrandsId` AS `sBrandsId`,`purpurchaseinstoremaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`purpurchaseinstoremaster`.`tCreateDate` AS `tCreateDate`,`purpurchaseinstoremaster`.`sMakePerson` AS `sMakePerson`,`purpurchaseinstoremaster`.`iOrder` AS `iOrder`,`purpurchaseinstoremaster`.`sFormId` AS `sFormId`,`purpurchaseinstoremaster`.`sBillNo` AS `sBillNo`,`purpurchaseinstoremaster`.`sSupplyId` AS `sSupplyId`,`purpurchaseinstoremaster`.`sContacts` AS `sContacts`,`purpurchaseinstoremaster`.`sPhone` AS `sPhone`,`purpurchaseinstoremaster`.`tDeliverDate` AS `tDeliverDate`,`purpurchaseinstoremaster`.`sPurchaseManId` AS `sPurchaseManId`,`purpurchaseinstoremaster`.`sGetPayId` AS `sGetPayId`,`purpurchaseinstoremaster`.`tGetPayDate` AS `tGetPayDate`,`purpurchaseinstoremaster`.`sConsignee` AS `sConsignee`,`purpurchaseinstoremaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`purpurchaseinstoremaster`.`sDeliverId` AS `sDeliverId`,`purpurchaseinstoremaster`.`sProvince` AS `sProvince`,`purpurchaseinstoremaster`.`sCity` AS `sCity`,`purpurchaseinstoremaster`.`sArea` AS `sArea`,`purpurchaseinstoremaster`.`sDeliverTo` AS `sDeliverTo`,`purpurchaseinstoremaster`.`sManualNo` AS `sManualNo`,`purpurchaseinstoremaster`.`sMemo` AS `sMemo`,`purpurchaseinstoremaster`.`bCheck` AS `bCheck`,`purpurchaseinstoremaster`.`tCheckDate` AS `tCheckDate`,`purpurchaseinstoremaster`.`sCheckPerson` AS `sCheckPerson`,`purpurchaseinstoremaster`.`bPrint` AS `bPrint`,`purpurchaseinstoremaster`.`bCopyLimit` AS `bCopyLimit`,`purpurchaseinstoremaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`purpurchaseinstoremaster`.`tAdvanceDate` AS `tAdvanceDate`,`purpurchaseinstoremaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`purpurchaseinstoremaster`.`sCurrency` AS `sCurrency`,`purpurchaseinstoremaster`.`dCurrencyRate` AS `dCurrencyRate`,`purpurchaseinstoremaster`.`sStatus` AS `sStatus`,`purpurchaseinstoremaster`.`bInvalid` AS `bInvalid`,`purpurchaseinstoremaster`.`sMReserve1` AS `sMReserve1`,`purpurchaseinstoremaster`.`sMReserve2` AS `sMReserve2`,`purpurchaseinstoremaster`.`sMReserve3` AS `sMReserve3`,`purpurchaseinstoremaster`.`sMReserve4` AS `sMReserve4`,`purpurchaseinstoremaster`.`sMReserve5` AS `sMReserve5`,`purpurchaseinstoremaster`.`sMReserve6` AS `sMReserve6`,`purpurchaseinstoremaster`.`dMReserve1` AS `dMReserve1`,`purpurchaseinstoremaster`.`dMReserve2` AS `dMReserve2`,`purpurchaseinstoremaster`.`dMReserve3` AS `dMReserve3`,`purpurchaseinstoremaster`.`iMReserve1` AS `iMReserve1`,`purpurchaseinstoremaster`.`iMReserve2` AS `iMReserve2`,`purpurchaseinstoremaster`.`iMReserve3` AS `iMReserve3`,`purpurchaseinstoremaster`.`tMReserve1` AS `tMReserve1`,`purpurchaseinstoremaster`.`tMReserve2` AS `tMReserve2`,`purpurchaseinstoreslave`.`sId` AS `sSlaveId`,`purpurchaseinstoreslave`.`iOrder` AS `iSlaveOrder`,`purpurchaseinstoreslave`.`sMaterialsId` AS `sMaterialsId`,`purpurchaseinstoreslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`purpurchaseinstoreslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`purpurchaseinstoreslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`purpurchaseinstoreslave`.`dMaterialsQty` AS `dMaterialsQty`,`purpurchaseinstoreslave`.`dConversionQty` AS `dConversionQty`,`purpurchaseinstoreslave`.`dPresentAuxiliaryQty` AS `dPresentAuxiliaryQty`,`purpurchaseinstoreslave`.`dPresentQty` AS `dPresentQty`,`purpurchaseinstoreslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`purpurchaseinstoreslave`.`sSrcId` AS `sSrcId`,`purpurchaseinstoreslave`.`sSrcNo` AS `sSrcNo`,`purpurchaseinstoreslave`.`dSrcQty` AS `dSrcQty`,`purpurchaseinstoreslave`.`sSlaveMemo` AS `sSlaveMemo`,`purpurchaseinstoreslave`.`sTaxId` AS `sTaxId`,`purpurchaseinstoreslave`.`bCheckingComplete` AS `bCheckingComplete`,`purpurchaseinstoreslave`.`dCheckingAuxiliaryQty` AS `dCheckingAuxiliaryQty`,`purpurchaseinstoreslave`.`dCheckingQty` AS `dCheckingQty`,`purpurchaseinstoreslave`.`dRejectAuxiliaryQty` AS `dRejectAuxiliaryQty`,`purpurchaseinstoreslave`.`dRejectQty` AS `dRejectQty`,`purpurchaseinstoreslave`.`dPayMoney` AS `dPayMoney`,`purpurchaseinstoreslave`.`sDefineNo` AS `sDefineNo`,`purpurchaseinstoreslave`.`sDefineNo2` AS `sDefineNo2`,`purpurchaseinstoreslave`.`sWareHouseId` AS `sWareHouseId`,`purpurchaseinstoreslave`.`sLocationId` AS `sLocationId`,`purpurchaseinstoreslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`purpurchaseinstoreslave`.`sPurchaseOrderId` AS `sPurchaseOrderId`,`purpurchaseinstoreslave`.`sPurchaseOrderSlaveId` AS `sPurchaseOrderSlaveId`,`purpurchaseinstoreslave`.`sPurchaseOrderNo` AS `sPurchaseOrderNo`,`purpurchaseinstoreslave`.`sOrderId` AS `sOrderId`,`purpurchaseinstoreslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`purpurchaseinstoreslave`.`sOrderNo` AS `sOrderNo`,`purpurchaseinstoreslave`.`sWorkOrderId` AS `sWorkOrderId`,`purpurchaseinstoreslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`purpurchaseinstoreslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`purpurchaseinstoreslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`purpurchaseinstoreslave`.`sBarcode` AS `sBarcode`,`purpurchaseinstoreslave`.`sSReserve1` AS `sSReserve1`,`purpurchaseinstoreslave`.`sSReserve2` AS `sSReserve2`,`purpurchaseinstoreslave`.`sSReserve3` AS `sSReserve3`,`purpurchaseinstoreslave`.`sSReserve4` AS `sSReserve4`,`purpurchaseinstoreslave`.`sSReserve5` AS `sSReserve5`,`purpurchaseinstoreslave`.`sSReserve6` AS `sSReserve6`,`purpurchaseinstoreslave`.`dSReserve1` AS `dSReserve1`,`purpurchaseinstoreslave`.`dSReserve2` AS `dSReserve2`,`purpurchaseinstoreslave`.`dSReserve3` AS `dSReserve3`,`purpurchaseinstoreslave`.`iSReserve1` AS `iSReserve1`,`purpurchaseinstoreslave`.`iSReserve2` AS `iSReserve2`,`purpurchaseinstoreslave`.`iSReserve3` AS `iSReserve3`,`purpurchaseinstoreslave`.`tSReserve1` AS `tSReserve1`,`purpurchaseinstoreslave`.`tSReserve2` AS `tSReserve2`,`purpurchaseinstoreslave`.`dGiveAuxiliaryQty` AS `dGiveAuxiliaryQty`,`purpurchaseinstoreslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`purpurchaseinstoreslave`.`dGiveQty` AS `dGiveQty`,`purpurchaseinstoreslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`purpurchaseinstoreslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`purpurchaseinstoreslave`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`purpurchaseinstoreslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`purpurchaseinstoreslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`purpurchaseinstoreslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`purpurchaseinstoreslave`.`bVMI` AS `bVMI` from (`purpurchaseinstoremaster` join `purpurchaseinstoreslave` on((`purpurchaseinstoreslave`.`sParentId` = `purpurchaseinstoremaster`.`sId`))) union all select `purpurchaserejectmaster`.`iIncrement` AS `iIncrement`,`purpurchaserejectmaster`.`sId` AS `sId`,`purpurchaserejectmaster`.`sBrandsId` AS `sBrandsId`,`purpurchaserejectmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`purpurchaserejectmaster`.`tCreateDate` AS `tCreateDate`,`purpurchaserejectmaster`.`sMakePerson` AS `sMakePerson`,`purpurchaserejectmaster`.`iOrder` AS `iOrder`,`purpurchaserejectmaster`.`sFormId` AS `sFormId`,`purpurchaserejectmaster`.`sBillNo` AS `sBillNo`,`purpurchaserejectmaster`.`sSupplyId` AS `sSupplyId`,`purpurchaserejectmaster`.`sContacts` AS `sContacts`,`purpurchaserejectmaster`.`sPhone` AS `sPhone`,`purpurchaserejectmaster`.`tDeliverDate` AS `tDeliverDate`,`purpurchaserejectmaster`.`sPurchaseManId` AS `sPurchaseManId`,`purpurchaserejectmaster`.`sGetPayId` AS `sGetPayId`,`purpurchaserejectmaster`.`tGetPayDate` AS `tGetPayDate`,`purpurchaserejectmaster`.`sConsignee` AS `sConsignee`,`purpurchaserejectmaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`purpurchaserejectmaster`.`sDeliverId` AS `sDeliverId`,`purpurchaserejectmaster`.`sProvince` AS `sProvince`,`purpurchaserejectmaster`.`sCity` AS `sCity`,`purpurchaserejectmaster`.`sArea` AS `sArea`,`purpurchaserejectmaster`.`sDeliverTo` AS `sDeliverTo`,`purpurchaserejectmaster`.`sManualNo` AS `sManualNo`,`purpurchaserejectmaster`.`sMemo` AS `sMemo`,`purpurchaserejectmaster`.`bCheck` AS `bCheck`,`purpurchaserejectmaster`.`tCheckDate` AS `tCheckDate`,`purpurchaserejectmaster`.`sCheckPerson` AS `sCheckPerson`,`purpurchaserejectmaster`.`bPrint` AS `bPrint`,`purpurchaserejectmaster`.`bCopyLimit` AS `bCopyLimit`,`purpurchaserejectmaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`purpurchaserejectmaster`.`tAdvanceDate` AS `tAdvanceDate`,`purpurchaserejectmaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`purpurchaserejectmaster`.`sCurrency` AS `sCurrency`,`purpurchaserejectmaster`.`dCurrencyRate` AS `dCurrencyRate`,`purpurchaserejectmaster`.`sStatus` AS `sStatus`,`purpurchaserejectmaster`.`bInvalid` AS `bInvalid`,`purpurchaserejectmaster`.`sMReserve1` AS `sMReserve1`,`purpurchaserejectmaster`.`sMReserve2` AS `sMReserve2`,`purpurchaserejectmaster`.`sMReserve3` AS `sMReserve3`,`purpurchaserejectmaster`.`sMReserve4` AS `sMReserve4`,`purpurchaserejectmaster`.`sMReserve5` AS `sMReserve5`,`purpurchaserejectmaster`.`sMReserve6` AS `sMReserve6`,`purpurchaserejectmaster`.`dMReserve1` AS `dMReserve1`,`purpurchaserejectmaster`.`dMReserve2` AS `dMReserve2`,`purpurchaserejectmaster`.`dMReserve3` AS `dMReserve3`,`purpurchaserejectmaster`.`iMReserve1` AS `iMReserve1`,`purpurchaserejectmaster`.`iMReserve2` AS `iMReserve2`,`purpurchaserejectmaster`.`iMReserve3` AS `iMReserve3`,`purpurchaserejectmaster`.`tMReserve1` AS `tMReserve1`,`purpurchaserejectmaster`.`tMReserve2` AS `tMReserve2`,`purpurchaserejectslave`.`sId` AS `sSlaveId`,`purpurchaserejectslave`.`iOrder` AS `iSlaveOrder`,`purpurchaserejectslave`.`sMaterialsId` AS `sMaterialsId`,`purpurchaserejectslave`.`sMaterialsStyle` AS `sMaterialsStyle`,-(`purpurchaserejectslave`.`dAuxiliaryQty`) AS `dAuxiliaryQty`,`purpurchaserejectslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,-(`purpurchaserejectslave`.`dMaterialsQty`) AS `dMaterialsQty`,-(`purpurchaserejectslave`.`dConversionQty`) AS `dConversionQty`,NULL AS `dPresentAuxiliaryQty`,NULL AS `dPresentQty`,`purpurchaserejectslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`purpurchaserejectslave`.`sSrcId` AS `sSrcId`,`purpurchaserejectslave`.`sSrcNo` AS `sSrcNo`,`purpurchaserejectslave`.`dSrcQty` AS `dSrcQty`,`purpurchaserejectslave`.`sSlaveMemo` AS `sSlaveMemo`,`purpurchaserejectslave`.`sTaxId` AS `sTaxId`,`purpurchaserejectslave`.`bCheckingComplete` AS `bCheckingComplete`,`purpurchaserejectslave`.`dCheckingAuxiliaryQty` AS `dCheckingAuxiliaryQty`,`purpurchaserejectslave`.`dCheckingQty` AS `dCheckingQty`,NULL AS `dRejectAuxiliaryQty`,NULL AS `dRejectQty`,`purpurchaserejectslave`.`dPayMoney` AS `dPayMoney`,`purpurchaserejectslave`.`sDefineNo` AS `sDefineNo`,`purpurchaserejectslave`.`sDefineNo2` AS `sDefineNo2`,`purpurchaserejectslave`.`sWareHouseId` AS `sWareHouseId`,`purpurchaserejectslave`.`sLocationId` AS `sLocationId`,`purpurchaserejectslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`purpurchaserejectslave`.`sPurchaseOrderId` AS `sPurchaseOrderId`,`purpurchaserejectslave`.`sPurchaseOrderSlaveId` AS `sPurchaseOrderSlaveId`,`purpurchaserejectslave`.`sPurchaseOrderNo` AS `sPurchaseOrderNo`,`purpurchaserejectslave`.`sOrderId` AS `sOrderId`,`purpurchaserejectslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`purpurchaserejectslave`.`sOrderNo` AS `sOrderNo`,`purpurchaserejectslave`.`sWorkOrderId` AS `sWorkOrderId`,`purpurchaserejectslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`purpurchaserejectslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`purpurchaserejectslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`purpurchaserejectslave`.`sBarcode` AS `sBarcode`,`purpurchaserejectslave`.`sSReserve1` AS `sSReserve1`,`purpurchaserejectslave`.`sSReserve2` AS `sSReserve2`,`purpurchaserejectslave`.`sSReserve3` AS `sSReserve3`,`purpurchaserejectslave`.`sSReserve4` AS `sSReserve4`,`purpurchaserejectslave`.`sSReserve5` AS `sSReserve5`,`purpurchaserejectslave`.`sSReserve6` AS `sSReserve6`,`purpurchaserejectslave`.`dSReserve1` AS `dSReserve1`,`purpurchaserejectslave`.`dSReserve2` AS `dSReserve2`,`purpurchaserejectslave`.`dSReserve3` AS `dSReserve3`,`purpurchaserejectslave`.`iSReserve1` AS `iSReserve1`,`purpurchaserejectslave`.`iSReserve2` AS `iSReserve2`,`purpurchaserejectslave`.`iSReserve3` AS `iSReserve3`,`purpurchaserejectslave`.`tSReserve1` AS `tSReserve1`,`purpurchaserejectslave`.`tSReserve2` AS `tSReserve2`,`purpurchaserejectslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`purpurchaserejectslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`purpurchaserejectslave`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`purpurchaserejectslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`purpurchaserejectslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`purpurchaserejectslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,NULL AS `dGiveAuxiliaryQty`,NULL AS `dGiveQty`,`purpurchaserejectslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`purpurchaserejectslave`.`bVMI` AS `bVMI` from (`purpurchaserejectmaster` join `purpurchaserejectslave` on((`purpurchaserejectslave`.`sParentId` = `purpurchaserejectmaster`.`sId`))) union all select `a`.`iIncrement` AS `iIncrement`,`a`.`sId` AS `sId`,`a`.`sBrandsId` AS `sBrandsId`,`a`.`sSubsidiaryId` AS `sSubsidiaryId`,`a`.`tCreateDate` AS `tCreateDate`,`a`.`sMakePerson` AS `sMakePerson`,`a`.`iOrder` AS `iOrder`,`a`.`sFormId` AS `sFormId`,`a`.`sBillNo` AS `sBillNo`,`a`.`sSupplyId` AS `sSupplyId`,`a`.`sContacts` AS `sContacts`,`a`.`sPhone` AS `sPhone`,`a`.`tDeliverDate` AS `tDeliverDate`,`a`.`sPurchaseManId` AS `sPurchaseManId`,`a`.`sGetPayId` AS `sGetPayId`,`a`.`tGetPayDate` AS `tGetPayDate`,`a`.`sConsignee` AS `sConsignee`,`a`.`sConsigneeMobile` AS `sConsigneeMobile`,`a`.`sDeliverId` AS `sDeliverId`,`a`.`sProvince` AS `sProvince`,`a`.`sCity` AS `sCity`,`a`.`sArea` AS `sArea`,`a`.`sDeliverTo` AS `sDeliverTo`,`a`.`sManualNo` AS `sManualNo`,`a`.`sMemo` AS `sMemo`,`a`.`bCheck` AS `bCheck`,`a`.`tCheckDate` AS `tCheckDate`,`a`.`sCheckPerson` AS `sCheckPerson`,`a`.`bPrint` AS `bPrint`,`a`.`bCopyLimit` AS `bCopyLimit`,0 AS `dAdvanceMoney`,NULL AS `tAdvanceDate`,0 AS `dRealAdvanceMoney`,`a`.`sCurrency` AS `sCurrency`,`a`.`dCurrencyRate` AS `dCurrencyRate`,`a`.`sStatus` AS `sStatus`,`a`.`bInvalid` AS `bInvalid`,`a`.`sMReserve1` AS `sMReserve1`,`a`.`sMReserve2` AS `sMReserve2`,`a`.`sMReserve3` AS `sMReserve3`,`a`.`sMReserve4` AS `sMReserve4`,`a`.`sMReserve5` AS `sMReserve5`,`a`.`sMReserve6` AS `sMReserve6`,`a`.`dMReserve1` AS `dMReserve1`,`a`.`dMReserve2` AS `dMReserve2`,`a`.`dMReserve3` AS `dMReserve3`,`a`.`iMReserve1` AS `iMReserve1`,`a`.`iMReserve2` AS `iMReserve2`,`a`.`iMReserve3` AS `iMReserve3`,`a`.`tMReserve1` AS `tMReserve1`,`a`.`tMReserve2` AS `tMReserve2`,`a`.`sId` AS `sSlaveId`,`a`.`iOrder` AS `iSlaveOrder`,`s`.`sMaterialsId` AS `sMaterialsId`,`s`.`sMaterialsStyle` AS `sMaterialsStyle`,-(`s`.`dAuxiliaryQty`) AS `dAuxiliaryQty`,`s`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,-(`s`.`dMaterialsQty`) AS `dMaterialsQty`,-(`s`.`dConversionQty`) AS `dConversionQty`,NULL AS `dPresentAuxiliaryQty`,NULL AS `dPresentQty`,`s`.`sSrcSlaveId` AS `sSrcSlaveId`,`s`.`sSrcId` AS `sSrcId`,`s`.`sSrcNo` AS `sSrcNo`,`s`.`dSrcQty` AS `dSrcQty`,`s`.`sSlaveMemo` AS `sSlaveMemo`,`s`.`sTaxId` AS `sTaxId`,`s`.`bCheckingComplete` AS `bCheckingComplete`,`s`.`dCheckingAuxiliaryQty` AS `dCheckingAuxiliaryQty`,`s`.`dCheckingQty` AS `dCheckingQty`,NULL AS `dRejectAuxiliaryQty`,NULL AS `dRejectQty`,`s`.`dPayMoney` AS `dPayMoney`,'' AS `sDefineNo`,'' AS `sDefineNo2`,'' AS `sWareHouseId`,'' AS `sLocationId`,'' AS `sWareHouseLocationId`,`s`.`sPurchaseOrderId` AS `sPurchaseOrderId`,'' AS `sPurchaseOrderSlaveId`,`s`.`sPurchaseOrderNo` AS `sPurchaseOrderNo`,`s`.`sOrderId` AS `sOrderId`,'' AS `sOrderSlaveId`,`s`.`sOrderNo` AS `sOrderNo`,`s`.`sWorkOrderId` AS `sWorkOrderId`,'' AS `sWorkOrderSlaveId`,`s`.`sWorkOrderNo` AS `sWorkOrderNo`,`s`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`s`.`sBarcode` AS `sBarcode`,`s`.`sSReserve1` AS `sSReserve1`,`s`.`sSReserve2` AS `sSReserve2`,`s`.`sSReserve3` AS `sSReserve3`,`s`.`sSReserve4` AS `sSReserve4`,`s`.`sSReserve5` AS `sSReserve5`,`s`.`sSReserve6` AS `sSReserve6`,`s`.`dSReserve1` AS `dSReserve1`,`s`.`dSReserve2` AS `dSReserve2`,`s`.`dSReserve3` AS `dSReserve3`,`s`.`iSReserve1` AS `iSReserve1`,`s`.`iSReserve2` AS `iSReserve2`,`s`.`iSReserve3` AS `iSReserve3`,`s`.`tSReserve1` AS `tSReserve1`,`s`.`tSReserve2` AS `tSReserve2`,NULL AS `dGiveAuxiliaryQty`,NULL AS `dGiveQty`,`s`.`dMaterialsMoney` AS `dMaterialsMoney`,`s`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`s`.`dMaterialsPrice` AS `dMaterialsPrice`,`s`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`s`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`s`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`s`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,0 AS `bVMI` from (`purqualityabnormalmaster` `a` join `purqualityabnormalslave` `s` on((`a`.`sId` = `s`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
