# `viw_logisticsorderdetails`（视图）


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

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(100)` | NO |
| 3 | `sBrandsId` | `varchar(100)` | NO |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `sMakePerson` | `varchar(255)` | NO |
| 7 | `iOrder` | `int` | NO |
| 8 | `sFormId` | `varchar(100)` | NO |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `bCheck` | `bit(1)` | NO |
| 11 | `tCheckDate` | `datetime` | YES |
| 12 | `sMemo` | `text` | YES |
| 13 | `sCheckPerson` | `varchar(255)` | YES |
| 14 | `bPrint` | `bit(1)` | NO |
| 15 | `sStatus` | `varchar(255)` | YES |
| 16 | `bInvalid` | `bit(1)` | NO |
| 17 | `sSlaveId` | `varchar(100)` | NO |
| 18 | `sParentId` | `varchar(100)` | NO |
| 19 | `sSupplyId` | `varchar(100)` | NO |
| 20 | `sLogType` | `varchar(100)` | YES |
| 21 | `sSrcSlaveId` | `varchar(100)` | NO |
| 22 | `sSrcId` | `varchar(100)` | NO |
| 23 | `sSrcNo` | `varchar(255)` | NO |
| 24 | `sTaxId` | `varchar(100)` | YES |
| 25 | `dProductQty` | `decimal(18,6)` | YES |
| 26 | `dProductPrice` | `decimal(19,6)` | YES |
| 27 | `dProductMoney` | `decimal(19,6)` | YES |
| 28 | `dProductNoTaxPrice` | `decimal(26,2)` | YES |
| 29 | `dProductNoTaxMoney` | `decimal(26,2)` | YES |
| 30 | `dProductTaxMoney` | `decimal(38,2)` | YES |
| 31 | `dProductForeignMoney` | `decimal(19,6)` | YES |
| 32 | `dProductTaxForeignMoney` | `decimal(26,2)` | YES |
| 33 | `dNProductPrice` | `decimal(26,2)` | YES |
| 34 | `dNProductMoney` | `decimal(19,6)` | YES |
| 35 | `dProductForeignPrice` | `decimal(19,6)` | YES |
| 36 | `bCheckingComplete` | `bit(1)` | YES |
| 37 | `dCheckingProductMoney` | `decimal(18,6)` | YES |
| 38 | `sGetPayId` | `varchar(50)` | YES |
| 39 | `tGetPayDate` | `datetime` | YES |
| 40 | `sSlaveMemo` | `text` | YES |
| 41 | `dSrcProductMoney` | `decimal(18,6)` | YES |
| 42 | `tCheckListDate` | `datetime` | YES |
| 43 | `sCarNo` | `varchar(255)` | YES |
| 44 | `sTon` | `varchar(255)` | YES |
| 45 | `sCity` | `varchar(255)` | YES |
| 46 | `iLogType` | `int` | YES |
| 47 | `tDispatchDate` | `datetime` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`logisticsordermaster`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`logisticsordermaster`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`logisticsordermaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`logisticsordermaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`logisticsordermaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`logisticsordermaster`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`logisticsordermaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`logisticsordermaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sId` AS `sSlaveId`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sParentId` AS `sParentId`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sSupplyId` AS `sSupplyId`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sLogType` AS `sLogType`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sSrcNo` AS `sSrcNo`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductQty` AS `dProductQty`,(`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) AS `dProductPrice`,(`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) AS `dProductMoney`,round(((`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) / (1 + (`xlyweberp_saas_ai`.`sistax`.`dRate` / 100))),2) AS `dProductNoTaxPrice`,round(((`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) / (1 + (`xlyweberp_saas_ai`.`sistax`.`dRate` / 100))),2) AS `dProductNoTaxMoney`,round((((`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) / (1 + (`xlyweberp_saas_ai`.`sistax`.`dRate` / 100))) * (`xlyweberp_saas_ai`.`sistax`.`dRate` / 100)),2) AS `dProductTaxMoney`,(`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) AS `dProductForeignMoney`,round(((`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) / (1 + (`xlyweberp_saas_ai`.`sistax`.`dRate` / 100))),2) AS `dProductTaxForeignMoney`,round(((`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) / (1 + (`xlyweberp_saas_ai`.`sistax`.`dRate` / 100))),2) AS `dNProductPrice`,(`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) AS `dNProductMoney`,(`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` - `xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney`) AS `dProductForeignPrice`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`bCheckingComplete` AS `bCheckingComplete`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`dCheckingProductMoney` AS `dCheckingProductMoney`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sGetPayId` AS `sGetPayId`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`tGetPayDate` AS `tGetPayDate`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sSlaveMemo` AS `sSlaveMemo`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` AS `dSrcProductMoney`,if((`xlyweberp_saas_ai`.`logisticsordermaster`.`tCheckDate` < cast(concat(date_format(`xlyweberp_saas_ai`.`logisticsordermaster`.`tCheckDate`,'%Y-%m-'),ifnull(`xlyweberp_saas_ai`.`elesupply`.`iCheckDate`,25)) as datetime)),cast(concat(date_format(`xlyweberp_saas_ai`.`logisticsordermaster`.`tCheckDate`,'%Y-%m-'),ifnull(`xlyweberp_saas_ai`.`elesupply`.`iCheckDate`,25)) as datetime),(cast(concat(date_format(`xlyweberp_saas_ai`.`logisticsordermaster`.`tCheckDate`,'%Y-%m-'),ifnull(`xlyweberp_saas_ai`.`elesupply`.`iCheckDate`,25)) as datetime) + interval 1 month)) AS `tCheckListDate`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sCarNo` AS `sCarNo`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sTon` AS `sTon`,`xlyweberp_saas_ai`.`logisticsorderdetails`.`sCity` AS `sCity`,`xlyweberp_saas_ai`.`logisticsordermaster`.`iLogType` AS `iLogType`,`xlyweberp_saas_ai`.`logisticsordermaster`.`tDispatchDate` AS `tDispatchDate` from (((`xlyweberp_saas_ai`.`logisticsordermaster` join `xlyweberp_saas_ai`.`logisticsorderdetails` on((`xlyweberp_saas_ai`.`logisticsordermaster`.`sId` = `xlyweberp_saas_ai`.`logisticsorderdetails`.`sParentId`))) join `xlyweberp_saas_ai`.`elesupply` on((`xlyweberp_saas_ai`.`elesupply`.`sId` = `xlyweberp_saas_ai`.`logisticsorderdetails`.`sSupplyId`))) join `xlyweberp_saas_ai`.`sistax` on((`xlyweberp_saas_ai`.`sistax`.`sId` = `xlyweberp_saas_ai`.`logisticsorderdetails`.`sTaxId`))) where (`xlyweberp_saas_ai`.`logisticsorderdetails`.`dProductMoney` > 0)
```

## 说明

_暂无人工说明。_
