# `viw_salsalesinvoice` (view)


- **Updatable:** NO

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 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 | `sType` | `varchar(255)` | YES |
| 10 | `sBillNo` | `varchar(255)` | NO |
| 11 | `sCustomerId` | `varchar(100)` | NO |
| 12 | `sContacts` | `varchar(255)` | YES |
| 13 | `sPhone` | `varchar(255)` | 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)` | NO |
| 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 | `sMemo` | `text` | YES |
| 27 | `bCheck` | `bit(1)` | NO |
| 28 | `tCheckDate` | `datetime` | YES |
| 29 | `sCheckPerson` | `varchar(255)` | YES |
| 30 | `bPrint` | `bit(1)` | NO |
| 31 | `bCopyLimit` | `bit(1)` | NO |
| 32 | `bAdvance` | `bit(1)` | NO |
| 33 | `sAdvanceBillId` | `varchar(100)` | YES |
| 34 | `dTotalMoney` | `decimal(18,6)` | YES |
| 35 | `dRoundingMoney` | `decimal(18,6)` | NO |
| 36 | `dAdvanceMoney` | `decimal(18,6)` | NO |
| 37 | `tAdvanceDate` | `datetime` | YES |
| 38 | `dRealAdvanceMoney` | `decimal(18,6)` | NO |
| 39 | `sCurrency` | `varchar(255)` | YES |
| 40 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 41 | `sInvoiceNo` | `varchar(255)` | YES |
| 42 | `sMinusNo` | `varchar(255)` | YES |
| 43 | `sStatus` | `varchar(255)` | YES |
| 44 | `bInvalid` | `bit(1)` | NO |
| 45 | `sMReserve1` | `varchar(255)` | YES |
| 46 | `sMReserve2` | `varchar(255)` | YES |
| 47 | `sMReserve3` | `varchar(255)` | YES |
| 48 | `sMReserve4` | `varchar(255)` | YES |
| 49 | `sMReserve5` | `varchar(255)` | YES |
| 50 | `sMReserve6` | `varchar(255)` | YES |
| 51 | `dMReserve1` | `decimal(18,6)` | YES |
| 52 | `dMReserve2` | `decimal(18,6)` | YES |
| 53 | `dMReserve3` | `decimal(18,6)` | YES |
| 54 | `iMReserve1` | `int` | YES |
| 55 | `iMReserve2` | `int` | YES |
| 56 | `iMReserve3` | `int` | YES |
| 57 | `tMReserve1` | `datetime` | YES |
| 58 | `tMReserve2` | `datetime` | YES |
| 59 | `sAccountNo` | `varchar(255)` | NO |
| 60 | `iSlaveOrder` | `int` | YES |
| 61 | `sProductId` | `varchar(100)` | YES |
| 62 | `dProductQty` | `decimal(18,6)` | YES |
| 63 | `dProductPrice` | `decimal(18,6)` | YES |
| 64 | `dProductMoney` | `decimal(18,6)` | YES |
| 65 | `sSrcSlaveId` | `varchar(100)` | YES |
| 66 | `sSrcId` | `varchar(100)` | YES |
| 67 | `sSrcNo` | `varchar(255)` | YES |
| 68 | `dSrcQty` | `decimal(18,6)` | YES |
| 69 | `sSlaveMemo` | `text` | YES |
| 70 | `sTaxId` | `varchar(100)` | YES |
| 71 | `dProductNoTaxPrice` | `decimal(18,6)` | YES |
| 72 | `dProductNoTaxMoney` | `decimal(18,6)` | YES |
| 73 | `dProductTaxMoney` | `decimal(18,6)` | YES |
| 74 | `dProductTaxForeignMoney` | `decimal(18,6)` | YES |
| 75 | `dProductForeignMoney` | `decimal(18,6)` | YES |
| 76 | `dReceiptMoney` | `decimal(18,6)` | YES |
| 77 | `sWebOrderNo` | `varchar(255)` | YES |
| 78 | `sWebOrderId` | `varchar(100)` | YES |
| 79 | `sOrderId` | `varchar(100)` | YES |
| 80 | `sOrderSlaveId` | `varchar(100)` | YES |
| 81 | `sOrderNo` | `varchar(255)` | YES |
| 82 | `sWorkOrderId` | `varchar(100)` | YES |
| 83 | `sWorkOrderNo` | `varchar(255)` | YES |
| 84 | `sWorkOrderSlaveId` | `varchar(100)` | YES |
| 85 | `sCustomerOrderNo` | `varchar(255)` | YES |
| 86 | `bMinus` | `bit(1)` | YES |
| 87 | `dMinusMoney` | `decimal(18,6)` | YES |
| 88 | `sBarcode` | `varchar(255)` | YES |
| 89 | `sSReserve1` | `varchar(255)` | YES |
| 90 | `sSReserve2` | `varchar(255)` | YES |
| 91 | `sSReserve3` | `varchar(255)` | YES |
| 92 | `sSReserve4` | `varchar(255)` | YES |
| 93 | `sSReserve5` | `varchar(255)` | YES |
| 94 | `sSReserve6` | `varchar(255)` | YES |
| 95 | `dSReserve1` | `decimal(18,6)` | YES |
| 96 | `dSReserve2` | `decimal(18,6)` | YES |
| 97 | `dSReserve3` | `decimal(18,6)` | YES |
| 98 | `iSReserve1` | `int` | YES |
| 99 | `iSReserve2` | `int` | YES |
| 100 | `iSReserve3` | `int` | YES |
| 101 | `tSReserve1` | `datetime` | YES |
| 102 | `tSReserve2` | `datetime` | YES |
| 103 | `dBalanceMoney` | `decimal(18,6)` | YES |
| 104 | `sSlaveId` | `varchar(100)` | YES |
| 105 | `dSlaveRoundingMoney` | `decimal(18,6)` | YES |
| 106 | `dSlaveTotalMoney` | `decimal(18,6)` | YES |
| 107 | `bReceiptComplete` | `bit(1)` | YES |
| 108 | `sMaterialsStyle` | `varchar(100)` | YES |
| 109 | `dProductForeignPrice` | `decimal(18,6)` | YES |
| 110 | `sSrcType` | `varchar(255)` | YES |
| 111 | `bSubCheck` | `bit(1)` | YES |
| 112 | `tSubCheckDate` | `datetime` | YES |
| 113 | `sSubCheckPerson` | `varchar(255)` | YES |
| 114 | `dReceiptRoundMoney` | `decimal(18,6)` | YES |
| 115 | `dCostPrice` | `decimal(24,13)` | YES |
| 116 | `dCostMoney` | `decimal(18,6)` | YES |
| 117 | `sVoucherBillId` | `varchar(255)` | NO |
| 118 | `sVoucherBillNo` | `varchar(255)` | NO |
| 119 | `sDeliverGoodsId` | `varchar(255)` | YES |
| 120 | `sDeliverGoodsSlaveId` | `varchar(255)` | YES |
| 121 | `sDeliverGoodsNo` | `varchar(255)` | YES |
| 122 | `dGiveQty` | `decimal(18,2)` | YES |
| 123 | `tInvoiceDate` | `datetime` | YES |
| 124 | `sDeliverNotifySlaveId` | `varchar(100)` | YES |
| 125 | `sDeliverNotifyNo` | `varchar(255)` | YES |
| 126 | `sDeliverNotifyId` | `varchar(100)` | YES |
| 127 | `dRemainderQty` | `decimal(18,2)` | YES |
| 128 | `dRoundingTaxMoney` | `decimal(18,2)` | YES |
| 129 | `dMasterProductNoTaxMoney` | `decimal(18,2)` | YES |
| 130 | `dMasterProductTaxMoney` | `decimal(18,2)` | YES |
| 131 | `dMasterProductForeignMoney` | `decimal(18,6)` | YES |
| 132 | `sBussinessType` | `varchar(255)` | NO |
| 133 | `sMinusSrcId` | `varchar(100)` | NO |
| 134 | `sBillType` | `varchar(100)` | YES |
| 135 | `sRoundingReason` | `varchar(255)` | YES |
| 136 | `dReceiptForeignMoney` | `decimal(18,6)` | YES |
| 137 | `dReceiptRoundForeignMoney` | `decimal(18,6)` | YES |
| 138 | `dCostQty` | `decimal(18,2)` | YES |

## Definition

```sql
select `salsalesinvoicemaster`.`iIncrement` AS `iIncrement`,`salsalesinvoicemaster`.`sId` AS `sId`,`salsalesinvoicemaster`.`sBrandsId` AS `sBrandsId`,`salsalesinvoicemaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`salsalesinvoicemaster`.`tCreateDate` AS `tCreateDate`,`salsalesinvoicemaster`.`sMakePerson` AS `sMakePerson`,`salsalesinvoicemaster`.`iOrder` AS `iOrder`,`salsalesinvoicemaster`.`sFormId` AS `sFormId`,`salsalesinvoicemaster`.`sType` AS `sType`,`salsalesinvoicemaster`.`sBillNo` AS `sBillNo`,`salsalesinvoicemaster`.`sCustomerId` AS `sCustomerId`,`salsalesinvoicemaster`.`sContacts` AS `sContacts`,`salsalesinvoicemaster`.`sPhone` AS `sPhone`,`salsalesinvoicemaster`.`tDeliverDate` AS `tDeliverDate`,`salsalesinvoicemaster`.`sSalesManId` AS `sSalesManId`,`salsalesinvoicemaster`.`sGetPayId` AS `sGetPayId`,`salsalesinvoicemaster`.`tGetPayDate` AS `tGetPayDate`,`salsalesinvoicemaster`.`sConsignee` AS `sConsignee`,`salsalesinvoicemaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`salsalesinvoicemaster`.`sDeliverId` AS `sDeliverId`,`salsalesinvoicemaster`.`sProvince` AS `sProvince`,`salsalesinvoicemaster`.`sCity` AS `sCity`,`salsalesinvoicemaster`.`sArea` AS `sArea`,`salsalesinvoicemaster`.`sDeliverTo` AS `sDeliverTo`,`salsalesinvoicemaster`.`sManualNo` AS `sManualNo`,`salsalesinvoicemaster`.`sMemo` AS `sMemo`,`salsalesinvoicemaster`.`bCheck` AS `bCheck`,`salsalesinvoicemaster`.`tCheckDate` AS `tCheckDate`,`salsalesinvoicemaster`.`sCheckPerson` AS `sCheckPerson`,`salsalesinvoicemaster`.`bPrint` AS `bPrint`,`salsalesinvoicemaster`.`bCopyLimit` AS `bCopyLimit`,`salsalesinvoicemaster`.`bAdvance` AS `bAdvance`,`salsalesinvoicemaster`.`sAdvanceBillId` AS `sAdvanceBillId`,`salsalesinvoicemaster`.`dTotalMoney` AS `dTotalMoney`,`salsalesinvoicemaster`.`dRoundingMoney` AS `dRoundingMoney`,`salsalesinvoicemaster`.`dAdvanceMoney` AS `dAdvanceMoney`,`salsalesinvoicemaster`.`tAdvanceDate` AS `tAdvanceDate`,`salsalesinvoicemaster`.`dRealAdvanceMoney` AS `dRealAdvanceMoney`,`salsalesinvoicemaster`.`sCurrency` AS `sCurrency`,`salsalesinvoicemaster`.`dCurrencyRate` AS `dCurrencyRate`,`salsalesinvoicemaster`.`sInvoiceNo` AS `sInvoiceNo`,`salsalesinvoicemaster`.`sMinusNo` AS `sMinusNo`,`salsalesinvoicemaster`.`sStatus` AS `sStatus`,`salsalesinvoicemaster`.`bInvalid` AS `bInvalid`,`salsalesinvoicemaster`.`sMReserve1` AS `sMReserve1`,`salsalesinvoicemaster`.`sMReserve2` AS `sMReserve2`,`salsalesinvoicemaster`.`sMReserve3` AS `sMReserve3`,`salsalesinvoicemaster`.`sMReserve4` AS `sMReserve4`,`salsalesinvoicemaster`.`sMReserve5` AS `sMReserve5`,`salsalesinvoicemaster`.`sMReserve6` AS `sMReserve6`,`salsalesinvoicemaster`.`dMReserve1` AS `dMReserve1`,`salsalesinvoicemaster`.`dMReserve2` AS `dMReserve2`,`salsalesinvoicemaster`.`dMReserve3` AS `dMReserve3`,`salsalesinvoicemaster`.`iMReserve1` AS `iMReserve1`,`salsalesinvoicemaster`.`iMReserve2` AS `iMReserve2`,`salsalesinvoicemaster`.`iMReserve3` AS `iMReserve3`,`salsalesinvoicemaster`.`tMReserve1` AS `tMReserve1`,`salsalesinvoicemaster`.`tMReserve2` AS `tMReserve2`,`salsalesinvoicemaster`.`sAccountNo` AS `sAccountNo`,`salsalesinvoiceslave`.`iOrder` AS `iSlaveOrder`,`salsalesinvoiceslave`.`sProductId` AS `sProductId`,`salsalesinvoiceslave`.`dProductQty` AS `dProductQty`,`salsalesinvoiceslave`.`dProductPrice` AS `dProductPrice`,`salsalesinvoiceslave`.`dProductMoney` AS `dProductMoney`,`salsalesinvoiceslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`salsalesinvoiceslave`.`sSrcId` AS `sSrcId`,`salsalesinvoiceslave`.`sSrcNo` AS `sSrcNo`,`salsalesinvoiceslave`.`dSrcQty` AS `dSrcQty`,`salsalesinvoiceslave`.`sSlaveMemo` AS `sSlaveMemo`,`salsalesinvoiceslave`.`sTaxId` AS `sTaxId`,`salsalesinvoiceslave`.`dProductNoTaxPrice` AS `dProductNoTaxPrice`,`salsalesinvoiceslave`.`dProductNoTaxMoney` AS `dProductNoTaxMoney`,`salsalesinvoiceslave`.`dProductTaxMoney` AS `dProductTaxMoney`,`salsalesinvoiceslave`.`dProductTaxForeignMoney` AS `dProductTaxForeignMoney`,`salsalesinvoiceslave`.`dProductForeignMoney` AS `dProductForeignMoney`,`salsalesinvoiceslave`.`dReceiptMoney` AS `dReceiptMoney`,`salsalesinvoiceslave`.`sWebOrderNo` AS `sWebOrderNo`,`salsalesinvoiceslave`.`sWebOrderId` AS `sWebOrderId`,`salsalesinvoiceslave`.`sOrderId` AS `sOrderId`,`salsalesinvoiceslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`salsalesinvoiceslave`.`sOrderNo` AS `sOrderNo`,`salsalesinvoiceslave`.`sWorkOrderId` AS `sWorkOrderId`,`salsalesinvoiceslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`salsalesinvoiceslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`salsalesinvoiceslave`.`sCustomerOrderNo` AS `sCustomerOrderNo`,`salsalesinvoiceslave`.`bMinus` AS `bMinus`,`salsalesinvoiceslave`.`dMinusMoney` AS `dMinusMoney`,`salsalesinvoiceslave`.`sBarcode` AS `sBarcode`,`salsalesinvoiceslave`.`sSReserve1` AS `sSReserve1`,`salsalesinvoiceslave`.`sSReserve2` AS `sSReserve2`,`salsalesinvoiceslave`.`sSReserve3` AS `sSReserve3`,`salsalesinvoiceslave`.`sSReserve4` AS `sSReserve4`,`salsalesinvoiceslave`.`sSReserve5` AS `sSReserve5`,`salsalesinvoiceslave`.`sSReserve6` AS `sSReserve6`,`salsalesinvoiceslave`.`dSReserve1` AS `dSReserve1`,`salsalesinvoiceslave`.`dSReserve2` AS `dSReserve2`,`salsalesinvoiceslave`.`dSReserve3` AS `dSReserve3`,`salsalesinvoiceslave`.`iSReserve1` AS `iSReserve1`,`salsalesinvoiceslave`.`iSReserve2` AS `iSReserve2`,`salsalesinvoiceslave`.`iSReserve3` AS `iSReserve3`,`salsalesinvoiceslave`.`tSReserve1` AS `tSReserve1`,`salsalesinvoiceslave`.`tSReserve2` AS `tSReserve2`,`salsalesinvoiceslave`.`dBalanceMoney` AS `dBalanceMoney`,`salsalesinvoiceslave`.`sId` AS `sSlaveId`,`salsalesinvoiceslave`.`dRoundingMoney` AS `dSlaveRoundingMoney`,`salsalesinvoiceslave`.`dTotalMoney` AS `dSlaveTotalMoney`,`salsalesinvoiceslave`.`bReceiptComplete` AS `bReceiptComplete`,`salsalesinvoiceslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`salsalesinvoiceslave`.`dProductForeignPrice` AS `dProductForeignPrice`,`salsalesinvoiceslave`.`sSrcType` AS `sSrcType`,`salsalesinvoicemaster`.`bSubCheck` AS `bSubCheck`,`salsalesinvoicemaster`.`tSubCheckDate` AS `tSubCheckDate`,`salsalesinvoicemaster`.`sSubCheckPerson` AS `sSubCheckPerson`,`salsalesinvoiceslave`.`dReceiptRoundMoney` AS `dReceiptRoundMoney`,`salsalesinvoiceslave`.`dCostPrice` AS `dCostPrice`,`salsalesinvoiceslave`.`dCostMoney` AS `dCostMoney`,`salsalesinvoicemaster`.`sVoucherBillId` AS `sVoucherBillId`,`salsalesinvoicemaster`.`sVoucherBillNo` AS `sVoucherBillNo`,`salsalesinvoiceslave`.`sDeliverGoodsId` AS `sDeliverGoodsId`,`salsalesinvoiceslave`.`sDeliverGoodsSlaveId` AS `sDeliverGoodsSlaveId`,`salsalesinvoiceslave`.`sDeliverGoodsNo` AS `sDeliverGoodsNo`,`salsalesinvoiceslave`.`dGiveQty` AS `dGiveQty`,`salsalesinvoicemaster`.`tInvoiceDate` AS `tInvoiceDate`,`salsalesinvoiceslave`.`sDeliverNotifySlaveId` AS `sDeliverNotifySlaveId`,`salsalesinvoiceslave`.`sDeliverNotifyNo` AS `sDeliverNotifyNo`,`salsalesinvoiceslave`.`sDeliverNotifyId` AS `sDeliverNotifyId`,`salsalesinvoiceslave`.`dRemainderQty` AS `dRemainderQty`,`salsalesinvoicemaster`.`dRoundingTaxMoney` AS `dRoundingTaxMoney`,`salsalesinvoicemaster`.`dProductNoTaxMoney` AS `dMasterProductNoTaxMoney`,`salsalesinvoicemaster`.`dProductTaxMoney` AS `dMasterProductTaxMoney`,`salsalesinvoicemaster`.`dProductForeignMoney` AS `dMasterProductForeignMoney`,`salsalesinvoicemaster`.`sBussinessType` AS `sBussinessType`,`salsalesinvoicemaster`.`sMinusSrcId` AS `sMinusSrcId`,`salsalesinvoiceslave`.`sBillType` AS `sBillType`,`salsalesinvoiceslave`.`sRoundingReason` AS `sRoundingReason`,`salsalesinvoiceslave`.`dReceiptForeignMoney` AS `dReceiptForeignMoney`,`salsalesinvoiceslave`.`dReceiptRoundForeignMoney` AS `dReceiptRoundForeignMoney`,`salsalesinvoiceslave`.`dCostQty` AS `dCostQty` from (`salsalesinvoicemaster` left join `salsalesinvoiceslave` on((`salsalesinvoicemaster`.`sId` = `salsalesinvoiceslave`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
