# `viw_nopurpurchaseinstore`（视图）


- **是否可更新：** NO
- **定义者：** `xlyprint@%`

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 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)` | YES |
| 10 | `sManualNo` | `varchar(255)` | YES |
| 11 | `sMemo` | `mediumtext` | YES |
| 12 | `bCheck` | `bit(1)` | NO |
| 13 | `tCheckDate` | `datetime` | YES |
| 14 | `sCheckPerson` | `varchar(255)` | YES |
| 15 | `bPrint` | `bit(1)` | NO |
| 16 | `bCopyLimit` | `bit(1)` | NO |
| 17 | `sStatus` | `varchar(255)` | YES |
| 18 | `bInvalid` | `bit(1)` | NO |
| 19 | `sMReserve1` | `varchar(255)` | YES |
| 20 | `sMReserve2` | `varchar(255)` | YES |
| 21 | `sMReserve3` | `varchar(255)` | YES |
| 22 | `sMReserve4` | `varchar(255)` | YES |
| 23 | `sMReserve5` | `varchar(255)` | YES |
| 24 | `sMReserve6` | `varchar(255)` | YES |
| 25 | `dMReserve1` | `decimal(18,6)` | YES |
| 26 | `dMReserve2` | `decimal(18,6)` | YES |
| 27 | `dMReserve3` | `decimal(18,6)` | YES |
| 28 | `iMReserve1` | `int` | YES |
| 29 | `iMReserve2` | `int` | YES |
| 30 | `iMReserve3` | `int` | YES |
| 31 | `tMReserve1` | `datetime` | YES |
| 32 | `tMReserve2` | `datetime` | YES |
| 33 | `sTestStandardId` | `varchar(100)` | YES |
| 34 | `sSlaveId` | `varchar(100)` | NO |
| 35 | `sMaterialsId` | `varchar(100)` | NO |
| 36 | `sSrcSlaveId` | `varchar(100)` | NO |
| 37 | `sSrcId` | `varchar(100)` | NO |
| 38 | `sSrcNo` | `varchar(255)` | NO |
| 39 | `dSrcQty` | `decimal(18,6)` | YES |
| 40 | `sMaterialsStyle` | `varchar(255)` | YES |
| 41 | `dAuxiliaryQty` | `decimal(18,6)` | YES |
| 42 | `sAuxiliaryUnit` | `varchar(255)` | YES |
| 43 | `dMaterialsQty` | `decimal(18,6)` | YES |
| 44 | `dConversionQty` | `decimal(18,6)` | YES |
| 45 | `dSampleQty` | `decimal(65,6)` | NO |
| 46 | `dQualifyQty` | `decimal(65,0)` | YES |
| 47 | `dNoQualifyQty` | `decimal(65,0)` | YES |
| 48 | `dRejectQty` | `decimal(65,0)` | YES |
| 49 | `iTestResult` | `bigint` | YES |
| 50 | `dInStoreAuxiliaryQty` | `decimal(18,6)` | YES |
| 51 | `dInStoreQty` | `decimal(18,6)` | YES |
| 52 | `sDefineNo` | `varchar(100)` | YES |
| 53 | `sDefineNo2` | `varchar(100)` | YES |
| 54 | `sTestPersonId` | `varchar(250)` | YES |
| 55 | `sOrderSlaveId` | `varchar(100)` | NO |
| 56 | `bInstoreComplete` | `bit(1)` | NO |
| 57 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 58 | `sWorkOrderMaterialsTbId` | `text` | NO |
| 59 | `sPurchaseApplyId` | `varchar(100)` | NO |
| 60 | `sPurchaseApplySlaveId` | `varchar(100)` | NO |
| 61 | `sPurchaseApplyNo` | `varchar(255)` | NO |
| 62 | `sPurchaseOrderId` | `varchar(100)` | NO |
| 63 | `sPurchaseOrderSlaveId` | `varchar(100)` | NO |
| 64 | `sPurchaseOrderNo` | `varchar(255)` | NO |
| 65 | `dPresentAuxiliaryQty` | `decimal(18,6)` | NO |
| 66 | `dPresentQty` | `decimal(18,6)` | NO |
| 67 | `dGiveAuxiliaryQty` | `decimal(18,6)` | NO |
| 68 | `dGiveQty` | `decimal(18,6)` | NO |
| 69 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 70 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 71 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 72 | `sWorkOrderNo` | `text` | NO |
| 73 | `sTaxId` | `varchar(100)` | YES |
| 74 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 75 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 76 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 77 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 78 | `sOrderId` | `varchar(100)` | NO |
| 79 | `sOrderNo` | `varchar(255)` | NO |
| 80 | `sWorkOrderId` | `varchar(100)` | NO |
| 81 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 82 | `dQlyAuxiliaryQty` | `decimal(18,6)` | NO |

## 定义

```sql
select `m`.`sId` AS `sId`,`m`.`sBrandsId` AS `sBrandsId`,`m`.`sSubsidiaryId` AS `sSubsidiaryId`,`m`.`tCreateDate` AS `tCreateDate`,`m`.`sMakePerson` AS `sMakePerson`,`m`.`iOrder` AS `iOrder`,`m`.`sFormId` AS `sFormId`,`m`.`sBillNo` AS `sBillNo`,`m`.`sSupplyId` AS `sSupplyId`,`m`.`sManualNo` AS `sManualNo`,`m`.`sMemo` AS `sMemo`,`m`.`bCheck` AS `bCheck`,`m`.`tCheckDate` AS `tCheckDate`,`m`.`sCheckPerson` AS `sCheckPerson`,`m`.`bPrint` AS `bPrint`,`m`.`bCopyLimit` AS `bCopyLimit`,`m`.`sStatus` AS `sStatus`,`m`.`bInvalid` AS `bInvalid`,`m`.`sMReserve1` AS `sMReserve1`,`m`.`sMReserve2` AS `sMReserve2`,`m`.`sMReserve3` AS `sMReserve3`,`m`.`sMReserve4` AS `sMReserve4`,`m`.`sMReserve5` AS `sMReserve5`,`m`.`sMReserve6` AS `sMReserve6`,`m`.`dMReserve1` AS `dMReserve1`,`m`.`dMReserve2` AS `dMReserve2`,`m`.`dMReserve3` AS `dMReserve3`,`m`.`iMReserve1` AS `iMReserve1`,`m`.`iMReserve2` AS `iMReserve2`,`m`.`iMReserve3` AS `iMReserve3`,`m`.`tMReserve1` AS `tMReserve1`,`m`.`tMReserve2` AS `tMReserve2`,`m`.`sTestStandardId` AS `sTestStandardId`,`m`.`sId` AS `sSlaveId`,`m`.`sMaterialsId` AS `sMaterialsId`,`m`.`sSrcSlaveId` AS `sSrcSlaveId`,`m`.`sSrcId` AS `sSrcId`,`m`.`sSrcNo` AS `sSrcNo`,`m`.`dSrcQty` AS `dSrcQty`,`m`.`sMaterialsStyle` AS `sMaterialsStyle`,`m`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`m`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`m`.`dMaterialsQty` AS `dMaterialsQty`,`m`.`dConversionQty` AS `dConversionQty`,`m`.`dSampleQty` AS `dSampleQty`,`m`.`dQualifyQty` AS `dQualifyQty`,`m`.`dNoQualifyQty` AS `dNoQualifyQty`,`m`.`dRejectQty` AS `dRejectQty`,`m`.`iTestResult` AS `iTestResult`,`m`.`dInStoreAuxiliaryQty` AS `dInStoreAuxiliaryQty`,`m`.`dInStoreQty` AS `dInStoreQty`,`m`.`sDefineNo` AS `sDefineNo`,`m`.`sDefineNo2` AS `sDefineNo2`,`m`.`sTestPersonId` AS `sTestPersonId`,`m`.`sOrderSlaveId` AS `sOrderSlaveId`,`m`.`bInStoreComplete` AS `bInstoreComplete`,`m`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`m`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`m`.`sPurchaseApplyId` AS `sPurchaseApplyId`,`m`.`sPurchaseApplySlaveId` AS `sPurchaseApplySlaveId`,`m`.`sPurchaseApplyNo` AS `sPurchaseApplyNo`,`m`.`sPurchaseOrderId` AS `sPurchaseOrderId`,`m`.`sPurchaseOrderSlaveId` AS `sPurchaseOrderSlaveId`,`m`.`sPurchaseOrderNo` AS `sPurchaseOrderNo`,`m`.`dPresentAuxiliaryQty` AS `dPresentAuxiliaryQty`,`m`.`dPresentQty` AS `dPresentQty`,`m`.`dGiveAuxiliaryQty` AS `dGiveAuxiliaryQty`,`m`.`dGiveQty` AS `dGiveQty`,`m`.`dMaterialsPrice` AS `dMaterialsPrice`,`m`.`dMaterialsMoney` AS `dMaterialsMoney`,`m`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`m`.`sWorkOrderNo` AS `sWorkOrderNo`,`m`.`sTaxId` AS `sTaxId`,`m`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`m`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`m`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`m`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`m`.`sOrderId` AS `sOrderId`,`m`.`sOrderNo` AS `sOrderNo`,`m`.`sWorkOrderId` AS `sWorkOrderId`,`m`.`sWorkOrderControlId` AS `sWorkOrderControlId`,0 AS `dQlyAuxiliaryQty` from `xlyweberp_saas_ai`.`qlycomematerialstestmaster` `m` union select `m`.`sId` AS `sId`,`m`.`sBrandsId` AS `sBrandsId`,`m`.`sSubsidiaryId` AS `sSubsidiaryId`,`m`.`tCreateDate` AS `tCreateDate`,`m`.`sMakePerson` AS `sMakePerson`,`m`.`iOrder` AS `iOrder`,`m`.`sFormId` AS `sFormId`,`m`.`sBillNo` AS `sBillNo`,`m`.`sSupplyId` AS `sSupplyId`,`m`.`sManualNo` AS `sManualNo`,`m`.`sMemo` AS `sMemo`,`m`.`bCheck` AS `bCheck`,`m`.`tCheckDate` AS `tCheckDate`,`m`.`sCheckPerson` AS `sCheckPerson`,`m`.`bPrint` AS `bPrint`,`m`.`bCopyLimit` AS `bCopyLimit`,`m`.`sStatus` AS `sStatus`,`m`.`bInvalid` AS `bInvalid`,`m`.`sMReserve1` AS `sMReserve1`,`m`.`sMReserve2` AS `sMReserve2`,`m`.`sMReserve3` AS `sMReserve3`,`m`.`sMReserve4` AS `sMReserve4`,`m`.`sMReserve5` AS `sMReserve5`,`m`.`sMReserve6` AS `sMReserve6`,`m`.`dMReserve1` AS `dMReserve1`,`m`.`dMReserve2` AS `dMReserve2`,`m`.`dMReserve3` AS `dMReserve3`,`m`.`iMReserve1` AS `iMReserve1`,`m`.`iMReserve2` AS `iMReserve2`,`m`.`iMReserve3` AS `iMReserve3`,`m`.`tMReserve1` AS `tMReserve1`,`m`.`tMReserve2` AS `tMReserve2`,'' AS `sTestStandardId`,`s`.`sId` AS `sSlaveId`,`s`.`sMaterialsId` AS `sMaterialsId`,`s`.`sId` AS `sSrcSlaveId`,`m`.`sId` AS `sSrcId`,`s`.`sSrcNo` AS `sSrcNo`,`s`.`dSrcQty` AS `dSrcQty`,`s`.`sMaterialsStyle` AS `sMaterialsStyle`,`s`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`s`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`s`.`dMaterialsQty` AS `dMaterialsQty`,`s`.`dConversionQty` AS `dConversionQty`,`s`.`dSampleQty` AS `dSampleQty`,0 AS `dQualifyQty`,0 AS `dNoQualifyQty`,0 AS `dRejectQty`,0 AS `iTestResult`,`s`.`dInStoreAuxiliaryQty` AS `dInStoreAuxiliaryQty`,`s`.`dInStoreQty` AS `dInStoreQty`,'' AS `sDefineNo`,'' AS `sDefineNo2`,'' AS `sTestPersonId`,`s`.`sOrderSlaveId` AS `sOrderSlaveId`,`s`.`bInStoreComplete` AS `bInstoreComplete`,`s`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`s`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`s`.`sPurchaseApplyId` AS `sPurchaseApplyId`,`s`.`sPurchaseApplySlaveId` AS `sPurchaseApplySlaveId`,`s`.`sPurchaseApplyNo` AS `sPurchaseApplyNo`,'' AS `sPurchaseOrderId`,'' AS `sPurchaseOrderSlaveId`,'' AS `sPurchaseOrderNo`,0 AS `dPresentAuxiliaryQty`,0 AS `dPresentQty`,0 AS `dGiveAuxiliaryQty`,0 AS `dGiveQty`,`s`.`dMaterialsPrice` AS `dMaterialsPrice`,`s`.`dMaterialsMoney` AS `dMaterialsMoney`,`s`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`s`.`sWorkOrderNo` AS `sWorkOrderNo`,`s`.`sTaxId` AS `sTaxId`,`s`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`s`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`s`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`s`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`s`.`sOrderId` AS `sOrderId`,`s`.`sOrderNo` AS `sOrderNo`,`s`.`sWorkOrderId` AS `sWorkOrderId`,`s`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`s`.`dQlyAuxiliaryQty` AS `dQlyAuxiliaryQty` from (`xlyweberp_saas_ai`.`purpurchaseordermaster` `m` join `xlyweberp_saas_ai`.`purpurchaseorderslave` `s` on((`s`.`sParentId` = `m`.`sId`))) union select `m`.`sId` AS `sId`,`m`.`sBrandsId` AS `sBrandsId`,`m`.`sSubsidiaryId` AS `sSubsidiaryId`,`m`.`tCreateDate` AS `tCreateDate`,`m`.`sMakePerson` AS `sMakePerson`,`m`.`iOrder` AS `iOrder`,`m`.`sFormId` AS `sFormId`,`m`.`sBillNo` AS `sBillNo`,`s`.`sCustomerId` AS `sSupplyId`,`m`.`sManualNo` AS `sManualNo`,`m`.`sMemo` AS `sMemo`,`m`.`bCheck` AS `bCheck`,`m`.`tCheckDate` AS `tCheckDate`,`m`.`sCheckPerson` AS `sCheckPerson`,`m`.`bPrint` AS `bPrint`,`m`.`bCopyLimit` AS `bCopyLimit`,`m`.`sStatus` AS `sStatus`,`m`.`bInvalid` AS `bInvalid`,`m`.`sMReserve1` AS `sMReserve1`,`m`.`sMReserve2` AS `sMReserve2`,`m`.`sMReserve3` AS `sMReserve3`,`m`.`sMReserve4` AS `sMReserve4`,`m`.`sMReserve5` AS `sMReserve5`,`m`.`sMReserve6` AS `sMReserve6`,`m`.`dMReserve1` AS `dMReserve1`,`m`.`dMReserve2` AS `dMReserve2`,`m`.`dMReserve3` AS `dMReserve3`,`m`.`iMReserve1` AS `iMReserve1`,`m`.`iMReserve2` AS `iMReserve2`,`m`.`iMReserve3` AS `iMReserve3`,`m`.`tMReserve1` AS `tMReserve1`,`m`.`tMReserve2` AS `tMReserve2`,'' AS `sTestStandardId`,`s`.`sId` AS `sSlaveId`,`s`.`sProductId` AS `sMaterialsId`,`s`.`sId` AS `sSrcSlaveId`,`m`.`sId` AS `sSrcId`,`s`.`sSrcNo` AS `sSrcNo`,`s`.`dSrcQty` AS `dSrcQty`,`s`.`sMaterialsStyle` AS `sMaterialsStyle`,`s`.`dProductQty` AS `dAuxiliaryQty`,`s`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`s`.`dMaterialsQty` AS `dMaterialsQty`,`s`.`dConversionQty` AS `dConversionQty`,`s`.`dSampleQty` AS `dSampleQty`,0 AS `dQualifyQty`,0 AS `dNoQualifyQty`,0 AS `dRejectQty`,0 AS `iTestResult`,`s`.`dProductInStoreQty` AS `dInStoreAuxiliaryQty`,`s`.`dInStoreQty` AS `dInStoreQty`,'' AS `sDefineNo`,'' AS `sDefineNo2`,'' AS `sTestPersonId`,`s`.`sOrderSlaveId` AS `sOrderSlaveId`,`s`.`bProductInStoreComplete` AS `bInstoreComplete`,`s`.`sId` AS `sWorkOrderSlaveId`,`s`.`sId` AS `sWorkOrderMaterialsTbId`,'' AS `sPurchaseApplyId`,'' AS `sPurchaseApplySlaveId`,'' AS `sPurchaseApplyNo`,'' AS `sPurchaseOrderId`,'' AS `sPurchaseOrderSlaveId`,'' AS `sPurchaseOrderNo`,0 AS `dPresentAuxiliaryQty`,0 AS `dPresentQty`,0 AS `dGiveAuxiliaryQty`,0 AS `dGiveQty`,`s`.`dProductPrice` AS `dMaterialsPrice`,`s`.`dProductMoney` AS `dMaterialsMoney`,`s`.`dProductTaxMoney` AS `dMaterialsTaxMoney`,`m`.`sBillNo` AS `sWorkOrderNo`,`s`.`sTaxId` AS `sTaxId`,`s`.`dProductNoTaxPrice` AS `dMaterialsNoTaxPrice`,`s`.`dProductNoTaxMoney` AS `dMaterialsNoTaxMoney`,`s`.`dProductTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`s`.`dProductForeignMoney` AS `dMaterialsForeignMoney`,`s`.`sOrderId` AS `sOrderId`,`s`.`sOrderNo` AS `sOrderNo`,`m`.`sId` AS `sWorkOrderId`,`s`.`sId` AS `sWorkOrderControlId`,0 AS `dQlyAuxiliaryQty` from (`xlyweberp_saas_ai`.`mftworkordermaster` `m` join `xlyweberp_saas_ai`.`mftworkorderslave` `s` on((`s`.`sParentId` = `m`.`sId`)))
```

## 说明

_暂无人工说明。_
