# `viw_cahpaymentsum`（视图）


- **是否可更新：** NO
- **定义者：** `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 | `sBillType` | `varchar(255)` | NO |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sSupplyId` | `varchar(100)` | NO |
| 11 | `sContacts` | `varchar(255)` | YES |
| 12 | `sPhone` | `varchar(255)` | YES |
| 13 | `tDeliverDate` | `datetime` | YES |
| 14 | `sPurchaseId` | `varchar(100)` | NO |
| 15 | `sPurchaseManId` | `varchar(100)` | NO |
| 16 | `dTotalMoney` | `decimal(18,6)` | NO |
| 17 | `sGetPayId` | `varchar(100)` | YES |
| 18 | `tGetPayDate` | `datetime` | YES |
| 19 | `sConsignee` | `varchar(255)` | YES |
| 20 | `sConsigneeMobile` | `varchar(255)` | YES |
| 21 | `sDeliverId` | `varchar(100)` | YES |
| 22 | `sProvince` | `varchar(255)` | YES |
| 23 | `sCity` | `varchar(255)` | YES |
| 24 | `sArea` | `varchar(255)` | YES |
| 25 | `sDeliverTo` | `varchar(255)` | YES |
| 26 | `sManualNo` | `varchar(255)` | YES |
| 27 | `sMemo` | `text` | YES |
| 28 | `bCheck` | `bit(1)` | NO |
| 29 | `tCheckDate` | `datetime` | YES |
| 30 | `sCheckPerson` | `varchar(255)` | YES |
| 31 | `bPrint` | `bit(1)` | NO |
| 32 | `bCopyLimit` | `bit(1)` | NO |
| 33 | `dAdvanceMoney` | `decimal(18,6)` | NO |
| 34 | `dRealAdvanceMoney` | `decimal(18,6)` | NO |
| 35 | `sCurrency` | `varchar(255)` | YES |
| 36 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 37 | `sStatus` | `varchar(255)` | YES |
| 38 | `bInvalid` | `bit(1)` | NO |
| 39 | `bAdvance` | `bit(1)` | NO |
| 40 | `sSettlementMode` | `varchar(255)` | NO |
| 41 | `sExpenseId` | `varchar(100)` | NO |
| 42 | `sMReserve1` | `varchar(255)` | YES |
| 43 | `sMReserve2` | `varchar(255)` | YES |
| 44 | `sMReserve3` | `varchar(255)` | YES |
| 45 | `sMReserve4` | `varchar(255)` | YES |
| 46 | `sMReserve5` | `varchar(255)` | YES |
| 47 | `sMReserve6` | `varchar(255)` | YES |
| 48 | `dMReserve1` | `decimal(18,6)` | YES |
| 49 | `dMReserve2` | `decimal(18,6)` | YES |
| 50 | `dMReserve3` | `decimal(18,6)` | YES |
| 51 | `iMReserve1` | `int` | YES |
| 52 | `iMReserve2` | `int` | YES |
| 53 | `iMReserve3` | `int` | YES |
| 54 | `tMReserve1` | `datetime` | YES |
| 55 | `tMReserve2` | `datetime` | YES |
| 56 | `sSlaveId` | `varchar(200)` | NO |
| 57 | `iSlaveOrder` | `int` | YES |
| 58 | `sMaterialsId` | `varchar(100)` | YES |
| 59 | `sMaterialsStyle` | `varchar(255)` | YES |
| 60 | `dAuxiliaryQty` | `decimal(18,6)` | YES |
| 61 | `sAuxiliaryUnit` | `varchar(255)` | YES |
| 62 | `dMaterialsQty` | `decimal(18,6)` | YES |
| 63 | `dConversionQty` | `decimal(18,6)` | YES |
| 64 | `sSrcSlaveId` | `varchar(100)` | YES |
| 65 | `sSrcId` | `varchar(100)` | YES |
| 66 | `sSrcNo` | `varchar(255)` | YES |
| 67 | `dSrcMoney` | `decimal(18,6)` | YES |
| 68 | `sSlaveMemo` | `text` | YES |
| 69 | `dBalanceMoney` | `decimal(18,6)` | YES |
| 70 | `dSlaveRoundingMoney` | `decimal(18,6)` | YES |
| 71 | `dSlaveTotalMoney` | `decimal(18,6)` | YES |
| 72 | `bMinus` | `bit(1)` | YES |
| 73 | `dMinusMoney` | `decimal(18,6)` | YES |
| 74 | `sSrcFormId` | `varchar(100)` | YES |
| 75 | `sTaxId` | `varchar(100)` | YES |
| 76 | `sOrderId` | `varchar(100)` | YES |
| 77 | `sOrderNo` | `varchar(255)` | YES |
| 78 | `sWorkOrderId` | `varchar(100)` | YES |
| 79 | `sWorkOrderNo` | `varchar(255)` | YES |
| 80 | `sWorkOrderControlId` | `varchar(100)` | YES |
| 81 | `sSReserve1` | `varchar(255)` | YES |
| 82 | `sSReserve2` | `varchar(255)` | YES |
| 83 | `sSReserve3` | `varchar(255)` | YES |
| 84 | `sSReserve4` | `varchar(255)` | YES |
| 85 | `sSReserve5` | `varchar(255)` | YES |
| 86 | `sSReserve6` | `varchar(255)` | YES |
| 87 | `dSReserve1` | `decimal(18,6)` | YES |
| 88 | `dSReserve2` | `decimal(18,6)` | YES |
| 89 | `dSReserve3` | `decimal(18,6)` | YES |
| 90 | `iSReserve1` | `int` | YES |
| 91 | `iSReserve2` | `int` | YES |
| 92 | `iSReserve3` | `int` | YES |
| 93 | `tSReserve1` | `datetime` | YES |
| 94 | `tSReserve2` | `datetime` | YES |
| 95 | `dReceiptMoney` | `decimal(18,6)` | NO |
| 96 | `sType` | `varchar(255)` | YES |
| 97 | `iIncrement` | `int` | YES |
| 98 | `sSlaveInvoiceNo` | `varchar(255)` | YES |
| 99 | `sSettlementId` | `varchar(100)` | NO |
| 100 | `sBankId` | `varchar(100)` | NO |
| 101 | `sBankAccount` | `varchar(100)` | NO |
| 102 | `tDueDate` | `datetime` | YES |
| 103 | `sInvoiceNo` | `varchar(255)` | YES |
| 104 | `sCostCenterId` | `varchar(100)` | NO |
| 105 | `dRoundingMoney` | `decimal(18,6)` | NO |
| 106 | `iVouchermark` | `int` | YES |
| 107 | `dProductForeignMoney` | `decimal(18,6)` | NO |
| 108 | `dTotalForeignMoney` | `decimal(18,6)` | YES |
| 109 | `dProductTaxMoney` | `int` | NO |
| 110 | `dProductNoTaxMoney` | `int` | NO |
| 111 | `dProductTaxForeignMoney` | `int` | NO |
| 112 | `dProductMoney` | `decimal(18,6)` | YES |
| 113 | `tPayDate` | `datetime` | YES |

## 定义

```sql
select `xlyweberp_saas_ai`.`cahpaymentmaster`.`sId` AS `sId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sBrandsId` AS `sBrandsId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tCreateDate` AS `tCreateDate`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMakePerson` AS `sMakePerson`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`iOrder` AS `iOrder`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sFormId` AS `sFormId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sBillType` AS `sBillType`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sBillNo` AS `sBillNo`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sSupplyId` AS `sSupplyId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sContacts` AS `sContacts`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sPhone` AS `sPhone`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tDeliverDate` AS `tDeliverDate`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sPurchaseId` AS `sPurchaseId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sPurchaseManId` AS `sPurchaseManId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dTotalMoney` AS `dTotalMoney`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sGetPayId` AS `sGetPayId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tGetPayDate` AS `tGetPayDate`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sConsignee` AS `sConsignee`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sDeliverId` AS `sDeliverId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sProvince` AS `sProvince`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sCity` AS `sCity`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sArea` AS `sArea`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sDeliverTo` AS `sDeliverTo`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sManualNo` AS `sManualNo`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMemo` AS `sMemo`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`bCheck` AS `bCheck`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tCheckDate` AS `tCheckDate`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sCheckPerson` AS `sCheckPerson`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`bPrint` AS `bPrint`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`bCopyLimit` AS `bCopyLimit`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sCurrency` AS `sCurrency`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dCurrencyRate` AS `dCurrencyRate`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sStatus` AS `sStatus`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`bInvalid` AS `bInvalid`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`bAdvance` AS `bAdvance`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sSettlementMode` AS `sSettlementMode`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sExpenseId` AS `sExpenseId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMReserve1` AS `sMReserve1`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMReserve2` AS `sMReserve2`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMReserve3` AS `sMReserve3`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMReserve4` AS `sMReserve4`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMReserve5` AS `sMReserve5`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sMReserve6` AS `sMReserve6`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dMReserve1` AS `dMReserve1`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dMReserve2` AS `dMReserve2`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dMReserve3` AS `dMReserve3`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`iMReserve1` AS `iMReserve1`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`iMReserve2` AS `iMReserve2`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`iMReserve3` AS `iMReserve3`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tMReserve1` AS `tMReserve1`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tMReserve2` AS `tMReserve2`,concat(`xlyweberp_saas_ai`.`cahpaymentmaster`.`sId`,ifnull(`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sId`,'')) AS `sSlaveId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`iOrder` AS `iSlaveOrder`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sMaterialsId` AS `sMaterialsId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dMaterialsQty` AS `dMaterialsQty`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dConversionQty` AS `dConversionQty`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSrcId` AS `sSrcId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSrcNo` AS `sSrcNo`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dSrcMoney` AS `dSrcMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSlaveMemo` AS `sSlaveMemo`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dBalanceMoney` AS `dBalanceMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dRoundingMoney` AS `dSlaveRoundingMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dTotalMoney` AS `dSlaveTotalMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`bMinus` AS `bMinus`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dMinusMoney` AS `dMinusMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSrcFormId` AS `sSrcFormId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sTaxId` AS `sTaxId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sOrderId` AS `sOrderId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sOrderNo` AS `sOrderNo`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sWorkOrderId` AS `sWorkOrderId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSReserve1` AS `sSReserve1`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSReserve2` AS `sSReserve2`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSReserve3` AS `sSReserve3`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSReserve4` AS `sSReserve4`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSReserve5` AS `sSReserve5`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sSReserve6` AS `sSReserve6`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dSReserve1` AS `dSReserve1`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dSReserve2` AS `dSReserve2`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dSReserve3` AS `dSReserve3`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`iSReserve1` AS `iSReserve1`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`iSReserve2` AS `iSReserve2`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`iSReserve3` AS `iSReserve3`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`tSReserve1` AS `tSReserve1`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`tSReserve2` AS `tSReserve2`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dReceiptMoney` AS `dReceiptMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sType` AS `sType`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`iIncrement` AS `iIncrement`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sInvoiceNo` AS `sSlaveInvoiceNo`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sSettlementId` AS `sSettlementId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sBankId` AS `sBankId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sBankAccount` AS `sBankAccount`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tDueDate` AS `tDueDate`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sInvoiceNo` AS `sInvoiceNo`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`sCostCenterId` AS `sCostCenterId`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dRoundingMoney` AS `dRoundingMoney`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`iVouchermark` AS `iVouchermark`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`dProductForeignMoney` AS `dProductForeignMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dTotalForeignMoney` AS `dTotalForeignMoney`,0 AS `dProductTaxMoney`,0 AS `dProductNoTaxMoney`,0 AS `dProductTaxForeignMoney`,`xlyweberp_saas_ai`.`cahpaymentsumslave`.`dTotalMoney` AS `dProductMoney`,`xlyweberp_saas_ai`.`cahpaymentmaster`.`tPayDate` AS `tPayDate` from (`xlyweberp_saas_ai`.`cahpaymentmaster` left join `xlyweberp_saas_ai`.`cahpaymentsumslave` on((`xlyweberp_saas_ai`.`cahpaymentsumslave`.`sParentId` = `xlyweberp_saas_ai`.`cahpaymentmaster`.`sId`)))
```

## 说明

_暂无人工说明。_
