# `purpurchaserejectslave`

> 采购退货从表


- **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 | `iOrder` | `int` | NO |  | 0 |  | 排序号 |
| 6 | `sMakePerson` | `varchar(255)` | YES |  |  |  | 制单人 |
| 7 | `sParentId` | `varchar(100)` | NO |  |  |  | 父级ID |
| 8 | `sMaterialsId` | `varchar(100)` | NO |  |  |  | 材料ID |
| 9 | `sMaterialsStyle` | `varchar(255)` | NO |  |  |  | 材料规格 |
| 10 | `dAuxiliaryQty` | `decimal(18,6)` | NO |  |  |  | 数量 |
| 11 | `sAuxiliaryUnit` | `varchar(255)` | NO |  |  |  | 单位 |
| 12 | `dMaterialsQty` | `decimal(18,6)` | NO |  |  |  | 换算数量 |
| 13 | `dConversionQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 预留数量 |
| 14 | `dMaterialsPrice` | `decimal(18,6)` | NO |  | 0.000000 |  | 价格 |
| 15 | `dMaterialsMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 金额 |
| 16 | `sSrcSlaveId` | `varchar(100)` | NO |  |  |  | 源单从表Id |
| 17 | `sSrcId` | `varchar(100)` | NO |  |  |  | 源单ID |
| 18 | `sSrcNo` | `varchar(255)` | NO |  |  |  | 源单号 |
| 19 | `dSrcQty` | `decimal(18,6)` | YES |  |  |  | 源单数量 |
| 20 | `sSlaveMemo` | `text` | YES |  |  |  | 备注 |
| 21 | `sTaxId` | `varchar(100)` | YES |  |  |  | 税率ID |
| 22 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |  |  |  | 不含税价 |
| 23 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |  |  |  | 不含税金额 |
| 24 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |  |  |  | 税额 |
| 25 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |  |  |  | 外币税额 |
| 26 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |  |  |  | 外币金额 |
| 27 | `bCheckingComplete` | `bit(1)` | NO |  | b'0' |  | 入库强制完工 |
| 28 | `dCheckingAuxiliaryQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 入库库存数量 |
| 29 | `dCheckingQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 入库换算数量 |
| 30 | `sDefineNo` | `varchar(100)` | NO |  |  |  | 自定义项 |
| 31 | `sDefineNo2` | `varchar(100)` | NO |  |  |  | 自定义项2 |
| 32 | `sWareHouseId` | `varchar(100)` | NO |  |  |  | 仓库ID |
| 33 | `sLocationId` | `varchar(100)` | NO |  |  |  | 库区ID |
| 34 | `sWareHouseLocationId` | `varchar(100)` | NO |  |  |  | 库位ID |
| 35 | `sPurchaseOrderId` | `varchar(100)` | NO |  |  |  | 采购订单ID |
| 36 | `sPurchaseOrderNo` | `varchar(255)` | NO |  |  |  | 采购订单号 |
| 37 | `sPurchaseOrderSlaveId` | `varchar(100)` | NO |  |  |  | 采购订单从表Id |
| 38 | `sOrderId` | `varchar(100)` | NO |  |  |  | 订单ID |
| 39 | `sOrderSlaveId` | `varchar(100)` | NO |  |  |  | 订单从表Id |
| 40 | `sOrderNo` | `varchar(255)` | NO |  |  |  | 订单号 |
| 41 | `sWorkOrderId` | `varchar(100)` | NO |  |  |  | 工单ID |
| 42 | `sWorkOrderSlaveId` | `varchar(100)` | NO |  |  |  | 工单从表Id |
| 43 | `sWorkOrderNo` | `varchar(4000)` | NO |  |  |  | 工单号 |
| 44 | `sWorkOrderControlId` | `varchar(100)` | NO |  |  |  | 工单控制表ID |
| 45 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |  |  |  | 工单材料表Id |
| 46 | `dPayMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 付款金额 |
| 47 | `sBarcode` | `varchar(255)` | YES |  |  |  | 条形码 |
| 48 | `dInStoreAuxiliaryQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 入库数量 |
| 49 | `dInStoreQty` | `decimal(18,6)` | NO |  | 0.000000 |  | 入库换算数量 |
| 50 | `bInStoreComplete` | `bit(1)` | NO |  | b'0' |  | 入库是否强制完工 |
| 51 | `sSReserve1` | `varchar(255)` | YES |  |  |  | 预留字符1 |
| 52 | `sSReserve2` | `varchar(255)` | YES |  |  |  | 预留字符2 |
| 53 | `sSReserve3` | `varchar(255)` | YES |  |  |  | 预留字符3 |
| 54 | `sSReserve4` | `varchar(255)` | YES |  |  |  | 预留字符4 |
| 55 | `sSReserve5` | `varchar(255)` | YES |  |  |  | 预留字符5 |
| 56 | `sSReserve6` | `varchar(255)` | YES |  |  |  | 预留字符6 |
| 57 | `dSReserve1` | `decimal(18,6)` | YES |  |  |  | 预留数字1 |
| 58 | `dSReserve2` | `decimal(18,6)` | YES |  |  |  | 预留数字2 |
| 59 | `dSReserve3` | `decimal(18,6)` | YES |  |  |  | 预留数字3 |
| 60 | `iSReserve1` | `int` | YES |  |  |  | 预留整型1 |
| 61 | `iSReserve2` | `int` | YES |  |  |  | 预留整型2 |
| 62 | `iSReserve3` | `int` | YES |  |  |  | 预留整型3 |
| 63 | `tSReserve1` | `datetime` | YES |  |  |  | 预留日期1 |
| 64 | `tSReserve2` | `datetime` | YES |  |  |  | 预留日期2 |
| 65 | `sPurchaseApplyId` | `varchar(100)` | NO |  |  |  | 采购申请Id |
| 66 | `sPurchaseApplySlaveId` | `varchar(100)` | NO |  |  |  | 采购申请从表Id |
| 67 | `sPurchaseApplySlaveNo` | `varchar(255)` | NO |  |  |  | 采购申请号 |
| 68 | `bPaymentComplete` | `bit(1)` | NO |  | b'0' |  | 付款强制完工 |
| 69 | `dInvoiceMoney` | `decimal(18,6)` | NO |  | 0.000000 |  | 发票反写金额 |
| 70 | `bInvoiceComplete` | `bit(1)` | NO |  | b'0' |  | 发票强制完工 |
| 71 | `bVMI` | `bit(1)` | YES |  | b'0' |  | 是否寄售 |
| 72 | `iHandIn` | `int` | YES |  | 0 |  | 是否手填 |
| 73 | `sAccidentId` | `varchar(100)` | YES |  |  |  | 质量事故报告sid |
| 74 | `sMinusSrcSlaveId` | `varchar(255)` | NO |  |  |  | 红冲源单id |

## Indexes

| Name | Unique | Type | Columns |
|---|---|---|---|
| `IndexN_purpurchaserejectslave` |  | BTREE | `sId`, `sBrandsId`, `sSubsidiaryId`, `sParentId` |
| `IndexU_purpurchaserejectslave` | ✓ | 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._
