# `viw_accproductinit` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 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 | `sFormId` | `varchar(100)` | NO |
| 7 | `iOrder` | `int` | NO |
| 8 | `sBillNo` | `varchar(255)` | NO |
| 9 | `sMemo` | `text` | YES |
| 10 | `bCheck` | `bit(1)` | NO |
| 11 | `tCheckDate` | `datetime` | YES |
| 12 | `sCheckPerson` | `varchar(255)` | YES |
| 13 | `bPrint` | `bit(1)` | NO |
| 14 | `bCopyLimit` | `bit(1)` | NO |
| 15 | `sStatus` | `varchar(255)` | YES |
| 16 | `sEmployeeId` | `varchar(100)` | NO |
| 17 | `bInvalid` | `bit(1)` | NO |
| 18 | `sMReserve1` | `varchar(255)` | YES |
| 19 | `sMReserve2` | `varchar(255)` | YES |
| 20 | `sMReserve3` | `varchar(255)` | YES |
| 21 | `sMReserve4` | `varchar(255)` | YES |
| 22 | `sMReserve5` | `varchar(255)` | YES |
| 23 | `sMReserve6` | `varchar(255)` | YES |
| 24 | `dMReserve1` | `decimal(18,6)` | YES |
| 25 | `dMReserve2` | `decimal(18,6)` | YES |
| 26 | `dMReserve3` | `decimal(18,6)` | YES |
| 27 | `iMReserve1` | `int` | YES |
| 28 | `iMReserve2` | `int` | YES |
| 29 | `iMReserve3` | `int` | YES |
| 30 | `tMReserve1` | `datetime` | YES |
| 31 | `tMReserve2` | `datetime` | YES |
| 32 | `sCostPeriod` | `varchar(100)` | NO |
| 33 | `sConfirmMonth` | `varchar(100)` | NO |
| 34 | `bConfirm` | `bit(1)` | NO |
| 35 | `sSlaveId` | `varchar(50)` | NO |
| 36 | `iSlaveOrder` | `int` | NO |
| 37 | `sCustomerId` | `varchar(50)` | NO |
| 38 | `sProductId` | `varchar(50)` | NO |
| 39 | `dOriginalQty` | `decimal(18,6)` | NO |
| 40 | `dOriginalMoney` | `decimal(18,2)` | NO |
| 41 | `dProductQty` | `decimal(18,6)` | NO |
| 42 | `dProductPrice` | `decimal(18,6)` | NO |
| 43 | `dProductMoney` | `decimal(18,2)` | NO |
| 44 | `dProfitLossQty` | `decimal(18,6)` | YES |
| 45 | `dProfitLossMoney` | `decimal(18,2)` | YES |
| 46 | `dProfitLossPrice` | `decimal(18,6)` | YES |
| 47 | `sSrcId` | `varchar(50)` | YES |
| 48 | `sSrcSlaveId` | `varchar(50)` | YES |
| 49 | `sSrcNo` | `varchar(50)` | YES |
| 50 | `dSrcQty` | `decimal(18,6)` | YES |
| 51 | `sSlaveMemo` | `text` | YES |
| 52 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 53 | `dProductNoTaxMoney` | `decimal(18,2)` | YES |
| 54 | `dProductTaxMoney` | `decimal(18,2)` | YES |
| 55 | `sBarcode` | `varchar(50)` | YES |
| 56 | `sDefineNo` | `varchar(50)` | YES |
| 57 | `sDefineNo2` | `varchar(50)` | YES |
| 58 | `sWareHouseId` | `varchar(50)` | YES |
| 59 | `sLocationId` | `varchar(50)` | YES |
| 60 | `sWareHouseLocationId` | `varchar(50)` | YES |
| 61 | `sSReserve1` | `varchar(50)` | YES |
| 62 | `sSReserve2` | `varchar(50)` | YES |
| 63 | `sSReserve3` | `varchar(50)` | YES |
| 64 | `sSReserve4` | `varchar(50)` | YES |
| 65 | `sSReserve5` | `varchar(50)` | YES |
| 66 | `sSReserve6` | `varchar(50)` | YES |
| 67 | `dSReserve1` | `decimal(18,6)` | YES |
| 68 | `dSReserve2` | `decimal(18,6)` | YES |
| 69 | `dSReserve3` | `decimal(18,6)` | YES |
| 70 | `iSReserve1` | `int` | YES |
| 71 | `iSReserve2` | `int` | YES |
| 72 | `iSReserve3` | `int` | YES |
| 73 | `tSReserve1` | `datetime` | YES |
| 74 | `tSReserve2` | `datetime` | YES |
| 75 | `dCostPrice` | `decimal(18,6)` | YES |
| 76 | `dCostMoney` | `decimal(18,2)` | YES |
| 77 | `sOrderNo` | `varchar(50)` | NO |
| 78 | `sOrderId` | `varchar(50)` | NO |
| 79 | `dEndExpense1Money` | `decimal(18,6)` | NO |
| 80 | `dEndExpense3Money` | `decimal(18,6)` | NO |
| 81 | `dEndExpense21Money` | `decimal(18,6)` | NO |
| 82 | `dEndExpense19Money` | `decimal(18,6)` | NO |
| 83 | `dEndExpense8Money` | `decimal(18,6)` | NO |
| 84 | `dEndExpense11Money` | `decimal(18,6)` | NO |
| 85 | `dEndExpense16Money` | `decimal(18,6)` | NO |
| 86 | `sTaxId` | `varchar(50)` | YES |
| 87 | `dCheckingQty` | `decimal(18,6)` | NO |
| 88 | `dProductForeignMoney` | `decimal(18,2)` | NO |
| 89 | `dProductForeignPrice` | `decimal(18,13)` | YES |
| 90 | `bCheckingComplete` | `bit(1)` | NO |
| 91 | `sCurrency` | `varchar(50)` | YES |
| 92 | `tDeliverDate` | `datetime` | YES |
| 93 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 94 | `bFrozen` | `bit(1)` | YES |
| 95 | `sWorkOrderNo` | `varchar(255)` | YES |
| 96 | `bSingleReceipt` | `int` | NO |
| 97 | `bFinance` | `int` | NO |
| 98 | `sSalesManId` | `varchar(2)` | NO |

## Definition

```sql
select `accproductinitmaster`.`sId` AS `sId`,`accproductinitmaster`.`sBrandsId` AS `sBrandsId`,`accproductinitmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`accproductinitmaster`.`tCreateDate` AS `tCreateDate`,`accproductinitmaster`.`sMakePerson` AS `sMakePerson`,`accproductinitmaster`.`sFormId` AS `sFormId`,`accproductinitmaster`.`iOrder` AS `iOrder`,`accproductinitmaster`.`sBillNo` AS `sBillNo`,`accproductinitmaster`.`sMemo` AS `sMemo`,`accproductinitmaster`.`bCheck` AS `bCheck`,`accproductinitmaster`.`tCheckDate` AS `tCheckDate`,`accproductinitmaster`.`sCheckPerson` AS `sCheckPerson`,`accproductinitmaster`.`bPrint` AS `bPrint`,`accproductinitmaster`.`bCopyLimit` AS `bCopyLimit`,`accproductinitmaster`.`sStatus` AS `sStatus`,`accproductinitmaster`.`sEmployeeId` AS `sEmployeeId`,`accproductinitmaster`.`bInvalid` AS `bInvalid`,`accproductinitmaster`.`sMReserve1` AS `sMReserve1`,`accproductinitmaster`.`sMReserve2` AS `sMReserve2`,`accproductinitmaster`.`sMReserve3` AS `sMReserve3`,`accproductinitmaster`.`sMReserve4` AS `sMReserve4`,`accproductinitmaster`.`sMReserve5` AS `sMReserve5`,`accproductinitmaster`.`sMReserve6` AS `sMReserve6`,`accproductinitmaster`.`dMReserve1` AS `dMReserve1`,`accproductinitmaster`.`dMReserve2` AS `dMReserve2`,`accproductinitmaster`.`dMReserve3` AS `dMReserve3`,`accproductinitmaster`.`iMReserve1` AS `iMReserve1`,`accproductinitmaster`.`iMReserve2` AS `iMReserve2`,`accproductinitmaster`.`iMReserve3` AS `iMReserve3`,`accproductinitmaster`.`tMReserve1` AS `tMReserve1`,`accproductinitmaster`.`tMReserve2` AS `tMReserve2`,`accproductinitmaster`.`sCostPeriod` AS `sCostPeriod`,`accproductinitmaster`.`sConfirmMonth` AS `sConfirmMonth`,`accproductinitmaster`.`bConfirm` AS `bConfirm`,`accproductinitslave`.`sId` AS `sSlaveId`,`accproductinitslave`.`iOrder` AS `iSlaveOrder`,`accproductinitslave`.`sCustomerId` AS `sCustomerId`,`accproductinitslave`.`sProductId` AS `sProductId`,`accproductinitslave`.`dOriginalQty` AS `dOriginalQty`,`accproductinitslave`.`dOriginalMoney` AS `dOriginalMoney`,`accproductinitslave`.`dProductQty` AS `dProductQty`,`accproductinitslave`.`dProductPrice` AS `dProductPrice`,`accproductinitslave`.`dProductMoney` AS `dProductMoney`,`accproductinitslave`.`dProfitLossQty` AS `dProfitLossQty`,`accproductinitslave`.`dProfitLossMoney` AS `dProfitLossMoney`,`accproductinitslave`.`dProfitLossPrice` AS `dProfitLossPrice`,`accproductinitslave`.`sSrcId` AS `sSrcId`,`accproductinitslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`accproductinitslave`.`sSrcNo` AS `sSrcNo`,`accproductinitslave`.`dSrcQty` AS `dSrcQty`,`accproductinitslave`.`sSlaveMemo` AS `sSlaveMemo`,`accproductinitslave`.`dProductNoTaxPrice` AS `dProductNoTaxPrice`,`accproductinitslave`.`dProductNoTaxMoney` AS `dProductNoTaxMoney`,`accproductinitslave`.`dProductTaxMoney` AS `dProductTaxMoney`,`accproductinitslave`.`sBarcode` AS `sBarcode`,`accproductinitslave`.`sDefineNo` AS `sDefineNo`,`accproductinitslave`.`sDefineNo2` AS `sDefineNo2`,`accproductinitslave`.`sWareHouseId` AS `sWareHouseId`,`accproductinitslave`.`sLocationId` AS `sLocationId`,`accproductinitslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`accproductinitslave`.`sSReserve1` AS `sSReserve1`,`accproductinitslave`.`sSReserve2` AS `sSReserve2`,`accproductinitslave`.`sSReserve3` AS `sSReserve3`,`accproductinitslave`.`sSReserve4` AS `sSReserve4`,`accproductinitslave`.`sSReserve5` AS `sSReserve5`,`accproductinitslave`.`sSReserve6` AS `sSReserve6`,`accproductinitslave`.`dSReserve1` AS `dSReserve1`,`accproductinitslave`.`dSReserve2` AS `dSReserve2`,`accproductinitslave`.`dSReserve3` AS `dSReserve3`,`accproductinitslave`.`iSReserve1` AS `iSReserve1`,`accproductinitslave`.`iSReserve2` AS `iSReserve2`,`accproductinitslave`.`iSReserve3` AS `iSReserve3`,`accproductinitslave`.`tSReserve1` AS `tSReserve1`,`accproductinitslave`.`tSReserve2` AS `tSReserve2`,`accproductinitslave`.`dCostPrice` AS `dCostPrice`,`accproductinitslave`.`dCostMoney` AS `dCostMoney`,`accproductinitslave`.`sOrderNo` AS `sOrderNo`,`accproductinitslave`.`sOrderId` AS `sOrderId`,`accproductinitslave`.`dEndExpense1Money` AS `dEndExpense1Money`,`accproductinitslave`.`dEndExpense3Money` AS `dEndExpense3Money`,`accproductinitslave`.`dEndExpense21Money` AS `dEndExpense21Money`,`accproductinitslave`.`dEndExpense19Money` AS `dEndExpense19Money`,`accproductinitslave`.`dEndExpense8Money` AS `dEndExpense8Money`,`accproductinitslave`.`dEndExpense11Money` AS `dEndExpense11Money`,`accproductinitslave`.`dEndExpense16Money` AS `dEndExpense16Money`,`accproductinitslave`.`sTaxId` AS `sTaxId`,`accproductinitslave`.`dCheckingQty` AS `dCheckingQty`,`accproductinitslave`.`dProductForeignMoney` AS `dProductForeignMoney`,`accproductinitslave`.`dProductForeignPrice` AS `dProductForeignPrice`,`accproductinitslave`.`bCheckingComplete` AS `bCheckingComplete`,`accproductinitslave`.`sCurrency` AS `sCurrency`,`accproductinitslave`.`tDeliverDate` AS `tDeliverDate`,`accproductinitslave`.`dCurrencyRate` AS `dCurrencyRate`,`accproductinitslave`.`bFrozen` AS `bFrozen`,`accproductinitslave`.`sWorkOrderNo` AS `sWorkOrderNo`,0 AS `bSingleReceipt`,0 AS `bFinance`,'-1' AS `sSalesManId` from (`accproductinitslave` join `accproductinitmaster` on((`accproductinitmaster`.`sId` = `accproductinitslave`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
