# `viw_noopsoutsideinvoice` (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 | `sBillNo` | `varchar(255)` | NO |
| 9 | `sSupplyId` | `varchar(100)` | NO |
| 10 | `sContacts` | `varchar(255)` | YES |
| 11 | `sPhone` | `varchar(255)` | YES |
| 12 | `tDeliverDate` | `datetime` | YES |
| 13 | `sPurchaseManId` | `varchar(100)` | YES |
| 14 | `sGetPayId` | `varchar(100)` | YES |
| 15 | `tGetPayDate` | `datetime` | YES |
| 16 | `sConsignee` | `varchar(255)` | YES |
| 17 | `sConsigneeMobile` | `varchar(255)` | YES |
| 18 | `sDeliverId` | `varchar(100)` | YES |
| 19 | `sProvince` | `varchar(255)` | YES |
| 20 | `sCity` | `varchar(255)` | YES |
| 21 | `sArea` | `varchar(255)` | YES |
| 22 | `sDeliverTo` | `varchar(255)` | YES |
| 23 | `sManualNo` | `varchar(255)` | YES |
| 24 | `sMemo` | `mediumtext` | YES |
| 25 | `bCheck` | `decimal(1,0)` | NO |
| 26 | `tCheckDate` | `datetime` | YES |
| 27 | `sCheckPerson` | `varchar(255)` | YES |
| 28 | `bPrint` | `decimal(1,0)` | NO |
| 29 | `bCopyLimit` | `decimal(1,0)` | NO |
| 30 | `sCurrency` | `varchar(255)` | YES |
| 31 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 32 | `sStatus` | `varchar(255)` | YES |
| 33 | `bInvalid` | `bit(1)` | NO |
| 34 | `sMReserve1` | `varchar(255)` | YES |
| 35 | `sMReserve2` | `varchar(255)` | YES |
| 36 | `sMReserve3` | `varchar(255)` | YES |
| 37 | `sMReserve4` | `varchar(255)` | YES |
| 38 | `sMReserve5` | `varchar(255)` | YES |
| 39 | `sMReserve6` | `varchar(255)` | YES |
| 40 | `dMReserve1` | `decimal(18,6)` | YES |
| 41 | `dMReserve2` | `decimal(18,6)` | YES |
| 42 | `dMReserve3` | `decimal(18,6)` | YES |
| 43 | `iMReserve1` | `bigint` | YES |
| 44 | `iMReserve2` | `bigint` | YES |
| 45 | `iMReserve3` | `bigint` | YES |
| 46 | `tMReserve1` | `datetime` | YES |
| 47 | `tMReserve2` | `datetime` | YES |
| 48 | `sInvoiceNo` | `varchar(255)` | YES |
| 49 | `iVouchermark` | `bigint` | YES |
| 50 | `sSlaveId` | `varchar(100)` | NO |
| 51 | `iSlaveOrder` | `int` | NO |
| 52 | `sMaterialsId` | `varchar(100)` | NO |
| 53 | `sMaterialsStyle` | `varchar(255)` | NO |
| 54 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 55 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 56 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 57 | `dConversionQty` | `decimal(18,6)` | NO |
| 58 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 59 | `dMaterialsMoney` | `decimal(18,6)` | YES |
| 60 | `sSrcSlaveId` | `varchar(100)` | NO |
| 61 | `sSrcId` | `varchar(100)` | NO |
| 62 | `sSrcNo` | `varchar(255)` | NO |
| 63 | `dSrcQty` | `decimal(18,6)` | YES |
| 64 | `sSlaveMemo` | `mediumtext` | YES |
| 65 | `sTaxId` | `varchar(100)` | YES |
| 66 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 67 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 68 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 69 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 70 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 71 | `dInvoiceMoney` | `decimal(18,6)` | NO |
| 72 | `sBarcode` | `varchar(255)` | YES |
| 73 | `sOrderId` | `varchar(100)` | NO |
| 74 | `sOrderNo` | `varchar(255)` | NO |
| 75 | `sWorkOrderId` | `varchar(100)` | NO |
| 76 | `sWorkOrderNo` | `varchar(255)` | NO |
| 77 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 78 | `dPayMoney` | `decimal(18,6)` | NO |
| 79 | `sSReserve1` | `varchar(255)` | YES |
| 80 | `sSReserve2` | `varchar(255)` | YES |
| 81 | `sSReserve3` | `varchar(255)` | YES |
| 82 | `sSReserve4` | `varchar(255)` | YES |
| 83 | `sSReserve5` | `varchar(255)` | YES |
| 84 | `sSReserve6` | `varchar(255)` | YES |
| 85 | `dSReserve1` | `decimal(18,6)` | YES |
| 86 | `dSReserve2` | `decimal(18,6)` | YES |
| 87 | `dSReserve3` | `decimal(18,6)` | YES |
| 88 | `iSReserve1` | `bigint` | YES |
| 89 | `iSReserve2` | `bigint` | YES |
| 90 | `iSReserve3` | `bigint` | YES |
| 91 | `tSReserve1` | `datetime` | YES |
| 92 | `tSReserve2` | `datetime` | YES |
| 93 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |
| 94 | `sWorkOrderProcessTbId` | `varchar(100)` | NO |
| 95 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 96 | `sOrderSlaveId` | `varchar(100)` | NO |
| 97 | `sCustomerId` | `varchar(100)` | NO |
| 98 | `sProductId` | `varchar(100)` | NO |
| 99 | `sProcessId` | `varchar(100)` | NO |
| 100 | `sWebOrderNo` | `varchar(255)` | NO |
| 101 | `sWebOrderId` | `varchar(100)` | NO |
| 102 | `bInvoiceComplete` | `bit(1)` | NO |
| 103 | `iIncrement` | `int` | NO |
| 104 | `dSrcAuxiliaryQty` | `decimal(18,6)` | NO |
| 105 | `bPaymentComplete` | `decimal(1,0)` | NO |
| 106 | `sSrcFormId` | `varchar(100)` | NO |

## Definition

```sql
select `m`.`sId` AS `sId`,`m`.`sBrandsId` AS `sBrandsId`,`m`.`sSubsidiaryId` AS `sSubsidiaryId`,`m`.`tCreateDate` AS `tCreateDate`,`m`.`sMakePerson` AS `sMakePerson`,`m`.`iOrder` AS `iOrder`,`m`.`sFormId` AS `sFormId`,`m`.`sBillNo` AS `sBillNo`,`m`.`sSupplyId` AS `sSupplyId`,`m`.`sContacts` AS `sContacts`,`m`.`sPhone` AS `sPhone`,`m`.`tDeliverDate` AS `tDeliverDate`,`m`.`sPurchaseManId` AS `sPurchaseManId`,`m`.`sGetPayId` AS `sGetPayId`,`m`.`tGetPayDate` AS `tGetPayDate`,`m`.`sConsignee` AS `sConsignee`,`m`.`sConsigneeMobile` AS `sConsigneeMobile`,`m`.`sDeliverId` AS `sDeliverId`,`m`.`sProvince` AS `sProvince`,`m`.`sCity` AS `sCity`,`m`.`sArea` AS `sArea`,`m`.`sDeliverTo` AS `sDeliverTo`,`m`.`sManualNo` AS `sManualNo`,`m`.`sMemo` AS `sMemo`,`m`.`bCheck` AS `bCheck`,`m`.`tCheckDate` AS `tCheckDate`,`m`.`sCheckPerson` AS `sCheckPerson`,`m`.`bPrint` AS `bPrint`,`m`.`bCopyLimit` AS `bCopyLimit`,`m`.`sCurrency` AS `sCurrency`,`m`.`dCurrencyRate` AS `dCurrencyRate`,`m`.`sStatus` AS `sStatus`,`m`.`bInvalid` AS `bInvalid`,`m`.`sMReserve1` AS `sMReserve1`,`m`.`sMReserve2` AS `sMReserve2`,`m`.`sMReserve3` AS `sMReserve3`,`m`.`sMReserve4` AS `sMReserve4`,`m`.`sMReserve5` AS `sMReserve5`,`m`.`sMReserve6` AS `sMReserve6`,`m`.`dMReserve1` AS `dMReserve1`,`m`.`dMReserve2` AS `dMReserve2`,`m`.`dMReserve3` AS `dMReserve3`,`m`.`iMReserve1` AS `iMReserve1`,`m`.`iMReserve2` AS `iMReserve2`,`m`.`iMReserve3` AS `iMReserve3`,`m`.`tMReserve1` AS `tMReserve1`,`m`.`tMReserve2` AS `tMReserve2`,`m`.`sInvoiceNo` AS `sInvoiceNo`,`m`.`iVouchermark` AS `iVouchermark`,`s`.`sId` AS `sSlaveId`,`s`.`iOrder` AS `iSlaveOrder`,`s`.`sMaterialsId` AS `sMaterialsId`,`s`.`sMaterialsStyle` AS `sMaterialsStyle`,`s`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`s`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`s`.`dMaterialsQty` AS `dMaterialsQty`,`s`.`dConversionQty` AS `dConversionQty`,`s`.`dMaterialsPrice` AS `dMaterialsPrice`,`s`.`dMaterialsMoney` AS `dMaterialsMoney`,`s`.`sSrcSlaveId` AS `sSrcSlaveId`,`s`.`sSrcId` AS `sSrcId`,`s`.`sSrcNo` AS `sSrcNo`,`s`.`dSrcQty` AS `dSrcQty`,`s`.`sSlaveMemo` AS `sSlaveMemo`,`s`.`sTaxId` AS `sTaxId`,`s`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`s`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`s`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`s`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`s`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`s`.`dInvoiceMoney` AS `dInvoiceMoney`,`s`.`sBarcode` AS `sBarcode`,`s`.`sOrderId` AS `sOrderId`,`s`.`sOrderNo` AS `sOrderNo`,`s`.`sWorkOrderId` AS `sWorkOrderId`,`s`.`sWorkOrderNo` AS `sWorkOrderNo`,`s`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`s`.`dPayMoney` AS `dPayMoney`,`s`.`sSReserve1` AS `sSReserve1`,`s`.`sSReserve2` AS `sSReserve2`,`s`.`sSReserve3` AS `sSReserve3`,`s`.`sSReserve4` AS `sSReserve4`,`s`.`sSReserve5` AS `sSReserve5`,`s`.`sSReserve6` AS `sSReserve6`,`s`.`dSReserve1` AS `dSReserve1`,`s`.`dSReserve2` AS `dSReserve2`,`s`.`dSReserve3` AS `dSReserve3`,`s`.`iSReserve1` AS `iSReserve1`,`s`.`iSReserve2` AS `iSReserve2`,`s`.`iSReserve3` AS `iSReserve3`,`s`.`tSReserve1` AS `tSReserve1`,`s`.`tSReserve2` AS `tSReserve2`,`s`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`s`.`sWorkOrderProcessTbId` AS `sWorkOrderProcessTbId`,`s`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`s`.`sOrderSlaveId` AS `sOrderSlaveId`,`s`.`sCustomerId` AS `sCustomerId`,`s`.`sProductId` AS `sProductId`,`s`.`sProcessId` AS `sProcessId`,`s`.`sWebOrderNo` AS `sWebOrderNo`,`s`.`sWebOrderId` AS `sWebOrderId`,`s`.`bInvoiceComplete` AS `bInvoiceComplete`,`s`.`iIncrement` AS `iIncrement`,`s`.`dSrcAuxiliaryQty` AS `dSrcAuxiliaryQty`,`s`.`bPaymentComplete` AS `bPaymentComplete`,`s`.`sSrcFormId` AS `sSrcFormId` from (`opsoutsidecheckingmaster` `m` join `opsoutsidecheckingslave` `s` on((`s`.`sParentId` = `m`.`sId`))) where ((`m`.`bCheck` = 1) and (`s`.`dInvoiceMoney` < `s`.`dMaterialsMoney`) and (`s`.`bInvoiceComplete` = 0) and (`s`.`dMaterialsTaxMoney` <> 0)) union select `cahsupplyinit`.`sId` AS `sId`,`cahsupplyinit`.`sBrandsId` AS `sBrandsId`,`cahsupplyinit`.`sSubsidiaryId` AS `sSubsidiaryId`,`cahsupplyinit`.`tCreateDate` AS `tCreateDate`,`cahsupplyinit`.`sMakePerson` AS `sMakePerson`,`cahsupplyinit`.`iOrder` AS `iOrder`,'' AS `sFormId`,'' AS `sBillNo`,`cahsupplyinit`.`sSupplyId` AS `sSupplyId`,'' AS `sContacts`,'' AS `sPhone`,NULL AS `tDeliverDate`,'' AS `sPurchaseManId`,`cahsupplyinit`.`sGetPayId` AS `sGetPayId`,NULL AS `tGetPayDate`,'' AS `sConsignee`,'' AS `sConsigneeMobile`,'' AS `sDeliverId`,'' AS `sProvince`,'' AS `sCity`,'' AS `sArea`,'' AS `sDeliverTo`,'' AS `sManualNo`,`cahsupplyinit`.`sMemo` AS `sMemo`,0 AS `bCheck`,NULL AS `tCheckDate`,'' AS `sCheckPerson`,0 AS `bPrint`,0 AS `bCopyLimit`,'' AS `sCurrency`,0 AS `dCurrencyRate`,'' AS `sStatus`,`cahsupplyinit`.`bInvalid` AS `bInvalid`,'' AS `sMReserve1`,'' AS `sMReserve2`,'' AS `sMReserve3`,'' AS `sMReserve4`,'' AS `sMReserve5`,'' AS `sMReserve6`,0 AS `dMReserve1`,0 AS `dMReserve2`,0 AS `dMReserve3`,0 AS `iMReserve1`,0 AS `iMReserve2`,0 AS `iMReserve3`,NULL AS `tMReserve1`,NULL AS `tMReserve2`,'' AS `sInvoiceNo`,0 AS `iVouchermark`,`cahsupplyinit`.`sId` AS `sSlaveId`,`cahsupplyinit`.`iOrder` AS `iSlaveOrder`,'' AS `sMaterialsId`,'' AS `sMaterialsStyle`,0 AS `dAuxiliaryQty`,'' AS `sAuxiliaryUnit`,0 AS `dMaterialsQty`,0 AS `dConversionQty`,0 AS `dMaterialsPrice`,-(`cahsupplyinit`.`dNoInvoiceMoney`) AS `dMaterialsMoney`,'' AS `sSrcSlaveId`,'' AS `sSrcId`,'' AS `sSrcNo`,0 AS `dSrcQty`,'' AS `sSlaveMemo`,`cahsupplyinit`.`sTaxId` AS `sTaxId`,0 AS `dMaterialsNoTaxPrice`,0 AS `dMaterialsNoTaxMoney`,0 AS `dMaterialsTaxMoney`,0 AS `dMaterialsTaxForeignMoney`,0 AS `dMaterialsForeignMoney`,0 AS `dInvoiceMoney`,'' AS `sBarcode`,'' AS `sOrderId`,'' AS `sOrderNo`,'' AS `sWorkOrderId`,'' AS `sWorkOrderNo`,'' AS `sWorkOrderControlId`,`cahsupplyinit`.`dPayMoney` AS `dPayMoney`,'' AS `sSReserve1`,'' AS `sSReserve2`,'' AS `sSReserve3`,'' AS `sSReserve4`,'' AS `sSReserve5`,'' AS `sSReserve6`,0 AS `dSReserve1`,0 AS `dSReserve2`,0 AS `dSReserve3`,0 AS `iSReserve1`,0 AS `iSReserve2`,0 AS `iSReserve3`,NULL AS `tSReserve1`,NULL AS `tSReserve2`,'' AS `sWorkOrderMaterialsTbId`,'' AS `sWorkOrderProcessTbId`,'' AS `sWorkOrderSlaveId`,'' AS `sOrderSlaveId`,'' AS `sCustomerId`,'' AS `sProductId`,'' AS `sProcessId`,'' AS `sWebOrderNo`,'' AS `sWebOrderId`,`cahsupplyinit`.`bInvoiceComplete` AS `bInvoiceComplete`,`cahsupplyinit`.`iIncrement` AS `iIncrement`,0 AS `dSrcAuxiliaryQty`,`cahsupplyinit`.`bPaymentComplete` AS `bPaymentComplete`,'' AS `sSrcFormId` from `cahsupplyinit` where (((abs(`cahsupplyinit`.`dNoInvoiceMoney`) - abs(`cahsupplyinit`.`dRealNoInvoiceMoney`)) > 0) and (`cahsupplyinit`.`bInvoiceComplete` = 0)) union select `cahfinancialadjust`.`sId` AS `sId`,`cahfinancialadjust`.`sBrandsId` AS `sBrandsId`,`cahfinancialadjust`.`sSubsidiaryId` AS `sSubsidiaryId`,`cahfinancialadjust`.`tCreateDate` AS `tCreateDate`,`cahfinancialadjust`.`sMakePerson` AS `sMakePerson`,`cahfinancialadjust`.`iOrder` AS `iOrder`,`cahfinancialadjust`.`sFormId` AS `sFormId`,`cahfinancialadjust`.`sBillNo` AS `sBillNo`,'' AS `sSupplyId`,'' AS `sContacts`,'' AS `sPhone`,NULL AS `tDeliverDate`,'' AS `sPurchaseManId`,'' AS `sGetPayId`,NULL AS `tGetPayDate`,'' AS `sConsignee`,'' AS `sConsigneeMobile`,'' AS `sDeliverId`,'' AS `sProvince`,'' AS `sCity`,'' AS `sArea`,'' AS `sDeliverTo`,'' AS `sManualNo`,`cahfinancialadjust`.`sMemo` AS `sMemo`,`cahfinancialadjust`.`bCheck` AS `bCheck`,`cahfinancialadjust`.`tCheckDate` AS `tCheckDate`,`cahfinancialadjust`.`sCheckPerson` AS `sCheckPerson`,`cahfinancialadjust`.`bPrint` AS `bPrint`,`cahfinancialadjust`.`bCopyLimit` AS `bCopyLimit`,'' AS `sCurrency`,0 AS `dCurrencyRate`,`cahfinancialadjust`.`sStatus` AS `sStatus`,`cahfinancialadjust`.`bInvalid` AS `bInvalid`,`cahfinancialadjust`.`sMReserve1` AS `sMReserve1`,`cahfinancialadjust`.`sMReserve2` AS `sMReserve2`,`cahfinancialadjust`.`sMReserve3` AS `sMReserve3`,`cahfinancialadjust`.`sMReserve4` AS `sMReserve4`,`cahfinancialadjust`.`sMReserve5` AS `sMReserve5`,`cahfinancialadjust`.`sMReserve6` AS `sMReserve6`,`cahfinancialadjust`.`dMReserve1` AS `dMReserve1`,`cahfinancialadjust`.`dMReserve2` AS `dMReserve2`,`cahfinancialadjust`.`dMReserve3` AS `dMReserve3`,`cahfinancialadjust`.`iMReserve1` AS `iMReserve1`,`cahfinancialadjust`.`iMReserve2` AS `iMReserve2`,`cahfinancialadjust`.`iMReserve3` AS `iMReserve3`,`cahfinancialadjust`.`tMReserve1` AS `tMReserve1`,`cahfinancialadjust`.`tMReserve2` AS `tMReserve2`,'' AS `sInvoiceNo`,0 AS `iVouchermark`,`cahfinancialadjust`.`sId` AS `sSlaveId`,`cahfinancialadjust`.`iOrder` AS `iSlaveOrder`,'' AS `sMaterialsId`,'' AS `sMaterialsStyle`,0 AS `dAuxiliaryQty`,'' AS `sAuxiliaryUnit`,0 AS `dMaterialsQty`,0 AS `dConversionQty`,0 AS `dMaterialsPrice`,`cahfinancialadjust`.`dAdjustMoney` AS `dMaterialsMoney`,'' AS `sSrcSlaveId`,'' AS `sSrcId`,'' AS `sSrcNo`,0 AS `dSrcQty`,'' AS `sSlaveMemo`,'' AS `sTaxId`,0 AS `dMaterialsNoTaxPrice`,0 AS `dMaterialsNoTaxMoney`,0 AS `dMaterialsTaxMoney`,0 AS `dMaterialsTaxForeignMoney`,0 AS `dMaterialsForeignMoney`,`cahfinancialadjust`.`dInvoiceMoney` AS `dInvoiceMoney`,'' AS `sBarcode`,'' AS `sOrderId`,'' AS `sOrderNo`,'' AS `sWorkOrderId`,'' AS `sWorkOrderNo`,'' AS `sWorkOrderControlId`,0 AS `dPayMoney`,'' AS `sSReserve1`,'' AS `sSReserve2`,'' AS `sSReserve3`,'' AS `sSReserve4`,'' AS `sSReserve5`,'' AS `sSReserve6`,0 AS `dSReserve1`,0 AS `dSReserve2`,0 AS `dSReserve3`,0 AS `iSReserve1`,0 AS `iSReserve2`,0 AS `iSReserve3`,NULL AS `tSReserve1`,NULL AS `tSReserve2`,'' AS `sWorkOrderMaterialsTbId`,'' AS `sWorkOrderProcessTbId`,'' AS `sWorkOrderSlaveId`,'' AS `sOrderSlaveId`,'' AS `sCustomerId`,'' AS `sProductId`,'' AS `sProcessId`,'' AS `sWebOrderNo`,'' AS `sWebOrderId`,`cahfinancialadjust`.`bInvoiceComplete` AS `bInvoiceComplete`,`cahfinancialadjust`.`iIncrement` AS `iIncrement`,0 AS `dSrcAuxiliaryQty`,`cahfinancialadjust`.`bPaymentComplete` AS `bPaymentComplete`,'' AS `sSrcFormId` from `cahfinancialadjust` where (((abs(`cahfinancialadjust`.`dAdjustMoney`) - abs(`cahfinancialadjust`.`dInvoiceMoney`)) > 0) and (`cahfinancialadjust`.`bInvoiceComplete` = 0)) union select `m`.`sId` AS `sId`,`m`.`sBrandsId` AS `sBrandsId`,`m`.`sSubsidiaryId` AS `sSubsidiaryId`,`m`.`tCreateDate` AS `tCreateDate`,`m`.`sMakePerson` AS `sMakePerson`,`m`.`iOrder` AS `iOrder`,`m`.`sFormId` AS `sFormId`,`m`.`sBillNo` AS `sBillNo`,`m`.`sSupplyId` AS `sSupplyId`,`m`.`sContacts` AS `sContacts`,`m`.`sPhone` AS `sPhone`,`m`.`tDeliverDate` AS `tDeliverDate`,`m`.`sPurchaseManId` AS `sPurchaseManId`,`m`.`sGetPayId` AS `sGetPayId`,`m`.`tGetPayDate` AS `tGetPayDate`,`m`.`sConsignee` AS `sConsignee`,`m`.`sConsigneeMobile` AS `sConsigneeMobile`,`m`.`sDeliverId` AS `sDeliverId`,`m`.`sProvince` AS `sProvince`,`m`.`sCity` AS `sCity`,`m`.`sArea` AS `sArea`,`m`.`sDeliverTo` AS `sDeliverTo`,`m`.`sManualNo` AS `sManualNo`,`m`.`sMemo` AS `sMemo`,`m`.`bCheck` AS `bCheck`,`m`.`tCheckDate` AS `tCheckDate`,`m`.`sCheckPerson` AS `sCheckPerson`,`m`.`bPrint` AS `bPrint`,`m`.`bCopyLimit` AS `bCopyLimit`,`m`.`sCurrency` AS `sCurrency`,`m`.`dCurrencyRate` AS `dCurrencyRate`,`m`.`sStatus` AS `sStatus`,`m`.`bInvalid` AS `bInvalid`,`m`.`sMReserve1` AS `sMReserve1`,`m`.`sMReserve2` AS `sMReserve2`,`m`.`sMReserve3` AS `sMReserve3`,`m`.`sMReserve4` AS `sMReserve4`,`m`.`sMReserve5` AS `sMReserve5`,`m`.`sMReserve6` AS `sMReserve6`,`m`.`dMReserve1` AS `dMReserve1`,`m`.`dMReserve2` AS `dMReserve2`,`m`.`dMReserve3` AS `dMReserve3`,`m`.`iMReserve1` AS `iMReserve1`,`m`.`iMReserve2` AS `iMReserve2`,`m`.`iMReserve3` AS `iMReserve3`,`m`.`tMReserve1` AS `tMReserve1`,`m`.`tMReserve2` AS `tMReserve2`,`m`.`sInvoiceNo` AS `sInvoiceNo`,`m`.`iVouchermark` AS `iVouchermark`,`m`.`sId` AS `sSlaveId`,`m`.`iOrder` AS `iSlaveOrder`,'' AS `sMaterialsId`,'' AS `sMaterialsStyle`,0 AS `dAuxiliaryQty`,'' AS `sAuxiliaryUnit`,0 AS `dMaterialsQty`,0 AS `dConversionQty`,0 AS `dMaterialsPrice`,-(`m`.`dAdvanceMoney`) AS `dMaterialsMoney`,'' AS `sSrcSlaveId`,'' AS `sSrcId`,'' AS `sSrcNo`,0 AS `dSrcQty`,'' AS `sSlaveMemo`,'' AS `sTaxId`,0 AS `dMaterialsNoTaxPrice`,0 AS `dMaterialsNoTaxMoney`,0 AS `dMaterialsTaxMoney`,0 AS `dMaterialsTaxForeignMoney`,0 AS `dMaterialsForeignMoney`,ifnull(`m`.`dRealAdvanceMoney`,0) AS `dInvoiceMoney`,'' AS `sBarcode`,'' AS `sOrderId`,'' AS `sOrderNo`,'' AS `sWorkOrderId`,'' AS `sWorkOrderNo`,'' AS `sWorkOrderControlId`,0 AS `dPayMoney`,'' AS `sSReserve1`,'' AS `sSReserve2`,'' AS `sSReserve3`,'' AS `sSReserve4`,'' AS `sSReserve5`,'' AS `sSReserve6`,0 AS `dSReserve1`,0 AS `dSReserve2`,0 AS `dSReserve3`,0 AS `iSReserve1`,0 AS `iSReserve2`,0 AS `iSReserve3`,NULL AS `tSReserve1`,NULL AS `tSReserve2`,'' AS `sWorkOrderMaterialsTbId`,'' AS `sWorkOrderProcessTbId`,'' AS `sWorkOrderSlaveId`,'' AS `sOrderSlaveId`,'' AS `sCustomerId`,'' AS `sProductId`,'' AS `sProcessId`,'' AS `sWebOrderNo`,'' AS `sWebOrderId`,`m`.`bInvoiceComplete` AS `bInvoiceComplete`,`m`.`iIncrement` AS `iIncrement`,0 AS `dSrcAuxiliaryQty`,0 AS `bPaymentComplete`,'' AS `sSrcFormId` from `opsoutsideinvoicemaster` `m` where (((abs(`m`.`dAdvanceMoney`) - abs(ifnull(`m`.`dRealAdvanceMoney`,0))) > 0) and (`m`.`bInvoiceComplete` = 0) and (`m`.`bCheck` = 1))
```

## Narrative

_No human-written narrative yet._
