# `viw_salsalescontract`（视图）


- **是否可更新：** YES
- **定义者：** `xlyprint@%`

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 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 | `iOrder` | `int` | NO |
| 7 | `sFormId` | `varchar(100)` | NO |
| 8 | `sBillNo` | `varchar(255)` | NO |
| 9 | `sCustomerId` | `varchar(100)` | NO |
| 10 | `sContacts` | `varchar(255)` | YES |
| 11 | `sPhone` | `varchar(255)` | YES |
| 12 | `sSalesManId` | `varchar(100)` | YES |
| 13 | `sGetPayId` | `varchar(100)` | YES |
| 14 | `tGetPayDate` | `datetime` | YES |
| 15 | `tDeliverDate` | `datetime` | YES |
| 16 | `sConsignee` | `varchar(255)` | YES |
| 17 | `sConsigneeMobile` | `varchar(255)` | YES |
| 18 | `sDeliverId` | `varchar(100)` | NO |
| 19 | `sProvince` | `varchar(255)` | YES |
| 20 | `sCity` | `varchar(255)` | YES |
| 21 | `sArea` | `varchar(255)` | YES |
| 22 | `sDeliverTo` | `varchar(255)` | NO |
| 23 | `sManualNo` | `varchar(255)` | YES |
| 24 | `sCustomerOrderNo` | `varchar(255)` | YES |
| 25 | `sMemo` | `text` | YES |
| 26 | `bCheck` | `bit(1)` | NO |
| 27 | `tCheckDate` | `datetime` | YES |
| 28 | `sCheckPerson` | `varchar(255)` | YES |
| 29 | `bPrint` | `bit(1)` | NO |
| 30 | `bCopyLimit` | `bit(1)` | NO |
| 31 | `sCurrency` | `varchar(255)` | YES |
| 32 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 33 | `sStatus` | `varchar(255)` | YES |
| 34 | `bInvalid` | `bit(1)` | NO |
| 35 | `sMReserve1` | `varchar(255)` | YES |
| 36 | `sMReserve2` | `varchar(255)` | YES |
| 37 | `sMReserve3` | `varchar(255)` | YES |
| 38 | `sMReserve4` | `varchar(255)` | YES |
| 39 | `sMReserve5` | `varchar(255)` | YES |
| 40 | `sMReserve6` | `varchar(255)` | YES |
| 41 | `dMReserve1` | `decimal(18,6)` | YES |
| 42 | `dMReserve2` | `decimal(18,6)` | YES |
| 43 | `dMReserve3` | `decimal(18,6)` | YES |
| 44 | `iMReserve1` | `int` | YES |
| 45 | `iMReserve2` | `int` | YES |
| 46 | `iMReserve3` | `int` | YES |
| 47 | `tMReserve1` | `datetime` | YES |
| 48 | `tMReserve2` | `datetime` | YES |
| 49 | `sOrderType` | `varchar(255)` | NO |
| 50 | `sSlaveId` | `varchar(100)` | NO |
| 51 | `iSlaveOrder` | `int` | NO |
| 52 | `sProductId` | `varchar(100)` | NO |
| 53 | `dProductQty` | `decimal(18,6)` | NO |
| 54 | `dProductPrice` | `decimal(18,6)` | NO |
| 55 | `dProductMoney` | `decimal(18,6)` | NO |
| 56 | `sProductInfo` | `text` | YES |
| 57 | `sMaterialsMemo` | `text` | YES |
| 58 | `sProcessMemo` | `text` | YES |
| 59 | `sSrcSlaveId` | `varchar(100)` | NO |
| 60 | `sSrcId` | `varchar(100)` | NO |
| 61 | `sSrcNo` | `varchar(255)` | NO |
| 62 | `dSrcQty` | `decimal(18,6)` | YES |
| 63 | `dProductPQty` | `decimal(18,6)` | YES |
| 64 | `sQualityRequireMemo` | `text` | YES |
| 65 | `sPackRequireMemo` | `text` | YES |
| 66 | `sSlaveMemo` | `text` | YES |
| 67 | `sTaxId` | `varchar(100)` | YES |
| 68 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 69 | `dProductNoTaxMoney` | `decimal(18,6)` | YES |
| 70 | `dProductTaxMoney` | `decimal(18,6)` | YES |
| 71 | `dProductTaxForeignMoney` | `decimal(18,6)` | YES |
| 72 | `dProductForeignMoney` | `decimal(18,6)` | YES |
| 73 | `sWebOrderId` | `varchar(100)` | NO |
| 74 | `sBarcode` | `varchar(255)` | YES |
| 75 | `sSReserve1` | `varchar(255)` | YES |
| 76 | `sSReserve2` | `varchar(255)` | YES |
| 77 | `sSReserve3` | `varchar(255)` | YES |
| 78 | `sSReserve4` | `varchar(255)` | YES |
| 79 | `sSReserve5` | `varchar(255)` | YES |
| 80 | `sSReserve6` | `varchar(255)` | YES |
| 81 | `dSReserve1` | `decimal(18,6)` | YES |
| 82 | `dSReserve2` | `decimal(18,6)` | YES |
| 83 | `dSReserve3` | `decimal(18,6)` | YES |
| 84 | `iSReserve1` | `int` | YES |
| 85 | `iSReserve2` | `int` | YES |
| 86 | `iSReserve3` | `int` | YES |
| 87 | `tSReserve1` | `datetime` | YES |
| 88 | `tSReserve2` | `datetime` | YES |
| 89 | `iIncrement` | `int` | NO |
| 90 | `tSlaveDeliverDate` | `datetime` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`salsalescontractmaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sCustomerId` AS `sCustomerId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sContacts` AS `sContacts`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sPhone` AS `sPhone`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sSalesManId` AS `sSalesManId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sGetPayId` AS `sGetPayId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`tGetPayDate` AS `tGetPayDate`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`tDeliverDate` AS `tDeliverDate`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sConsignee` AS `sConsignee`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sDeliverId` AS `sDeliverId`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sProvince` AS `sProvince`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sCity` AS `sCity`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sArea` AS `sArea`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sDeliverTo` AS `sDeliverTo`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sManualNo` AS `sManualNo`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`bCopyLimit` AS `bCopyLimit`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sCurrency` AS `sCurrency`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`dCurrencyRate` AS `dCurrencyRate`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMReserve1` AS `sMReserve1`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMReserve2` AS `sMReserve2`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMReserve3` AS `sMReserve3`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMReserve4` AS `sMReserve4`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMReserve5` AS `sMReserve5`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sMReserve6` AS `sMReserve6`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`dMReserve1` AS `dMReserve1`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`dMReserve2` AS `dMReserve2`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`dMReserve3` AS `dMReserve3`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`iMReserve1` AS `iMReserve1`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`iMReserve2` AS `iMReserve2`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`iMReserve3` AS `iMReserve3`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`tMReserve1` AS `tMReserve1`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`tMReserve2` AS `tMReserve2`,`xlyweberp_saas_ai`.`salsalescontractmaster`.`sOrderType` AS `sOrderType`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`salsalescontractslave`.`iOrder` AS `iSlaveOrder`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sProductId` AS `sProductId`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductQty` AS `dProductQty`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductPrice` AS `dProductPrice`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductMoney` AS `dProductMoney`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sProductInfo` AS `sProductInfo`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sMaterialsMemo` AS `sMaterialsMemo`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sProcessMemo` AS `sProcessMemo`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSrcNo` AS `sSrcNo`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dSrcQty` AS `dSrcQty`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductPQty` AS `dProductPQty`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sQualityRequireMemo` AS `sQualityRequireMemo`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sPackRequireMemo` AS `sPackRequireMemo`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSlaveMemo` AS `sSlaveMemo`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductNoTaxPrice` AS `dProductNoTaxPrice`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductNoTaxMoney` AS `dProductNoTaxMoney`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductTaxMoney` AS `dProductTaxMoney`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductTaxForeignMoney` AS `dProductTaxForeignMoney`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dProductForeignMoney` AS `dProductForeignMoney`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sWebOrderId` AS `sWebOrderId`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sBarcode` AS `sBarcode`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSReserve1` AS `sSReserve1`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSReserve2` AS `sSReserve2`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSReserve3` AS `sSReserve3`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSReserve4` AS `sSReserve4`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSReserve5` AS `sSReserve5`,`xlyweberp_saas_ai`.`salsalescontractslave`.`sSReserve6` AS `sSReserve6`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dSReserve1` AS `dSReserve1`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dSReserve2` AS `dSReserve2`,`xlyweberp_saas_ai`.`salsalescontractslave`.`dSReserve3` AS `dSReserve3`,`xlyweberp_saas_ai`.`salsalescontractslave`.`iSReserve1` AS `iSReserve1`,`xlyweberp_saas_ai`.`salsalescontractslave`.`iSReserve2` AS `iSReserve2`,`xlyweberp_saas_ai`.`salsalescontractslave`.`iSReserve3` AS `iSReserve3`,`xlyweberp_saas_ai`.`salsalescontractslave`.`tSReserve1` AS `tSReserve1`,`xlyweberp_saas_ai`.`salsalescontractslave`.`tSReserve2` AS `tSReserve2`,`xlyweberp_saas_ai`.`salsalescontractslave`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`salsalescontractslave`.`tDeliverDate` AS `tSlaveDeliverDate` from (`xlyweberp_saas_ai`.`salsalescontractmaster` join `xlyweberp_saas_ai`.`salsalescontractslave` on((`xlyweberp_saas_ai`.`salsalescontractslave`.`sParentId` = `xlyweberp_saas_ai`.`salsalescontractmaster`.`sId`)))
```

## 说明

_暂无人工说明。_
