# `viw_ai_purpurchaseapply` (view)


- **Updatable:** NO

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `tCreateDate` | `datetime` | NO |
| 5 | `tUpdateDate` | `datetime` | NO |
| 6 | `sMakePerson` | `varchar(255)` | NO |
| 7 | `iOrder` | `int` | NO |
| 8 | `sFormId` | `varchar(100)` | NO |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sEmployeeId` | `varchar(100)` | NO |
| 11 | `sManualNo` | `varchar(255)` | YES |
| 12 | `sMemo` | `text` | YES |
| 13 | `tCheckDate` | `datetime` | YES |
| 14 | `sCheckPerson` | `varchar(255)` | YES |
| 15 | `sSlaveId` | `varchar(100)` | NO |
| 16 | `iSlaveOrder` | `int` | NO |
| 17 | `sMaterialsId` | `varchar(100)` | NO |
| 18 | `sMaterialsStyle` | `varchar(255)` | NO |
| 19 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 20 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 21 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 22 | `dConversionQty` | `decimal(18,6)` | NO |
| 23 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 24 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 25 | `sSrcSlaveId` | `varchar(100)` | NO |
| 26 | `sSrcId` | `varchar(100)` | NO |
| 27 | `sSrcNo` | `varchar(255)` | NO |
| 28 | `dSrcQty` | `decimal(18,6)` | YES |
| 29 | `sSlaveMemo` | `text` | YES |
| 30 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 31 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 32 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 33 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 34 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 35 | `dOrderAuxiliaryQty` | `decimal(18,6)` | NO |
| 36 | `dOrderQty` | `decimal(18,6)` | NO |
| 37 | `sOrderId` | `varchar(100)` | NO |
| 38 | `sOrderNo` | `varchar(255)` | NO |
| 39 | `sWorkOrderId` | `varchar(100)` | NO |
| 40 | `sWorkOrderNo` | `varchar(255)` | NO |
| 41 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 42 | `iIncrement` | `int` | NO |
| 43 | `sSupplyId` | `varchar(50)` | YES |
| 44 | `sMaterialsType` | `varchar(50)` | YES |
| 45 | `sSupplyName` | `varchar(255)` | YES |
| 46 | `sCity` | `varchar(255)` | YES |
| 47 | `sArea` | `varchar(255)` | YES |
| 48 | `sCompanyAddress` | `varchar(255)` | YES |
| 49 | `sContacts` | `varchar(255)` | YES |
| 50 | `sMobile` | `varchar(255)` | YES |
| 51 | `sTaxId` | `varchar(100)` | YES |
| 52 | `sGetPayId` | `varchar(100)` | YES |
| 53 | `sPhone1` | `varchar(255)` | YES |
| 54 | `sPhone2` | `varchar(255)` | YES |
| 55 | `sEmail` | `varchar(255)` | YES |
| 56 | `sPurchaseManId` | `varchar(100)` | YES |
| 57 | `sRemainderType` | `varchar(255)` | YES |
| 58 | `dKGQty` | `decimal(18,6)` | YES |
| 59 | `bQly` | `bit(1)` | YES |
| 60 | `dQlyQty` | `int` | YES |
| 61 | `dMaterialsTestAuxiliaryQty` | `decimal(18,6)` | NO |
| 62 | `dMaterialsTestQty` | `decimal(18,6)` | NO |
| 63 | `bMaterialsTestComplete` | `bit(1)` | YES |
| 64 | `iTestResult` | `bit(1)` | YES |
| 65 | `bInStoreComplete` | `bit(1)` | YES |
| 66 | `bFast` | `bit(1)` | YES |
| 67 | `tFastDate` | `datetime` | YES |
| 68 | `sFastPerson` | `varchar(255)` | YES |
| 69 | `sCustomerId` | `varchar(255)` | YES |
| 70 | `sMaterialsNo` | `varchar(50)` | YES |
| 71 | `sMaterialsName` | `varchar(100)` | YES |

## Definition

```sql
select `purpurchaseapplymaster`.`sId` AS `sId`,`purpurchaseapplymaster`.`sBrandsId` AS `sBrandsId`,`purpurchaseapplymaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`purpurchaseapplymaster`.`tCreateDate` AS `tCreateDate`,`purpurchaseapplymaster`.`tCreateDate` AS `tUpdateDate`,`purpurchaseapplymaster`.`sMakePerson` AS `sMakePerson`,`purpurchaseapplymaster`.`iOrder` AS `iOrder`,`purpurchaseapplymaster`.`sFormId` AS `sFormId`,`purpurchaseapplymaster`.`sBillNo` AS `sBillNo`,`purpurchaseapplymaster`.`sEmployeeId` AS `sEmployeeId`,`purpurchaseapplymaster`.`sManualNo` AS `sManualNo`,`purpurchaseapplymaster`.`sMemo` AS `sMemo`,`purpurchaseapplymaster`.`tCheckDate` AS `tCheckDate`,`purpurchaseapplymaster`.`sCheckPerson` AS `sCheckPerson`,`purpurchaseapplyslave`.`sId` AS `sSlaveId`,`purpurchaseapplyslave`.`iOrder` AS `iSlaveOrder`,`purpurchaseapplyslave`.`sMaterialsId` AS `sMaterialsId`,`purpurchaseapplyslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`purpurchaseapplyslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`purpurchaseapplyslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`purpurchaseapplyslave`.`dMaterialsQty` AS `dMaterialsQty`,`purpurchaseapplyslave`.`dConversionQty` AS `dConversionQty`,`purpurchaseapplyslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`purpurchaseapplyslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`purpurchaseapplyslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`purpurchaseapplyslave`.`sSrcId` AS `sSrcId`,`purpurchaseapplyslave`.`sSrcNo` AS `sSrcNo`,`purpurchaseapplyslave`.`dSrcQty` AS `dSrcQty`,`purpurchaseapplyslave`.`sSlaveMemo` AS `sSlaveMemo`,`purpurchaseapplyslave`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`purpurchaseapplyslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`purpurchaseapplyslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`purpurchaseapplyslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`purpurchaseapplyslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`purpurchaseapplyslave`.`dOrderAuxiliaryQty` AS `dOrderAuxiliaryQty`,`purpurchaseapplyslave`.`dOrderQty` AS `dOrderQty`,`purpurchaseapplyslave`.`sOrderId` AS `sOrderId`,`purpurchaseapplyslave`.`sOrderNo` AS `sOrderNo`,`purpurchaseapplyslave`.`sWorkOrderId` AS `sWorkOrderId`,`purpurchaseapplyslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`purpurchaseapplyslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`purpurchaseapplyslave`.`iIncrement` AS `iIncrement`,`elematerials`.`sSupplyId` AS `sSupplyId`,`elematerials`.`sMaterialsType` AS `sMaterialsType`,`elesupply`.`sSupplyName` AS `sSupplyName`,`elesupply`.`sCity` AS `sCity`,`elesupply`.`sArea` AS `sArea`,`elesupply`.`sCompanyAddress` AS `sCompanyAddress`,`elesupply`.`sContacts` AS `sContacts`,`elesupply`.`sMobile` AS `sMobile`,`elesupply`.`sTaxId` AS `sTaxId`,`elesupply`.`sGetPayId` AS `sGetPayId`,`elesupply`.`sPhone1` AS `sPhone1`,`elesupply`.`sPhone2` AS `sPhone2`,`elesupply`.`sEmail` AS `sEmail`,`elesupply`.`sPurchaseManId` AS `sPurchaseManId`,`purpurchaseapplyslave`.`sRemainderType` AS `sRemainderType`,`purpurchaseapplyslave`.`dKGQty` AS `dKGQty`,`purpurchaseapplyslave`.`bQly` AS `bQly`,`purpurchaseapplyslave`.`dQlyQty` AS `dQlyQty`,`purpurchaseapplyslave`.`dMaterialsTestAuxiliaryQty` AS `dMaterialsTestAuxiliaryQty`,`purpurchaseapplyslave`.`dMaterialsTestQty` AS `dMaterialsTestQty`,`purpurchaseapplyslave`.`bMaterialsTestComplete` AS `bMaterialsTestComplete`,`purpurchaseapplyslave`.`iTestResult` AS `iTestResult`,`purpurchaseapplyslave`.`bInStoreComplete` AS `bInStoreComplete`,`purpurchaseapplyslave`.`bFast` AS `bFast`,`purpurchaseapplyslave`.`tFastDate` AS `tFastDate`,`purpurchaseapplyslave`.`sFastPerson` AS `sFastPerson`,`purpurchaseapplyslave`.`sCustomerId` AS `sCustomerId`,`elematerials`.`sMaterialsNo` AS `sMaterialsNo`,`elematerials`.`sMaterialsName` AS `sMaterialsName` from (((`purpurchaseapplymaster` join `purpurchaseapplyslave` on((`purpurchaseapplyslave`.`sParentId` = `purpurchaseapplymaster`.`sId`))) left join `elematerials` on((`purpurchaseapplyslave`.`sMaterialsId` = `elematerials`.`sId`))) left join `elesupply` on((`elematerials`.`sSupplyId` = `elesupply`.`sId`)))
```

## Narrative

_No human-written narrative yet._
