# `viw_ai_elematerials` (view)


- **Updatable:** NO

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(50)` | NO |
| 2 | `sSlaveId` | `varchar(50)` | NO |
| 3 | `sBrandsId` | `varchar(50)` | NO |
| 4 | `sSubsidiaryId` | `varchar(50)` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `tUpdateDate` | `datetime` | NO |
| 7 | `sMakePerson` | `varchar(50)` | NO |
| 8 | `iOrder` | `int` | NO |
| 9 | `sParentId` | `varchar(50)` | YES |
| 10 | `sMaterialsType` | `varchar(50)` | YES |
| 11 | `sMaterialsNo` | `varchar(50)` | NO |
| 12 | `sMaterialsName` | `varchar(100)` | NO |
| 13 | `sMaterialsSortName` | `varchar(100)` | YES |
| 14 | `sMaterialsShort` | `varchar(50)` | YES |
| 15 | `sMaterialsUnit` | `varchar(50)` | YES |
| 16 | `sAuxiliaryUnit` | `varchar(6)` | NO |
| 17 | `dCoefficient` | `decimal(18,6)` | YES |
| 18 | `sConversionUnit` | `varchar(50)` | YES |
| 19 | `dGramWeight` | `decimal(18,6)` | YES |
| 20 | `bPurchase` | `bit(1)` | NO |
| 21 | `bReel` | `bit(1)` | NO |
| 22 | `bSales` | `bit(1)` | NO |
| 23 | `bCorrugate` | `bit(1)` | NO |
| 24 | `dPurchasePrice` | `decimal(18,6)` | YES |
| 25 | `dSalesPrice` | `decimal(18,6)` | YES |
| 26 | `dRecentPurchasePrice` | `decimal(18,6)` | YES |
| 27 | `dDesignateSalesPrice` | `decimal(18,6)` | YES |
| 28 | `dProcurementCycle` | `decimal(18,6)` | YES |
| 29 | `sSupplyId` | `varchar(50)` | YES |
| 30 | `bCheck` | `bit(1)` | NO |
| 31 | `bInvalid` | `bit(1)` | NO |
| 32 | `sMemo` | `text` | YES |
| 33 | `bComMaterials` | `bit(1)` | NO |
| 34 | `sMtart` | `varchar(4)` | NO |
| 35 | `sMaterialsStyle` | `varchar(50)` | YES |
| 36 | `dMinStockAuxiliaryQty` | `decimal(18,6)` | YES |
| 37 | `dMaxStockAuxiliaryQty` | `decimal(18,6)` | YES |

## Definition

```sql
select `elematerials`.`sId` AS `sId`,`elematerials`.`sId` AS `sSlaveId`,`elematerials`.`sBrandsId` AS `sBrandsId`,`elematerials`.`sSubsidiaryId` AS `sSubsidiaryId`,`elematerials`.`tCreateDate` AS `tCreateDate`,`elematerials`.`tCreateDate` AS `tUpdateDate`,`elematerials`.`sMakePerson` AS `sMakePerson`,`elematerials`.`iOrder` AS `iOrder`,`elematerials`.`sParentId` AS `sParentId`,`elematerials`.`sMaterialsType` AS `sMaterialsType`,`elematerials`.`sMaterialsNo` AS `sMaterialsNo`,`elematerials`.`sMaterialsName` AS `sMaterialsName`,`sismaterialsclassify`.`sName` AS `sMaterialsSortName`,`elematerials`.`sMaterialsShort` AS `sMaterialsShort`,`elematerials`.`sMaterialsUnit` AS `sMaterialsUnit`,`elematerials`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`elematerials`.`dCoefficient` AS `dCoefficient`,`elematerials`.`sConversionUnit` AS `sConversionUnit`,`elematerials`.`dGramWeight` AS `dGramWeight`,`elematerials`.`bPurchase` AS `bPurchase`,`elematerials`.`bReel` AS `bReel`,`elematerials`.`bSales` AS `bSales`,`elematerials`.`bCorrugate` AS `bCorrugate`,`elematerials`.`dPurchasePrice` AS `dPurchasePrice`,`elematerials`.`dSalesPrice` AS `dSalesPrice`,`elematerials`.`dRecentPurchasePrice` AS `dRecentPurchasePrice`,`elematerials`.`dDesignateSalesPrice` AS `dDesignateSalesPrice`,`elematerials`.`dProcurementCycle` AS `dProcurementCycle`,`elematerials`.`sSupplyId` AS `sSupplyId`,`elematerials`.`bCheck` AS `bCheck`,`elematerials`.`bInvalid` AS `bInvalid`,`elematerials`.`sMemo` AS `sMemo`,`elematerials`.`bComMaterials` AS `bComMaterials`,`elematerials`.`sMtart` AS `sMtart`,`elematerialssafe`.`sMaterialsStyle` AS `sMaterialsStyle`,`elematerialssafe`.`dMinStockAuxiliaryQty` AS `dMinStockAuxiliaryQty`,`elematerialssafe`.`dMaxStockAuxiliaryQty` AS `dMaxStockAuxiliaryQty` from ((`elematerials` left join `sismaterialsclassify` on((`sismaterialsclassify`.`sId` = `elematerials`.`sParentId`))) left join `elematerialssafe` on((`elematerialssafe`.`sMaterialsId` = `elematerials`.`sId`)))
```

## Narrative

_No human-written narrative yet._
