# `viw_purpurchasecheck_newded` (view)


- **Updatable:** YES

## 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` | `text` | 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)` | NO |
| 61 | `dPresentQty` | `decimal(18,6)` | NO |
| 62 | `sSrcSlaveId` | `varchar(100)` | NO |
| 63 | `sSrcId` | `varchar(100)` | NO |
| 64 | `sSrcNo` | `varchar(255)` | NO |
| 65 | `dSrcQty` | `decimal(18,6)` | YES |
| 66 | `sSlaveMemo` | `text` | YES |
| 67 | `sTaxId` | `varchar(100)` | YES |
| 68 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 69 | `bCheckingComplete` | `bit(1)` | NO |
| 70 | `dCheckingAuxiliaryQty` | `decimal(18,6)` | NO |
| 71 | `dCheckingQty` | `decimal(18,6)` | NO |
| 72 | `dRejectAuxiliaryQty` | `decimal(18,6)` | NO |
| 73 | `dRejectQty` | `decimal(18,6)` | NO |
| 74 | `dPayMoney` | `decimal(18,6)` | NO |
| 75 | `sDefineNo` | `varchar(100)` | NO |
| 76 | `sDefineNo2` | `varchar(100)` | NO |
| 77 | `sWareHouseId` | `varchar(100)` | NO |
| 78 | `sLocationId` | `varchar(100)` | NO |
| 79 | `sWareHouseLocationId` | `varchar(100)` | NO |
| 80 | `sPurchaseOrderId` | `varchar(100)` | NO |
| 81 | `sPurchaseOrderSlaveId` | `varchar(100)` | NO |
| 82 | `sPurchaseOrderNo` | `varchar(255)` | NO |
| 83 | `sOrderId` | `varchar(100)` | NO |
| 84 | `sOrderSlaveId` | `varchar(100)` | NO |
| 85 | `sOrderNo` | `varchar(255)` | NO |
| 86 | `sWorkOrderId` | `varchar(100)` | NO |
| 87 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 88 | `sWorkOrderNo` | `varchar(4000)` | NO |
| 89 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 90 | `sBarcode` | `varchar(255)` | YES |
| 91 | `sSReserve1` | `varchar(255)` | YES |
| 92 | `sSReserve2` | `varchar(255)` | YES |
| 93 | `sSReserve3` | `varchar(255)` | YES |
| 94 | `sSReserve4` | `varchar(255)` | YES |
| 95 | `sSReserve5` | `varchar(255)` | YES |
| 96 | `sSReserve6` | `varchar(255)` | YES |
| 97 | `dSReserve1` | `decimal(18,6)` | YES |
| 98 | `dSReserve2` | `decimal(18,6)` | YES |
| 99 | `dSReserve3` | `decimal(18,6)` | YES |
| 100 | `iSReserve1` | `int` | YES |
| 101 | `iSReserve2` | `int` | YES |
| 102 | `iSReserve3` | `int` | YES |
| 103 | `tSReserve1` | `datetime` | YES |
| 104 | `tSReserve2` | `datetime` | YES |
| 105 | `dGiveAuxiliaryQty` | `decimal(18,6)` | NO |
| 106 | `dGiveQty` | `decimal(18,6)` | NO |
| 107 | `dMaterialsPrice1` | `decimal(24,13)` | NO |
| 108 | `dMaterialsMoney1` | `decimal(18,6)` | NO |
| 109 | `tCheckListDate` | `datetime` | YES |
| 110 | `sSupplyName` | `varchar(255)` | NO |
| 111 | `sMinusSrcId` | `varchar(255)` | NO |

## Definition

```sql
select `purpurchaseinstorededmaster`.`iIncrement` AS `iIncrement`,`purpurchaseinstorededmaster`.`sId` AS `sId`,`purpurchaseinstorededmaster`.`sBrandsId` AS `sBrandsId`,`purpurchaseinstorededmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`purpurchaseinstorededmaster`.`tCreateDate` AS `tCreateDate`,`purpurchaseinstorededmaster`.`sMakePerson` AS `sMakePerson`,`purpurchaseinstorededmaster`.`iOrder` AS `iOrder`,`purpurchaseinstorededmaster`.`sFormId` AS `sFormId`,`purpurchaseinstorededmaster`.`sBillNo` AS `sBillNo`,`purpurchaseinstorededmaster`.`sSupplyId` AS `sSupplyId`,`purpurchaseinstorededmaster`.`sContacts` AS `sContacts`,`purpurchaseinstorededmaster`.`sPhone` AS `sPhone`,`purpurchaseinstorededmaster`.`tDeliverDate` AS `tDeliverDate`,`purpurchaseinstorededmaster`.`sPurchaseManId` AS `sPurchaseManId`,`purpurchaseinstorededmaster`.`sGetPayId` AS `sGetPayId`,`purpurchaseinstorededmaster`.`tGetPayDate` AS `tGetPayDate`,`purpurchaseinstorededmaster`.`sConsignee` AS `sConsignee`,`purpurchaseinstorededmaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`purpurchaseinstorededmaster`.`sDeliverId` AS `sDeliverId`,`purpurchaseinstorededmaster`.`sProvince` AS `sProvince`,`purpurchaseinstorededmaster`.`sCity` AS `sCity`,`purpurchaseinstorededmaster`.`sArea` AS `sArea`,`purpurchaseinstorededmaster`.`sDeliverTo` AS `sDeliverTo`,`purpurchaseinstorededmaster`.`sManualNo` AS `sManualNo`,`purpurchaseinstorededmaster`.`sMemo` AS `sMemo`,`purpurchaseinstorededmaster`.`bCheck` AS `bCheck`,`purpurchaseinstorededmaster`.`tCheckDate` AS `tCheckDate`,`purpurchaseinstorededmaster`.`sCheckPerson` AS `sCheckPerson`,`purpurchaseinstorededmaster`.`bPrint` AS `bPrint`,`purpurchaseinstorededmaster`.`bCopyLimit` AS `bCopyLimit`,`purpurchaseinstorededmaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`purpurchaseinstorededmaster`.`tAdvanceDate` AS `tAdvanceDate`,`purpurchaseinstorededmaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`purpurchaseinstorededmaster`.`sCurrency` AS `sCurrency`,`purpurchaseinstorededmaster`.`dCurrencyRate` AS `dCurrencyRate`,`purpurchaseinstorededmaster`.`sStatus` AS `sStatus`,`purpurchaseinstorededmaster`.`bInvalid` AS `bInvalid`,`purpurchaseinstorededmaster`.`sMReserve1` AS `sMReserve1`,`purpurchaseinstorededmaster`.`sMReserve2` AS `sMReserve2`,`purpurchaseinstorededmaster`.`sMReserve3` AS `sMReserve3`,`purpurchaseinstorededmaster`.`sMReserve4` AS `sMReserve4`,`purpurchaseinstorededmaster`.`sMReserve5` AS `sMReserve5`,`purpurchaseinstorededmaster`.`sMReserve6` AS `sMReserve6`,`purpurchaseinstorededmaster`.`dMReserve1` AS `dMReserve1`,`purpurchaseinstorededmaster`.`dMReserve2` AS `dMReserve2`,`purpurchaseinstorededmaster`.`dMReserve3` AS `dMReserve3`,`purpurchaseinstorededmaster`.`iMReserve1` AS `iMReserve1`,`purpurchaseinstorededmaster`.`iMReserve2` AS `iMReserve2`,`purpurchaseinstorededmaster`.`iMReserve3` AS `iMReserve3`,`purpurchaseinstorededmaster`.`tMReserve1` AS `tMReserve1`,`purpurchaseinstorededmaster`.`tMReserve2` AS `tMReserve2`,`purpurchaseinstorededslave`.`sId` AS `sSlaveId`,`purpurchaseinstorededslave`.`iOrder` AS `iSlaveOrder`,`purpurchaseinstorededslave`.`sMaterialsId` AS `sMaterialsId`,`purpurchaseinstorededslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`purpurchaseinstorededslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`purpurchaseinstorededslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`purpurchaseinstorededslave`.`dMaterialsQty` AS `dMaterialsQty`,`purpurchaseinstorededslave`.`dConversionQty` AS `dConversionQty`,`purpurchaseinstorededslave`.`dPresentAuxiliaryQty` AS `dPresentAuxiliaryQty`,`purpurchaseinstorededslave`.`dPresentQty` AS `dPresentQty`,`purpurchaseinstorededslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`purpurchaseinstorededslave`.`sSrcId` AS `sSrcId`,`purpurchaseinstorededslave`.`sSrcNo` AS `sSrcNo`,`purpurchaseinstorededslave`.`dSrcQty` AS `dSrcQty`,`purpurchaseinstorededslave`.`sSlaveMemo` AS `sSlaveMemo`,`purpurchaseinstorededslave`.`sTaxId` AS `sTaxId`,`purpurchaseinstorededslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`purpurchaseinstorededslave`.`bCheckingComplete` AS `bCheckingComplete`,`purpurchaseinstorededslave`.`dCheckingAuxiliaryQty` AS `dCheckingAuxiliaryQty`,`purpurchaseinstorededslave`.`dCheckingQty` AS `dCheckingQty`,`purpurchaseinstorededslave`.`dRejectAuxiliaryQty` AS `dRejectAuxiliaryQty`,`purpurchaseinstorededslave`.`dRejectQty` AS `dRejectQty`,`purpurchaseinstorededslave`.`dPayMoney` AS `dPayMoney`,`purpurchaseinstorededslave`.`sDefineNo` AS `sDefineNo`,`purpurchaseinstorededslave`.`sDefineNo2` AS `sDefineNo2`,`purpurchaseinstorededslave`.`sWareHouseId` AS `sWareHouseId`,`purpurchaseinstorededslave`.`sLocationId` AS `sLocationId`,`purpurchaseinstorededslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`purpurchaseinstorededslave`.`sPurchaseOrderId` AS `sPurchaseOrderId`,`purpurchaseinstorededslave`.`sPurchaseOrderSlaveId` AS `sPurchaseOrderSlaveId`,`purpurchaseinstorededslave`.`sPurchaseOrderNo` AS `sPurchaseOrderNo`,`purpurchaseinstorededslave`.`sOrderId` AS `sOrderId`,`purpurchaseinstorededslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`purpurchaseinstorededslave`.`sOrderNo` AS `sOrderNo`,`purpurchaseinstorededslave`.`sWorkOrderId` AS `sWorkOrderId`,`purpurchaseinstorededslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`purpurchaseinstorededslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`purpurchaseinstorededslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`purpurchaseinstorededslave`.`sBarcode` AS `sBarcode`,`purpurchaseinstorededslave`.`sSReserve1` AS `sSReserve1`,`purpurchaseinstorededslave`.`sSReserve2` AS `sSReserve2`,`purpurchaseinstorededslave`.`sSReserve3` AS `sSReserve3`,`purpurchaseinstorededslave`.`sSReserve4` AS `sSReserve4`,`purpurchaseinstorededslave`.`sSReserve5` AS `sSReserve5`,`purpurchaseinstorededslave`.`sSReserve6` AS `sSReserve6`,`purpurchaseinstorededslave`.`dSReserve1` AS `dSReserve1`,`purpurchaseinstorededslave`.`dSReserve2` AS `dSReserve2`,`purpurchaseinstorededslave`.`dSReserve3` AS `dSReserve3`,`purpurchaseinstorededslave`.`iSReserve1` AS `iSReserve1`,`purpurchaseinstorededslave`.`iSReserve2` AS `iSReserve2`,`purpurchaseinstorededslave`.`iSReserve3` AS `iSReserve3`,`purpurchaseinstorededslave`.`tSReserve1` AS `tSReserve1`,`purpurchaseinstorededslave`.`tSReserve2` AS `tSReserve2`,`purpurchaseinstorededslave`.`dGiveAuxiliaryQty` AS `dGiveAuxiliaryQty`,`purpurchaseinstorededslave`.`dGiveQty` AS `dGiveQty`,`purpurchaseinstorededslave`.`dMaterialsPrice` AS `dMaterialsPrice1`,`purpurchaseinstorededslave`.`dMaterialsMoney` AS `dMaterialsMoney1`,if((`purpurchaseinstorededmaster`.`tCheckDate` < cast(concat(date_format(`purpurchaseinstorededmaster`.`tCheckDate`,'%Y-%m-'),ifnull(`elesupply`.`iCheckDate`,25)) as datetime)),cast(concat(date_format(`purpurchaseinstorededmaster`.`tCheckDate`,'%Y-%m-'),ifnull(`elesupply`.`iCheckDate`,25)) as datetime),(cast(concat(date_format(`purpurchaseinstorededmaster`.`tCheckDate`,'%Y-%m-'),ifnull(`elesupply`.`iCheckDate`,25)) as datetime) + interval 1 month)) AS `tCheckListDate`,`elesupply`.`sSupplyName` AS `sSupplyName`,`purpurchaseinstorededmaster`.`sMinusSrcId` AS `sMinusSrcId` from ((`purpurchaseinstorededmaster` join `purpurchaseinstorededslave` on((`purpurchaseinstorededslave`.`sParentId` = `purpurchaseinstorededmaster`.`sId`))) join `elesupply` on((`elesupply`.`sId` = `purpurchaseinstorededmaster`.`sSupplyId`)))
```

## Narrative

_No human-written narrative yet._
