# `eleproductstockmonth`

> 成品月结


- **Engine:** InnoDB
- **Collation:** utf8mb3_general_ci

## Columns

| # | Name | Type | Null | Key | Default | Extra | Comment |
|---|---|---|---|---|---|---|---|
| 1 | `iIncrement` | `int` | NO | PRI |  | auto_increment | 自增列 |
| 2 | `sId` | `varchar(100)` | NO | MUL |  |  | 标准ID |
| 3 | `sBrandsId` | `varchar(100)` | NO |  |  |  | 加工商ID |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |  |  |  | 子公司ID |
| 5 | `tCreateDate` | `datetime` | NO |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 制单日期 |
| 6 | `sMakePerson` | `varchar(255)` | NO |  |  |  | 制单人 |
| 7 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 8 | `sMonth` | `varchar(100)` | NO |  |  |  | 月份 |
| 9 | `sProductId` | `varchar(100)` | NO | MUL |  |  | 产品Id |
| 10 | `sDefineNo` | `varchar(100)` | NO |  |  |  | 自定义项 |
| 11 | `sDefineNo2` | `varchar(100)` | NO |  |  |  | 自定义项2 |
| 12 | `sWareHouseId` | `varchar(100)` | NO |  |  |  | 仓库Id |
| 13 | `sLocationId` | `varchar(100)` | NO |  |  |  | 库区Id |
| 14 | `sLocation` | `varchar(100)` | YES |  |  |  | 库区名 |
| 15 | `sWarehouseLocationId` | `varchar(100)` | NO |  |  |  | 库位Id |
| 16 | `sWarehouseLocation` | `varchar(100)` | YES |  |  |  | 库位名 |
| 17 | `dPriorMoney` | `decimal(18,6)` | NO |  |  |  | 上期金额 |
| 18 | `dPriorQty` | `decimal(18,6)` | NO |  |  |  | 上期数量 |
| 19 | `dInStoreMoney` | `decimal(18,6)` | NO |  |  |  | 入库金额 |
| 20 | `dInStoreQty` | `decimal(18,6)` | NO |  |  |  | 入库数量 |
| 21 | `dOutStoreMoney` | `decimal(18,6)` | NO |  |  |  | 出库金额 |
| 22 | `dOutStoreQty` | `decimal(18,6)` | NO |  |  |  | 出库数量 |
| 23 | `dErrorMoney` | `decimal(18,6)` | NO |  |  |  | 误差金额 |
| 24 | `dProductPrice` | `decimal(18,6)` | NO |  |  |  | 本期价格 |
| 25 | `dProductMoney` | `decimal(18,6)` | NO |  |  |  | 本期金额 |
| 26 | `dProductQty` | `decimal(18,6)` | NO |  |  |  | 本期数量 |
| 27 | `dCostMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 成本金额 |
| 28 | `dCostPrice` | `decimal(18,6)` | NO |  | 0.000000 |  | 成本价格 |
| 29 | `dProductionQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 在制品数量 |
| 30 | `dProductionMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 在制品金额 |
| 31 | `tCheckedDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 检验日期 |
| 32 | `tCurrDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 入库日期 |
| 33 | `tProductionDate` | `datetime` | YES |  | CURRENT_TIMESTAMP | DEFAULT_GENERATED | 生产日期 |
| 34 | `sCustomerId` | `varchar(100)` | NO |  |  |  | 客户Id |
| 35 | `sOrderId` | `varchar(100)` | YES |  |  |  | 订单id |
| 36 | `sOrderNo` | `varchar(100)` | YES |  |  |  | 订单号 |
| 37 | `sOrderSlaveId` | `varchar(100)` | YES |  |  |  | 订单从表id |
| 38 | `sWorkOrderId` | `varchar(100)` | YES |  |  |  | 工单Id |
| 39 | `sWorkOrderNo` | `varchar(100)` | YES |  |  |  | 工单号 |
| 40 | `sWorkOrderSlaveId` | `varchar(100)` | YES |  |  |  | 工单从表id |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_eleproductstockmonth_WareHouse` |  | BTREE | `sProductId`, `sDefineNo`, `sDefineNo2`, `sWareHouseId`, `sLocationId`, `sWarehouseLocationId`, `sBrandsId`, `sSubsidiaryId` |
| `IndexU_eleproductstockmonth` | ✓ | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId` |
| `PRIMARY` | ✓ | BTREE | `iIncrement` |

## Narrative

_No human-written narrative yet — when this table is exercised by a [vertical slice](../../slices/index.md), link from there back to this page._
