# `viw_eleproductprices` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(100)` | NO |
| 3 | `sBillNo` | `varchar(50)` | YES |
| 4 | `sBrandsId` | `varchar(100)` | NO |
| 5 | `sSubsidiaryId` | `varchar(100)` | NO |
| 6 | `tCreateDate` | `datetime` | NO |
| 7 | `sMakePerson` | `varchar(255)` | NO |
| 8 | `iOrder` | `int` | NO |
| 9 | `sCustomerId` | `varchar(100)` | NO |
| 10 | `sProductId` | `varchar(255)` | NO |
| 11 | `sMemo` | `text` | YES |
| 12 | `bInvalid` | `bit(1)` | NO |
| 13 | `sMReserve1` | `varchar(255)` | YES |
| 14 | `sMReserve2` | `varchar(255)` | YES |
| 15 | `sMReserve3` | `varchar(255)` | YES |
| 16 | `sMReserve5` | `varchar(255)` | YES |
| 17 | `sMReserve4` | `varchar(255)` | YES |
| 18 | `sMReserve6` | `varchar(255)` | YES |
| 19 | `dMReserve1` | `decimal(18,6)` | YES |
| 20 | `dMReserve2` | `decimal(18,6)` | YES |
| 21 | `dMReserve3` | `decimal(18,6)` | YES |
| 22 | `iMReserve1` | `int` | YES |
| 23 | `iMReserve2` | `int` | YES |
| 24 | `iMReserve3` | `int` | YES |
| 25 | `tMReserve1` | `datetime` | YES |
| 26 | `tMReserve2` | `datetime` | YES |
| 27 | `bStartMark` | `bit(1)` | NO |
| 28 | `sFormId` | `varchar(255)` | YES |
| 29 | `tCheckDate` | `datetime` | YES |
| 30 | `sCheckPerson` | `varchar(255)` | YES |
| 31 | `sStatus` | `varchar(255)` | YES |
| 32 | `bCheck` | `bit(1)` | YES |
| 33 | `sSlaveId` | `varchar(100)` | NO |
| 34 | `sParentId` | `varchar(100)` | NO |
| 35 | `dProductPrice` | `decimal(24,13)` | NO |
| 36 | `dQuotationPrice` | `decimal(24,13)` | NO |
| 37 | `tQuotationDate` | `datetime` | YES |
| 38 | `sSlaveMemo` | `varchar(2000)` | YES |
| 39 | `dQuoRate` | `decimal(18,6)` | YES |
| 40 | `dQuoPrice` | `decimal(24,13)` | NO |
| 41 | `dBeginQty` | `decimal(18,0)` | NO |
| 42 | `dEndQty` | `decimal(18,0)` | NO |
| 43 | `sCurrency` | `varchar(255)` | YES |
| 44 | `sEvaluateNo` | `varchar(255)` | YES |
| 45 | `sState` | `varchar(3)` | NO |
| 46 | `dQuoMaterialsPrice` | `decimal(24,13)` | NO |
| 47 | `dAssistMaterialsPrice` | `decimal(24,13)` | NO |
| 48 | `dQuoPrintPrice` | `decimal(24,13)` | NO |
| 49 | `dQuoPrintAfterPrice` | `decimal(24,13)` | NO |
| 50 | `dQuoManualPrice` | `decimal(24,13)` | NO |
| 51 | `dQuoFreightPrice` | `decimal(24,13)` | NO |

## Definition

```sql
select `eleproductpricemaster`.`iIncrement` AS `iIncrement`,`eleproductpricemaster`.`sId` AS `sId`,`eleproductpricemaster`.`sBillNo` AS `sBillNo`,`eleproductpricemaster`.`sBrandsId` AS `sBrandsId`,`eleproductpricemaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`eleproductpricemaster`.`tCreateDate` AS `tCreateDate`,`eleproductpricemaster`.`sMakePerson` AS `sMakePerson`,`eleproductpricemaster`.`iOrder` AS `iOrder`,`eleproductpricemaster`.`sCustomerId` AS `sCustomerId`,`eleproductpricemaster`.`sProductId` AS `sProductId`,`eleproductpricemaster`.`sMemo` AS `sMemo`,`eleproductpricemaster`.`bInvalid` AS `bInvalid`,`eleproductpricemaster`.`sMReserve1` AS `sMReserve1`,`eleproductpricemaster`.`sMReserve2` AS `sMReserve2`,`eleproductpricemaster`.`sMReserve3` AS `sMReserve3`,`eleproductpricemaster`.`sMReserve5` AS `sMReserve5`,`eleproductpricemaster`.`sMReserve4` AS `sMReserve4`,`eleproductpricemaster`.`sMReserve6` AS `sMReserve6`,`eleproductpricemaster`.`dMReserve1` AS `dMReserve1`,`eleproductpricemaster`.`dMReserve2` AS `dMReserve2`,`eleproductpricemaster`.`dMReserve3` AS `dMReserve3`,`eleproductpricemaster`.`iMReserve1` AS `iMReserve1`,`eleproductpricemaster`.`iMReserve2` AS `iMReserve2`,`eleproductpricemaster`.`iMReserve3` AS `iMReserve3`,`eleproductpricemaster`.`tMReserve1` AS `tMReserve1`,`eleproductpricemaster`.`tMReserve2` AS `tMReserve2`,`eleproductpricemaster`.`bStartMark` AS `bStartMark`,`eleproductpricemaster`.`sFormId` AS `sFormId`,`eleproductpricemaster`.`tCheckDate` AS `tCheckDate`,`eleproductpricemaster`.`sCheckPerson` AS `sCheckPerson`,`eleproductpricemaster`.`sStatus` AS `sStatus`,`eleproductpricemaster`.`bCheck` AS `bCheck`,`eleproductpriceslave`.`sId` AS `sSlaveId`,`eleproductpriceslave`.`sParentId` AS `sParentId`,`eleproductpriceslave`.`dProductPrice` AS `dProductPrice`,`eleproductpriceslave`.`dQuotationPrice` AS `dQuotationPrice`,`eleproductpriceslave`.`tQuotationDate` AS `tQuotationDate`,`eleproductpriceslave`.`sSlaveMemo` AS `sSlaveMemo`,`eleproductpriceslave`.`dQuoRate` AS `dQuoRate`,`eleproductpriceslave`.`dQuoPrice` AS `dQuoPrice`,`eleproductpriceslave`.`dBeginQty` AS `dBeginQty`,`eleproductpriceslave`.`dEndQty` AS `dEndQty`,`eleproductpriceslave`.`sCurrency` AS `sCurrency`,`eleproductpriceslave`.`sEvaluateNo` AS `sEvaluateNo`,(case when (`eleproductpricemaster`.`bInvalid` = 1) then '已作废' when (`eleproductpricemaster`.`sStatus` = 0) then '未审核' when (`eleproductpricemaster`.`sStatus` = 1) then '已审核' when (`eleproductpricemaster`.`sStatus` = 2) then '审批中' when (`eleproductpricemaster`.`sStatus` = 4) then '已驳回' else '未审核' end) AS `sState`,`eleproductpriceslave`.`dQuoMaterialsPrice` AS `dQuoMaterialsPrice`,`eleproductpriceslave`.`dAssistMaterialsPrice` AS `dAssistMaterialsPrice`,`eleproductpriceslave`.`dQuoPrintPrice` AS `dQuoPrintPrice`,`eleproductpriceslave`.`dQuoPrintAfterPrice` AS `dQuoPrintAfterPrice`,`eleproductpriceslave`.`dQuoManualPrice` AS `dQuoManualPrice`,`eleproductpriceslave`.`dQuoFreightPrice` AS `dQuoFreightPrice` from (`eleproductpricemaster` join `eleproductpriceslave` on((`eleproductpricemaster`.`sId` = `eleproductpriceslave`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
