# `viw_ai_cahpayment` (view)


- **Updatable:** NO

## Columns

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

## Definition

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

## Narrative

_No human-written narrative yet._
