# `viw_cahreceipt` (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 | `sMakePerson` | `varchar(255)` | NO |
| 6 | `iOrder` | `int` | NO |
| 7 | `sFormId` | `varchar(100)` | NO |
| 8 | `sBillType` | `varchar(255)` | NO |
| 9 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sCustomerId` | `varchar(100)` | NO |
| 11 | `sContacts` | `varchar(255)` | YES |
| 12 | `sPhone` | `varchar(255)` | YES |
| 13 | `tProofingDate` | `datetime` | YES |
| 14 | `tDeliverDate` | `datetime` | YES |
| 15 | `sSalesManId` | `varchar(100)` | YES |
| 16 | `sGetPayId` | `varchar(100)` | YES |
| 17 | `tGetPayDate` | `datetime` | YES |
| 18 | `sConsignee` | `varchar(255)` | YES |
| 19 | `sConsigneeMobile` | `varchar(255)` | YES |
| 20 | `sDeliverId` | `varchar(100)` | YES |
| 21 | `sProvince` | `varchar(255)` | YES |
| 22 | `sCity` | `varchar(255)` | YES |
| 23 | `sArea` | `varchar(255)` | YES |
| 24 | `sDeliverTo` | `varchar(255)` | YES |
| 25 | `sManualNo` | `varchar(255)` | YES |
| 26 | `sCustomerOrderNo` | `varchar(11)` | YES |
| 27 | `sMemo` | `mediumtext` | 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 | `dTotalMoney` | `decimal(18,6)` | NO |
| 34 | `dAdvanceMoney` | `decimal(18,6)` | NO |
| 35 | `tAdvanceDate` | `datetime` | YES |
| 36 | `dRealAdvanceMoney` | `decimal(18,6)` | NO |
| 37 | `sCurrency` | `varchar(255)` | YES |
| 38 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 39 | `sStatus` | `varchar(255)` | YES |
| 40 | `bInvalid` | `bit(1)` | NO |
| 41 | `sSalesId` | `varchar(100)` | NO |
| 42 | `bAdvance` | `bit(1)` | YES |
| 43 | `sSettlementMode` | `varchar(255)` | NO |
| 44 | `sMReserve1` | `varchar(255)` | YES |
| 45 | `sMReserve2` | `varchar(255)` | YES |
| 46 | `sMReserve3` | `varchar(255)` | YES |
| 47 | `sMReserve4` | `varchar(255)` | YES |
| 48 | `sMReserve5` | `varchar(255)` | YES |
| 49 | `sMReserve6` | `varchar(255)` | YES |
| 50 | `dMReserve1` | `decimal(18,6)` | YES |
| 51 | `dMReserve2` | `decimal(18,6)` | YES |
| 52 | `dMReserve3` | `decimal(18,6)` | YES |
| 53 | `iMReserve1` | `int` | YES |
| 54 | `iMReserve2` | `int` | YES |
| 55 | `iMReserve3` | `int` | YES |
| 56 | `tMReserve1` | `datetime` | YES |
| 57 | `tMReserve2` | `datetime` | YES |
| 58 | `iVouchermark` | `int` | YES |
| 59 | `sSlaveId` | `varchar(100)` | NO |
| 60 | `iSlaveOrder` | `int` | NO |
| 61 | `sProductId` | `varchar(100)` | NO |
| 62 | `dProductQty` | `decimal(18,6)` | NO |
| 63 | `dProductPrice` | `decimal(18,6)` | NO |
| 64 | `dProductMoney` | `decimal(18,6)` | NO |
| 65 | `sSrcSlaveId` | `varchar(100)` | NO |
| 66 | `sSrcId` | `varchar(100)` | NO |
| 67 | `sSrcNo` | `varchar(255)` | NO |
| 68 | `dSrcMoney` | `decimal(18,6)` | YES |
| 69 | `sSlaveMemo` | `mediumtext` | YES |
| 70 | `sTaxId` | `varchar(100)` | YES |
| 71 | `sWebOrderNo` | `varchar(255)` | NO |
| 72 | `sWebOrderId` | `varchar(100)` | NO |
| 73 | `sSReserve1` | `varchar(255)` | YES |
| 74 | `sSReserve2` | `varchar(255)` | YES |
| 75 | `sSReserve3` | `varchar(255)` | YES |
| 76 | `sSReserve4` | `varchar(255)` | YES |
| 77 | `sSReserve5` | `varchar(255)` | YES |
| 78 | `sSReserve6` | `varchar(255)` | YES |
| 79 | `dSReserve1` | `decimal(18,6)` | YES |
| 80 | `dSReserve2` | `decimal(18,6)` | YES |
| 81 | `dSReserve3` | `decimal(18,6)` | YES |
| 82 | `iSReserve1` | `int` | YES |
| 83 | `iSReserve2` | `int` | YES |
| 84 | `iSReserve3` | `int` | YES |
| 85 | `tSReserve1` | `datetime` | YES |
| 86 | `tSReserve2` | `datetime` | YES |
| 87 | `dBalanceMoney` | `decimal(18,6)` | YES |
| 88 | `dSlaveRoundingMoney` | `decimal(18,6)` | NO |
| 89 | `dSlaveTotalMoney` | `decimal(18,6)` | NO |
| 90 | `bMinus` | `decimal(1,0)` | NO |
| 91 | `dMinusMoney` | `decimal(18,6)` | NO |
| 92 | `sSrcFormId` | `varchar(100)` | YES |
| 93 | `sOrderId` | `varchar(100)` | NO |
| 94 | `sOrderSlaveId` | `varchar(100)` | NO |
| 95 | `sOrderNo` | `varchar(255)` | NO |
| 96 | `sWorkOrderId` | `varchar(100)` | NO |
| 97 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 98 | `sWorkOrderNo` | `varchar(255)` | NO |
| 99 | `sParentId` | `varchar(100)` | NO |
| 100 | `dPayMoney` | `decimal(18,6)` | NO |
| 101 | `sType` | `varchar(255)` | NO |
| 102 | `bAdvanceComplete` | `decimal(1,0)` | NO |
| 103 | `iIncrement` | `int` | YES |
| 104 | `sSlaveInvoiceNo` | `varchar(255)` | NO |
| 105 | `sSettlementId` | `varchar(100)` | NO |
| 106 | `sBankId` | `varchar(100)` | NO |
| 107 | `sBankAccount` | `varchar(100)` | NO |
| 108 | `tDueDate` | `datetime` | YES |
| 109 | `sInvoiceNo` | `varchar(255)` | YES |
| 110 | `dRoundingMoney` | `decimal(18,6)` | NO |
| 111 | `bPaymentComplete` | `bit(1)` | NO |
| 112 | `dProductNoTaxMoney` | `decimal(18,6)` | NO |
| 113 | `dProductTaxMoney` | `bigint` | NO |
| 114 | `dProductTaxForeignMoney` | `bigint` | NO |
| 115 | `dProductForeignMoney` | `decimal(18,6)` | NO |
| 116 | `sMaterialsStyle` | `varchar(100)` | NO |
| 117 | `dTotalForeignMoney` | `decimal(18,6)` | NO |
| 118 | `sSrcType` | `varchar(255)` | YES |

## Definition

```sql
select `cahreceiptmaster`.`sId` AS `sId`,`cahreceiptmaster`.`sBrandsId` AS `sBrandsId`,`cahreceiptmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`cahreceiptmaster`.`tCreateDate` AS `tCreateDate`,`cahreceiptmaster`.`sMakePerson` AS `sMakePerson`,`cahreceiptmaster`.`iOrder` AS `iOrder`,`cahreceiptmaster`.`sFormId` AS `sFormId`,`cahreceiptmaster`.`sBillType` AS `sBillType`,`cahreceiptmaster`.`sBillNo` AS `sBillNo`,`cahreceiptmaster`.`sCustomerId` AS `sCustomerId`,`cahreceiptmaster`.`sContacts` AS `sContacts`,`cahreceiptmaster`.`sPhone` AS `sPhone`,`cahreceiptmaster`.`tProofingDate` AS `tProofingDate`,`cahreceiptmaster`.`tDeliverDate` AS `tDeliverDate`,`cahreceiptmaster`.`sSalesManId` AS `sSalesManId`,`cahreceiptmaster`.`sGetPayId` AS `sGetPayId`,`cahreceiptmaster`.`tGetPayDate` AS `tGetPayDate`,`cahreceiptmaster`.`sConsignee` AS `sConsignee`,`cahreceiptmaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`cahreceiptmaster`.`sDeliverId` AS `sDeliverId`,`cahreceiptmaster`.`sProvince` AS `sProvince`,`cahreceiptmaster`.`sCity` AS `sCity`,`cahreceiptmaster`.`sArea` AS `sArea`,`cahreceiptmaster`.`sDeliverTo` AS `sDeliverTo`,`cahreceiptmaster`.`sManualNo` AS `sManualNo`,`cahreceiptmaster`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`cahreceiptmaster`.`sMemo` AS `sMemo`,`cahreceiptmaster`.`bCheck` AS `bCheck`,`cahreceiptmaster`.`tCheckDate` AS `tCheckDate`,`cahreceiptmaster`.`sCheckPerson` AS `sCheckPerson`,`cahreceiptmaster`.`bPrint` AS `bPrint`,`cahreceiptmaster`.`bCopyLimit` AS `bCopyLimit`,`cahreceiptmaster`.`dTotalMoney` AS `dTotalMoney`,0 AS `dAdvanceMoney`,NULL AS `tAdvanceDate`,0 AS `dRealAdvanceMoney`,`cahreceiptmaster`.`sCurrency` AS `sCurrency`,`cahreceiptmaster`.`dCurrencyRate` AS `dCurrencyRate`,`cahreceiptmaster`.`sStatus` AS `sStatus`,`cahreceiptmaster`.`bInvalid` AS `bInvalid`,`cahreceiptmaster`.`sSalesId` AS `sSalesId`,NULL AS `bAdvance`,`cahreceiptmaster`.`sSettlementMode` AS `sSettlementMode`,`cahreceiptmaster`.`sMReserve1` AS `sMReserve1`,`cahreceiptmaster`.`sMReserve2` AS `sMReserve2`,`cahreceiptmaster`.`sMReserve3` AS `sMReserve3`,`cahreceiptmaster`.`sMReserve4` AS `sMReserve4`,`cahreceiptmaster`.`sMReserve5` AS `sMReserve5`,`cahreceiptmaster`.`sMReserve6` AS `sMReserve6`,`cahreceiptmaster`.`dMReserve1` AS `dMReserve1`,`cahreceiptmaster`.`dMReserve2` AS `dMReserve2`,`cahreceiptmaster`.`dMReserve3` AS `dMReserve3`,`cahreceiptmaster`.`iMReserve1` AS `iMReserve1`,`cahreceiptmaster`.`iMReserve2` AS `iMReserve2`,`cahreceiptmaster`.`iMReserve3` AS `iMReserve3`,`cahreceiptmaster`.`tMReserve1` AS `tMReserve1`,`cahreceiptmaster`.`tMReserve2` AS `tMReserve2`,`cahreceiptmaster`.`iVouchermark` AS `iVouchermark`,`cahreceiptslave`.`sId` AS `sSlaveId`,`cahreceiptslave`.`iOrder` AS `iSlaveOrder`,`cahreceiptslave`.`sProductId` AS `sProductId`,`cahreceiptslave`.`dProductQty` AS `dProductQty`,`cahreceiptslave`.`dProductPrice` AS `dProductPrice`,`cahreceiptslave`.`dProductMoney` AS `dProductMoney`,`cahreceiptslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`cahreceiptslave`.`sSrcId` AS `sSrcId`,`cahreceiptslave`.`sSrcNo` AS `sSrcNo`,`cahreceiptslave`.`dSrcMoney` AS `dSrcMoney`,`cahreceiptslave`.`sSlaveMemo` AS `sSlaveMemo`,`cahreceiptslave`.`sTaxId` AS `sTaxId`,`cahreceiptslave`.`sWebOrderNo` AS `sWebOrderNo`,`cahreceiptslave`.`sWebOrderId` AS `sWebOrderId`,`cahreceiptslave`.`sSReserve1` AS `sSReserve1`,`cahreceiptslave`.`sSReserve2` AS `sSReserve2`,`cahreceiptslave`.`sSReserve3` AS `sSReserve3`,`cahreceiptslave`.`sSReserve4` AS `sSReserve4`,`cahreceiptslave`.`sSReserve5` AS `sSReserve5`,`cahreceiptslave`.`sSReserve6` AS `sSReserve6`,`cahreceiptslave`.`dSReserve1` AS `dSReserve1`,`cahreceiptslave`.`dSReserve2` AS `dSReserve2`,`cahreceiptslave`.`dSReserve3` AS `dSReserve3`,`cahreceiptslave`.`iSReserve1` AS `iSReserve1`,`cahreceiptslave`.`iSReserve2` AS `iSReserve2`,`cahreceiptslave`.`iSReserve3` AS `iSReserve3`,`cahreceiptslave`.`tSReserve1` AS `tSReserve1`,`cahreceiptslave`.`tSReserve2` AS `tSReserve2`,`cahreceiptslave`.`dBalanceMoney` AS `dBalanceMoney`,`cahreceiptslave`.`dRoundingMoney` AS `dSlaveRoundingMoney`,`cahreceiptslave`.`dTotalMoney` AS `dSlaveTotalMoney`,`cahreceiptslave`.`bMinus` AS `bMinus`,`cahreceiptslave`.`dMinusMoney` AS `dMinusMoney`,`cahreceiptslave`.`sSrcFormId` AS `sSrcFormId`,`cahreceiptslave`.`sOrderId` AS `sOrderId`,`cahreceiptslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`cahreceiptslave`.`sOrderNo` AS `sOrderNo`,`cahreceiptslave`.`sWorkOrderId` AS `sWorkOrderId`,`cahreceiptslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`cahreceiptslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`cahreceiptslave`.`sParentId` AS `sParentId`,`cahreceiptmaster`.`dPayMoney` AS `dPayMoney`,`cahreceiptslave`.`sType` AS `sType`,0 AS `bAdvanceComplete`,`cahreceiptslave`.`iIncrement` AS `iIncrement`,`cahreceiptslave`.`sInvoiceNo` AS `sSlaveInvoiceNo`,`cahreceiptmaster`.`sSettlementId` AS `sSettlementId`,`cahreceiptmaster`.`sBankId` AS `sBankId`,`cahreceiptmaster`.`sBankAccount` AS `sBankAccount`,`cahreceiptmaster`.`tDueDate` AS `tDueDate`,`cahreceiptmaster`.`sInvoiceNo` AS `sInvoiceNo`,`cahreceiptmaster`.`dRoundingMoney` AS `dRoundingMoney`,`cahreceiptmaster`.`bPaymentComplete` AS `bPaymentComplete`,`cahreceiptslave`.`dProductMoney` AS `dProductNoTaxMoney`,0 AS `dProductTaxMoney`,0 AS `dProductTaxForeignMoney`,`cahreceiptmaster`.`dProductForeignMoney` AS `dProductForeignMoney`,`cahreceiptslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`cahreceiptslave`.`dTotalForeignMoney` AS `dTotalForeignMoney`,`cahreceiptslave`.`sSrcType` AS `sSrcType` from (`cahreceiptmaster` join `cahreceiptslave` on((`cahreceiptmaster`.`sId` = `cahreceiptslave`.`sParentId`))) union select `cahreceiptmaster`.`sId` AS `sId`,`cahreceiptmaster`.`sBrandsId` AS `sBrandsId`,`cahreceiptmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`cahreceiptmaster`.`tCreateDate` AS `tCreateDate`,`cahreceiptmaster`.`sMakePerson` AS `sMakePerson`,`cahreceiptmaster`.`iOrder` AS `iOrder`,`cahreceiptmaster`.`sFormId` AS `sFormId`,`cahreceiptmaster`.`sBillType` AS `sBillType`,`cahreceiptmaster`.`sBillNo` AS `sBillNo`,`cahreceiptmaster`.`sCustomerId` AS `sCustomerId`,`cahreceiptmaster`.`sContacts` AS `sContacts`,`cahreceiptmaster`.`sPhone` AS `sPhone`,`cahreceiptmaster`.`tProofingDate` AS `tProofingDate`,`cahreceiptmaster`.`tDeliverDate` AS `tDeliverDate`,`cahreceiptmaster`.`sSalesManId` AS `sSalesManId`,`cahreceiptmaster`.`sGetPayId` AS `sGetPayId`,`cahreceiptmaster`.`tGetPayDate` AS `tGetPayDate`,`cahreceiptmaster`.`sConsignee` AS `sConsignee`,`cahreceiptmaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`cahreceiptmaster`.`sDeliverId` AS `sDeliverId`,`cahreceiptmaster`.`sProvince` AS `sProvince`,`cahreceiptmaster`.`sCity` AS `sCity`,`cahreceiptmaster`.`sArea` AS `sArea`,`cahreceiptmaster`.`sDeliverTo` AS `sDeliverTo`,`cahreceiptmaster`.`sManualNo` AS `sManualNo`,`cahreceiptmaster`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`cahreceiptmaster`.`sMemo` AS `sMemo`,`cahreceiptmaster`.`bCheck` AS `bCheck`,`cahreceiptmaster`.`tCheckDate` AS `tCheckDate`,`cahreceiptmaster`.`sCheckPerson` AS `sCheckPerson`,`cahreceiptmaster`.`bPrint` AS `bPrint`,`cahreceiptmaster`.`bCopyLimit` AS `bCopyLimit`,`cahreceiptmaster`.`dTotalMoney` AS `dTotalMoney`,`cahreceiptmaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`cahreceiptmaster`.`tAdvanceDate` AS `tAdvanceDate`,`cahreceiptmaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`cahreceiptmaster`.`sCurrency` AS `sCurrency`,`cahreceiptmaster`.`dCurrencyRate` AS `dCurrencyRate`,`cahreceiptmaster`.`sStatus` AS `sStatus`,`cahreceiptmaster`.`bInvalid` AS `bInvalid`,`cahreceiptmaster`.`sSalesId` AS `sSalesId`,`cahreceiptmaster`.`bAdvance` AS `bAdvance`,`cahreceiptmaster`.`sSettlementMode` AS `sSettlementMode`,`cahreceiptmaster`.`sMReserve1` AS `sMReserve1`,`cahreceiptmaster`.`sMReserve2` AS `sMReserve2`,`cahreceiptmaster`.`sMReserve3` AS `sMReserve3`,`cahreceiptmaster`.`sMReserve4` AS `sMReserve4`,`cahreceiptmaster`.`sMReserve5` AS `sMReserve5`,`cahreceiptmaster`.`sMReserve6` AS `sMReserve6`,`cahreceiptmaster`.`dMReserve1` AS `dMReserve1`,`cahreceiptmaster`.`dMReserve2` AS `dMReserve2`,`cahreceiptmaster`.`dMReserve3` AS `dMReserve3`,`cahreceiptmaster`.`iMReserve1` AS `iMReserve1`,`cahreceiptmaster`.`iMReserve2` AS `iMReserve2`,`cahreceiptmaster`.`iMReserve3` AS `iMReserve3`,`cahreceiptmaster`.`tMReserve1` AS `tMReserve1`,`cahreceiptmaster`.`tMReserve2` AS `tMReserve2`,`cahreceiptmaster`.`iVouchermark` AS `iVouchermark`,`cahreceiptmaster`.`sId` AS `sSlaveId`,`cahreceiptmaster`.`iOrder` AS `iSlaveOrder`,'' AS `sProductId`,0 AS `dProductQty`,0 AS `dProductPrice`,0 AS `dProductMoney`,'' AS `sSrcSlaveId`,'' AS `sSrcId`,'' AS `sSrcNo`,0 AS `dSrcMoney`,'' AS `sSlaveMemo`,'' AS `sTaxId`,'' AS `sWebOrderNo`,'' AS `sWebOrderId`,'' AS `sSReserve1`,'' AS `sSReserve2`,'' AS `sSReserve3`,'' AS `sSReserve4`,'' AS `sSReserve5`,'' AS `sSReserve6`,NULL AS `dSReserve1`,NULL AS `dSReserve2`,NULL AS `dSReserve3`,NULL AS `iSReserve1`,NULL AS `iSReserve2`,NULL AS `iSReserve3`,NULL AS `tSReserve1`,NULL AS `tSReserve2`,0 AS `dBalanceMoney`,0 AS `dSlaveRoundingMoney`,0 AS `dSlaveTotalMoney`,0 AS `bMinus`,0 AS `dMinusMoney`,'' AS `sSrcFormId`,'' AS `sOrderId`,'' AS `sOrderSlaveId`,'' AS `sOrderNo`,'' AS `sWorkOrderId`,'' AS `sWorkOrderSlaveId`,'' AS `sWorkOrderNo`,`cahreceiptmaster`.`sId` AS `sParentId`,`cahreceiptmaster`.`dPayMoney` AS `dPayMoney`,'' AS `sType`,`cahreceiptmaster`.`bAdvanceComplete` AS `bAdvanceComplete`,NULL AS `iIncrement`,'' AS `sSlaveInvoiceNo`,`cahreceiptmaster`.`sSettlementId` AS `sSettlementId`,`cahreceiptmaster`.`sBankId` AS `sBankId`,`cahreceiptmaster`.`sBankAccount` AS `sBankAccount`,`cahreceiptmaster`.`tDueDate` AS `tDueDate`,`cahreceiptmaster`.`sInvoiceNo` AS `sInvoiceNo`,`cahreceiptmaster`.`dRoundingMoney` AS `dRoundingMoney`,`cahreceiptmaster`.`bPaymentComplete` AS `bPaymentComplete`,0 AS `dProductNoTaxMoney`,0 AS `dProductTaxMoney`,0 AS `dProductTaxForeignMoney`,`cahreceiptmaster`.`dProductForeignMoney` AS `dProductForeignMoney`,'' AS `sMaterialsStyle`,0 AS `dTotalForeignMoney`,'' AS `sSrcType` from `cahreceiptmaster` where (`cahreceiptmaster`.`bAdvance` = 1) union select `cahreceiptmaster`.`sId` AS `sId`,`cahreceiptmaster`.`sBrandsId` AS `sBrandsId`,`cahreceiptmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`cahreceiptmaster`.`tCreateDate` AS `tCreateDate`,`cahreceiptmaster`.`sMakePerson` AS `sMakePerson`,`cahreceiptmaster`.`iOrder` AS `iOrder`,`cahreceiptmaster`.`sFormId` AS `sFormId`,`cahreceiptmaster`.`sBillType` AS `sBillType`,`cahreceiptmaster`.`sBillNo` AS `sBillNo`,`cahreceiptmaster`.`sCustomerId` AS `sCustomerId`,`cahreceiptmaster`.`sContacts` AS `sContacts`,`cahreceiptmaster`.`sPhone` AS `sPhone`,`cahreceiptmaster`.`tProofingDate` AS `tProofingDate`,`cahreceiptmaster`.`tDeliverDate` AS `tDeliverDate`,`cahreceiptmaster`.`sSalesManId` AS `sSalesManId`,`cahreceiptmaster`.`sGetPayId` AS `sGetPayId`,`cahreceiptmaster`.`tGetPayDate` AS `tGetPayDate`,`cahreceiptmaster`.`sConsignee` AS `sConsignee`,`cahreceiptmaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`cahreceiptmaster`.`sDeliverId` AS `sDeliverId`,`cahreceiptmaster`.`sProvince` AS `sProvince`,`cahreceiptmaster`.`sCity` AS `sCity`,`cahreceiptmaster`.`sArea` AS `sArea`,`cahreceiptmaster`.`sDeliverTo` AS `sDeliverTo`,`cahreceiptmaster`.`sManualNo` AS `sManualNo`,`cahreceiptmaster`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`cahreceiptmaster`.`sMemo` AS `sMemo`,`cahreceiptmaster`.`bCheck` AS `bCheck`,`cahreceiptmaster`.`tCheckDate` AS `tCheckDate`,`cahreceiptmaster`.`sCheckPerson` AS `sCheckPerson`,`cahreceiptmaster`.`bPrint` AS `bPrint`,`cahreceiptmaster`.`bCopyLimit` AS `bCopyLimit`,`cahreceiptmaster`.`dTotalMoney` AS `dTotalMoney`,`cahreceiptmaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`cahreceiptmaster`.`tAdvanceDate` AS `tAdvanceDate`,`cahreceiptmaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`cahreceiptmaster`.`sCurrency` AS `sCurrency`,`cahreceiptmaster`.`dCurrencyRate` AS `dCurrencyRate`,`cahreceiptmaster`.`sStatus` AS `sStatus`,`cahreceiptmaster`.`bInvalid` AS `bInvalid`,`cahreceiptmaster`.`sSalesId` AS `sSalesId`,`cahreceiptmaster`.`bAdvance` AS `bAdvance`,`cahreceiptmaster`.`sSettlementMode` AS `sSettlementMode`,`cahreceiptmaster`.`sMReserve1` AS `sMReserve1`,`cahreceiptmaster`.`sMReserve2` AS `sMReserve2`,`cahreceiptmaster`.`sMReserve3` AS `sMReserve3`,`cahreceiptmaster`.`sMReserve4` AS `sMReserve4`,`cahreceiptmaster`.`sMReserve5` AS `sMReserve5`,`cahreceiptmaster`.`sMReserve6` AS `sMReserve6`,`cahreceiptmaster`.`dMReserve1` AS `dMReserve1`,`cahreceiptmaster`.`dMReserve2` AS `dMReserve2`,`cahreceiptmaster`.`dMReserve3` AS `dMReserve3`,`cahreceiptmaster`.`iMReserve1` AS `iMReserve1`,`cahreceiptmaster`.`iMReserve2` AS `iMReserve2`,`cahreceiptmaster`.`iMReserve3` AS `iMReserve3`,`cahreceiptmaster`.`tMReserve1` AS `tMReserve1`,`cahreceiptmaster`.`tMReserve2` AS `tMReserve2`,`cahreceiptmaster`.`iVouchermark` AS `iVouchermark`,`cahreceiptmaster`.`sId` AS `sSlaveId`,`cahreceiptmaster`.`iOrder` AS `iSlaveOrder`,'' AS `sProductId`,0 AS `dProductQty`,0 AS `dProductPrice`,0 AS `dProductMoney`,'' AS `sSrcSlaveId`,'' AS `sSrcId`,'' AS `sSrcNo`,0 AS `dSrcMoney`,'' AS `sSlaveMemo`,'' AS `sTaxId`,'' AS `sWebOrderNo`,'' AS `sWebOrderId`,'' AS `sSReserve1`,'' AS `sSReserve2`,'' AS `sSReserve3`,'' AS `sSReserve4`,'' AS `sSReserve5`,'' AS `sSReserve6`,NULL AS `dSReserve1`,NULL AS `dSReserve2`,NULL AS `dSReserve3`,NULL AS `iSReserve1`,NULL AS `iSReserve2`,NULL AS `iSReserve3`,NULL AS `tSReserve1`,NULL AS `tSReserve2`,0 AS `dBalanceMoney`,0 AS `dSlaveRoundingMoney`,0 AS `dSlaveTotalMoney`,0 AS `bMinus`,0 AS `dMinusMoney`,'' AS `sSrcFormId`,'' AS `sOrderId`,'' AS `sOrderSlaveId`,'' AS `sOrderNo`,'' AS `sWorkOrderId`,'' AS `sWorkOrderSlaveId`,'' AS `sWorkOrderNo`,`cahreceiptmaster`.`sId` AS `sParentId`,`cahreceiptmaster`.`dPayMoney` AS `dPayMoney`,'' AS `sType`,`cahreceiptmaster`.`bAdvanceComplete` AS `bAdvanceComplete`,NULL AS `iIncrement`,'' AS `sSlaveInvoiceNo`,`cahreceiptmaster`.`sSettlementId` AS `sSettlementId`,`cahreceiptmaster`.`sBankId` AS `sBankId`,`cahreceiptmaster`.`sBankAccount` AS `sBankAccount`,`cahreceiptmaster`.`tDueDate` AS `tDueDate`,`cahreceiptmaster`.`sInvoiceNo` AS `sInvoiceNo`,`cahreceiptmaster`.`dRoundingMoney` AS `dRoundingMoney`,`cahreceiptmaster`.`bPaymentComplete` AS `bPaymentComplete`,0 AS `dProductNoTaxMoney`,0 AS `dProductTaxMoney`,0 AS `dProductTaxForeignMoney`,`cahreceiptmaster`.`dProductForeignMoney` AS `dProductForeignMoney`,'' AS `sMaterialsStyle`,0 AS `dTotalForeignMoney`,'' AS `sSrcType` from `cahreceiptmaster` where ((`cahreceiptmaster`.`bAdvance` = 0) and (`cahreceiptmaster`.`sBillType` = 'supply'))
```

## Narrative

_No human-written narrative yet._
