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

## Definition

```sql
select `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`.`dMaterialsPrice` AS `dMaterialsPrice`,`purpurchaseinstoreslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`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`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`purpurchaseinstoreslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`purpurchaseinstoreslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`purpurchaseinstoreslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`purpurchaseinstoreslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`purpurchaseinstoreslave`.`bCheckingComplete` AS `bCheckingComplete`,`purpurchaseinstoreslave`.`dCheckingAuxiliaryQty` AS `dCheckingAuxiliaryQty`,`purpurchaseinstoreslave`.`dCheckingQty` AS `dCheckingQty`,`purpurchaseinstoreslave`.`dRejectAuxiliaryQty` AS `dRejectAuxiliaryQty`,`purpurchaseinstoreslave`.`dRejectQty` AS `dRejectQty`,`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`.`sOrderNo` AS `sOrderNo`,`purpurchaseinstoreslave`.`sWorkOrderId` AS `sWorkOrderId`,`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`.`dGiveQty` AS `dGiveQty`,`purpurchaseinstoreslave`.`dPayMoney` AS `dPayMoney`,`purpurchaseinstoreslave`.`iIncrement` AS `iIncrement`,`purpurchaseinstoreslave`.`sPurchaseApplyId` AS `sPurchaseApplyId`,`purpurchaseinstoreslave`.`sPurchaseApplySlaveId` AS `sPurchaseApplySlaveId`,`purpurchaseinstoreslave`.`sPurchaseApplySlaveNo` AS `sPurchaseApplySlaveNo`,`purpurchaseinstoreslave`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`purpurchaseinstoreslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`purpurchaseinstoreslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`purpurchaseinstoreslave`.`dSrcAuxiliaryQty` AS `dSrcAuxiliaryQty`,`purpurchaseinstoreslave`.`bPaymentComplete` AS `bPaymentComplete`,`purpurchaseinstoremaster`.`iVouchermark` AS `iVouchermark`,`purpurchaseinstoremaster`.`sMinusSrcId` AS `sMinusSrcId`,`purpurchaseinstoreslave`.`dKGQty` AS `dKGQty`,`purpurchaseinstoremaster`.`bConfirmComplete` AS `bConfirmComplete`,`purpurchaseinstoremaster`.`sConfirmPerson` AS `sConfirmPerson`,`purpurchaseinstoremaster`.`tConfirmDate` AS `tConfirmDate`,`purpurchaseinstoreslave`.`bVMI` AS `bVMI`,`purpurchaseinstoreslave`.`dOutAuxiliaryQty` AS `dOutAuxiliaryQty`,`purpurchaseinstoreslave`.`dOutMaterialsQty` AS `dOutMaterialsQty`,`purpurchaseinstoremaster`.`iPrintNum` AS `iPrintNum`,`purpurchaseinstoremaster`.`sPrintName` AS `sPrintName` from (`purpurchaseinstoremaster` join `purpurchaseinstoreslave` on((`purpurchaseinstoreslave`.`sParentId` = `purpurchaseinstoremaster`.`sId`)))
```

## Narrative

_No human-written narrative yet._
