# `viw_opsoutsideinstore` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sMinusSrcId` | `varchar(255)` | 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 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sSupplyId` | `varchar(100)` | NO |
| 11 | `sContacts` | `varchar(255)` | YES |
| 12 | `sPhone` | `varchar(255)` | YES |
| 13 | `tDeliverDate` | `datetime` | YES |
| 14 | `sPurchaseManId` | `varchar(100)` | YES |
| 15 | `sGetPayId` | `varchar(100)` | YES |
| 16 | `tGetPayDate` | `datetime` | YES |
| 17 | `sConsignee` | `varchar(255)` | YES |
| 18 | `sConsigneeMobile` | `varchar(255)` | YES |
| 19 | `sDeliverId` | `varchar(100)` | YES |
| 20 | `sProvince` | `varchar(255)` | YES |
| 21 | `sCity` | `varchar(255)` | YES |
| 22 | `sArea` | `varchar(255)` | YES |
| 23 | `sDeliverTo` | `varchar(255)` | YES |
| 24 | `sManualNo` | `varchar(255)` | YES |
| 25 | `sMemo` | `text` | YES |
| 26 | `bCheck` | `bit(1)` | NO |
| 27 | `tCheckDate` | `datetime` | YES |
| 28 | `sCheckPerson` | `varchar(255)` | YES |
| 29 | `bPrint` | `bit(1)` | NO |
| 30 | `bCopyLimit` | `bit(1)` | NO |
| 31 | `sCurrency` | `varchar(255)` | YES |
| 32 | `dCurrencyRate` | `decimal(18,6)` | YES |
| 33 | `sStatus` | `varchar(255)` | YES |
| 34 | `bInvalid` | `bit(1)` | NO |
| 35 | `sMReserve1` | `varchar(255)` | YES |
| 36 | `sMReserve2` | `varchar(255)` | YES |
| 37 | `sMReserve3` | `varchar(255)` | YES |
| 38 | `sMReserve4` | `varchar(255)` | YES |
| 39 | `sMReserve5` | `varchar(255)` | YES |
| 40 | `sMReserve6` | `varchar(255)` | YES |
| 41 | `dMReserve1` | `decimal(18,6)` | YES |
| 42 | `dMReserve2` | `decimal(18,6)` | YES |
| 43 | `dMReserve3` | `decimal(18,6)` | YES |
| 44 | `iMReserve1` | `int` | YES |
| 45 | `iMReserve2` | `int` | YES |
| 46 | `iMReserve3` | `int` | YES |
| 47 | `tMReserve1` | `datetime` | YES |
| 48 | `tMReserve2` | `datetime` | YES |
| 49 | `tCheckListDate` | `datetime` | YES |
| 50 | `sSlaveId` | `varchar(100)` | NO |
| 51 | `iSlaveOrder` | `int` | NO |
| 52 | `sCustomerId` | `varchar(100)` | NO |
| 53 | `sMaterialsId` | `varchar(100)` | NO |
| 54 | `sMaterialsStyle` | `varchar(255)` | NO |
| 55 | `dAuxiliaryQty` | `decimal(18,6)` | NO |
| 56 | `sAuxiliaryUnit` | `varchar(255)` | NO |
| 57 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 58 | `dConversionQty` | `decimal(18,6)` | NO |
| 59 | `dMaterialsPrice` | `decimal(18,6)` | NO |
| 60 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 61 | `dDeliverQty` | `decimal(18,6)` | NO |
| 62 | `sSrcSlaveId` | `varchar(100)` | NO |
| 63 | `sSrcId` | `varchar(100)` | NO |
| 64 | `sSrcNo` | `varchar(255)` | NO |
| 65 | `dSrcQty` | `decimal(18,6)` | YES |
| 66 | `sSlaveMemo` | `text` | YES |
| 67 | `sTaxId` | `varchar(100)` | YES |
| 68 | `dMaterialsNoTaxPrice` | `decimal(18,6)` | YES |
| 69 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | YES |
| 70 | `dMaterialsTaxMoney` | `decimal(18,6)` | YES |
| 71 | `dMaterialsTaxForeignMoney` | `decimal(18,6)` | YES |
| 72 | `dMaterialsForeignMoney` | `decimal(18,6)` | YES |
| 73 | `dCheckingAuxiliaryQty` | `decimal(18,6)` | NO |
| 74 | `dCheckingQty` | `decimal(18,6)` | NO |
| 75 | `dPayMoney` | `decimal(18,6)` | NO |
| 76 | `sBarcode` | `varchar(255)` | YES |
| 77 | `sOrderId` | `varchar(100)` | NO |
| 78 | `sOrderNo` | `varchar(255)` | NO |
| 79 | `sOrderSlaveId` | `varchar(100)` | NO |
| 80 | `sWorkOrderId` | `varchar(100)` | NO |
| 81 | `sWorkOrderNo` | `varchar(255)` | NO |
| 82 | `sWorkOrderSlaveId` | `varchar(100)` | NO |
| 83 | `sWorkOrderControlId` | `varchar(100)` | NO |
| 84 | `sWorkOrderProcessTbId` | `varchar(100)` | NO |
| 85 | `sWorkOrderMaterialsTbId` | `varchar(100)` | NO |
| 86 | `sWareHouseId` | `varchar(100)` | NO |
| 87 | `sLocationId` | `varchar(100)` | NO |
| 88 | `sWareHouseLocationId` | `varchar(100)` | NO |
| 89 | `sDefineNo` | `varchar(100)` | NO |
| 90 | `sDefineNo2` | `varchar(100)` | NO |
| 91 | `sSReserve1` | `varchar(255)` | YES |
| 92 | `sSReserve2` | `varchar(255)` | YES |
| 93 | `sSReserve3` | `varchar(255)` | YES |
| 94 | `sSReserve4` | `varchar(255)` | YES |
| 95 | `sSReserve5` | `varchar(255)` | YES |
| 96 | `sSReserve6` | `varchar(255)` | YES |
| 97 | `dSReserve1` | `decimal(18,6)` | YES |
| 98 | `dSReserve2` | `decimal(18,6)` | YES |
| 99 | `dSReserve3` | `decimal(18,6)` | YES |
| 100 | `iSReserve1` | `int` | YES |
| 101 | `iSReserve2` | `int` | YES |
| 102 | `iSReserve3` | `int` | YES |
| 103 | `tSReserve1` | `datetime` | YES |
| 104 | `tSReserve2` | `datetime` | YES |
| 105 | `sProductId` | `varchar(100)` | NO |
| 106 | `sProcessId` | `varchar(100)` | NO |
| 107 | `sWebOrderNo` | `varchar(255)` | NO |
| 108 | `sWebOrderId` | `varchar(100)` | NO |
| 109 | `dGiveQty` | `decimal(18,6)` | NO |
| 110 | `dPresentQty` | `decimal(18,6)` | NO |
| 111 | `bDeliverComplete` | `bit(1)` | NO |
| 112 | `bCheckingComplete` | `bit(1)` | NO |
| 113 | `iIncrement` | `int` | NO |
| 114 | `dSrcAuxiliaryQty` | `decimal(18,6)` | NO |
| 115 | `sSrcFormId` | `varchar(100)` | NO |
| 116 | `bPaymentComplete` | `bit(1)` | NO |
| 117 | `sDeliverNo` | `varchar(50)` | YES |
| 118 | `sOutType` | `varchar(4)` | NO |
| 119 | `iType` | `int` | YES |
| 120 | `bConfirmComplete` | `bit(1)` | YES |
| 121 | `tConfirmDate` | `datetime` | YES |
| 122 | `sConfirmPerson` | `varchar(255)` | YES |
| 123 | `bChild` | `bit(1)` | YES |
| 124 | `iSlaveType` | `int` | YES |
| 125 | `sTestSlaveId` | `varchar(255)` | YES |
| 126 | `bNoObject` | `bit(1)` | YES |
| 127 | `bRejectComplete` | `bit(1)` | YES |

## Definition

```sql
select `opsoutsideinstoremaster`.`sId` AS `sId`,`opsoutsideinstoremaster`.`sMinusSrcId` AS `sMinusSrcId`,`opsoutsideinstoremaster`.`sBrandsId` AS `sBrandsId`,`opsoutsideinstoremaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`opsoutsideinstoremaster`.`tCreateDate` AS `tCreateDate`,`opsoutsideinstoremaster`.`sMakePerson` AS `sMakePerson`,`opsoutsideinstoremaster`.`iOrder` AS `iOrder`,`opsoutsideinstoremaster`.`sFormId` AS `sFormId`,`opsoutsideinstoremaster`.`sBillNo` AS `sBillNo`,`opsoutsideinstoremaster`.`sSupplyId` AS `sSupplyId`,`opsoutsideinstoremaster`.`sContacts` AS `sContacts`,`opsoutsideinstoremaster`.`sPhone` AS `sPhone`,`opsoutsideinstoremaster`.`tDeliverDate` AS `tDeliverDate`,`opsoutsideinstoremaster`.`sPurchaseManId` AS `sPurchaseManId`,`opsoutsideinstoremaster`.`sGetPayId` AS `sGetPayId`,`opsoutsideinstoremaster`.`tGetPayDate` AS `tGetPayDate`,`opsoutsideinstoremaster`.`sConsignee` AS `sConsignee`,`opsoutsideinstoremaster`.`sConsigneeMobile` AS `sConsigneeMobile`,`opsoutsideinstoremaster`.`sDeliverId` AS `sDeliverId`,`opsoutsideinstoremaster`.`sProvince` AS `sProvince`,`opsoutsideinstoremaster`.`sCity` AS `sCity`,`opsoutsideinstoremaster`.`sArea` AS `sArea`,`opsoutsideinstoremaster`.`sDeliverTo` AS `sDeliverTo`,`opsoutsideinstoremaster`.`sManualNo` AS `sManualNo`,`opsoutsideinstoremaster`.`sMemo` AS `sMemo`,`opsoutsideinstoremaster`.`bCheck` AS `bCheck`,`opsoutsideinstoremaster`.`tCheckDate` AS `tCheckDate`,`opsoutsideinstoremaster`.`sCheckPerson` AS `sCheckPerson`,`opsoutsideinstoremaster`.`bPrint` AS `bPrint`,`opsoutsideinstoremaster`.`bCopyLimit` AS `bCopyLimit`,`opsoutsideinstoremaster`.`sCurrency` AS `sCurrency`,`opsoutsideinstoremaster`.`dCurrencyRate` AS `dCurrencyRate`,`opsoutsideinstoremaster`.`sStatus` AS `sStatus`,`opsoutsideinstoremaster`.`bInvalid` AS `bInvalid`,`opsoutsideinstoremaster`.`sMReserve1` AS `sMReserve1`,`opsoutsideinstoremaster`.`sMReserve2` AS `sMReserve2`,`opsoutsideinstoremaster`.`sMReserve3` AS `sMReserve3`,`opsoutsideinstoremaster`.`sMReserve4` AS `sMReserve4`,`opsoutsideinstoremaster`.`sMReserve5` AS `sMReserve5`,`opsoutsideinstoremaster`.`sMReserve6` AS `sMReserve6`,`opsoutsideinstoremaster`.`dMReserve1` AS `dMReserve1`,`opsoutsideinstoremaster`.`dMReserve2` AS `dMReserve2`,`opsoutsideinstoremaster`.`dMReserve3` AS `dMReserve3`,`opsoutsideinstoremaster`.`iMReserve1` AS `iMReserve1`,`opsoutsideinstoremaster`.`iMReserve2` AS `iMReserve2`,`opsoutsideinstoremaster`.`iMReserve3` AS `iMReserve3`,`opsoutsideinstoremaster`.`tMReserve1` AS `tMReserve1`,`opsoutsideinstoremaster`.`tMReserve2` AS `tMReserve2`,if((`opsoutsideinstoremaster`.`tCheckDate` < cast(concat(date_format(`opsoutsideinstoremaster`.`tCheckDate`,'%Y-%m-'),ifnull(`elesupply`.`iCheckDate`,25)) as datetime)),cast(concat(date_format(`opsoutsideinstoremaster`.`tCheckDate`,'%Y-%m-'),ifnull(`elesupply`.`iCheckDate`,25)) as datetime),(cast(concat(date_format(`opsoutsideinstoremaster`.`tCheckDate`,'%Y-%m-'),ifnull(`elesupply`.`iCheckDate`,25)) as datetime) + interval 1 month)) AS `tCheckListDate`,`opsoutsideinstoreslave`.`sId` AS `sSlaveId`,`opsoutsideinstoreslave`.`iOrder` AS `iSlaveOrder`,`opsoutsideinstoreslave`.`sCustomerId` AS `sCustomerId`,`opsoutsideinstoreslave`.`sMaterialsId` AS `sMaterialsId`,`opsoutsideinstoreslave`.`sMaterialsStyle` AS `sMaterialsStyle`,`opsoutsideinstoreslave`.`dAuxiliaryQty` AS `dAuxiliaryQty`,`opsoutsideinstoreslave`.`sAuxiliaryUnit` AS `sAuxiliaryUnit`,`opsoutsideinstoreslave`.`dMaterialsQty` AS `dMaterialsQty`,`opsoutsideinstoreslave`.`dConversionQty` AS `dConversionQty`,`opsoutsideinstoreslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`opsoutsideinstoreslave`.`dMaterialsMoney` AS `dMaterialsMoney`,`opsoutsideinstoreslave`.`dDeliverQty` AS `dDeliverQty`,`opsoutsideinstoreslave`.`sSrcSlaveId` AS `sSrcSlaveId`,`opsoutsideinstoreslave`.`sSrcId` AS `sSrcId`,`opsoutsideinstoreslave`.`sSrcNo` AS `sSrcNo`,`opsoutsideinstoreslave`.`dSrcQty` AS `dSrcQty`,`opsoutsideinstoreslave`.`sSlaveMemo` AS `sSlaveMemo`,`opsoutsideinstoreslave`.`sTaxId` AS `sTaxId`,`opsoutsideinstoreslave`.`dMaterialsNoTaxPrice` AS `dMaterialsNoTaxPrice`,`opsoutsideinstoreslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`opsoutsideinstoreslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`opsoutsideinstoreslave`.`dMaterialsTaxForeignMoney` AS `dMaterialsTaxForeignMoney`,`opsoutsideinstoreslave`.`dMaterialsForeignMoney` AS `dMaterialsForeignMoney`,`opsoutsideinstoreslave`.`dCheckingAuxiliaryQty` AS `dCheckingAuxiliaryQty`,`opsoutsideinstoreslave`.`dCheckingQty` AS `dCheckingQty`,`opsoutsideinstoreslave`.`dPayMoney` AS `dPayMoney`,`opsoutsideinstoreslave`.`sBarcode` AS `sBarcode`,`opsoutsideinstoreslave`.`sOrderId` AS `sOrderId`,`opsoutsideinstoreslave`.`sOrderNo` AS `sOrderNo`,`opsoutsideinstoreslave`.`sOrderSlaveId` AS `sOrderSlaveId`,`opsoutsideinstoreslave`.`sWorkOrderId` AS `sWorkOrderId`,`opsoutsideinstoreslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`opsoutsideinstoreslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`opsoutsideinstoreslave`.`sWorkOrderControlId` AS `sWorkOrderControlId`,`opsoutsideinstoreslave`.`sWorkOrderProcessTbId` AS `sWorkOrderProcessTbId`,`opsoutsideinstoreslave`.`sWorkOrderMaterialsTbId` AS `sWorkOrderMaterialsTbId`,`opsoutsideinstoreslave`.`sWareHouseId` AS `sWareHouseId`,`opsoutsideinstoreslave`.`sLocationId` AS `sLocationId`,`opsoutsideinstoreslave`.`sWareHouseLocationId` AS `sWareHouseLocationId`,`opsoutsideinstoreslave`.`sDefineNo` AS `sDefineNo`,`opsoutsideinstoreslave`.`sDefineNo2` AS `sDefineNo2`,`opsoutsideinstoreslave`.`sSReserve1` AS `sSReserve1`,`opsoutsideinstoreslave`.`sSReserve2` AS `sSReserve2`,`opsoutsideinstoreslave`.`sSReserve3` AS `sSReserve3`,`opsoutsideinstoreslave`.`sSReserve4` AS `sSReserve4`,`opsoutsideinstoreslave`.`sSReserve5` AS `sSReserve5`,`opsoutsideinstoreslave`.`sSReserve6` AS `sSReserve6`,`opsoutsideinstoreslave`.`dSReserve1` AS `dSReserve1`,`opsoutsideinstoreslave`.`dSReserve2` AS `dSReserve2`,`opsoutsideinstoreslave`.`dSReserve3` AS `dSReserve3`,`opsoutsideinstoreslave`.`iSReserve1` AS `iSReserve1`,`opsoutsideinstoreslave`.`iSReserve2` AS `iSReserve2`,`opsoutsideinstoreslave`.`iSReserve3` AS `iSReserve3`,`opsoutsideinstoreslave`.`tSReserve1` AS `tSReserve1`,`opsoutsideinstoreslave`.`tSReserve2` AS `tSReserve2`,`opsoutsideinstoreslave`.`sProductId` AS `sProductId`,`opsoutsideinstoreslave`.`sProcessId` AS `sProcessId`,`opsoutsideinstoreslave`.`sWebOrderNo` AS `sWebOrderNo`,`opsoutsideinstoreslave`.`sWebOrderId` AS `sWebOrderId`,`opsoutsideinstoreslave`.`dGiveQty` AS `dGiveQty`,`opsoutsideinstoreslave`.`dPresentQty` AS `dPresentQty`,`opsoutsideinstoreslave`.`bDeliverComplete` AS `bDeliverComplete`,`opsoutsideinstoreslave`.`bCheckingComplete` AS `bCheckingComplete`,`opsoutsideinstoreslave`.`iIncrement` AS `iIncrement`,`opsoutsideinstoreslave`.`dSrcAuxiliaryQty` AS `dSrcAuxiliaryQty`,`opsoutsideinstoreslave`.`sSrcFormId` AS `sSrcFormId`,`opsoutsideinstoreslave`.`bPaymentComplete` AS `bPaymentComplete`,`opsoutsideinstoremaster`.`sDeliverNo` AS `sDeliverNo`,(case when (`opsoutsideinstoremaster`.`sFormId` = '192116810113315235917608210') then '成品外购' else '工序发外' end) AS `sOutType`,`opsoutsideinstoremaster`.`iType` AS `iType`,`opsoutsideinstoremaster`.`bConfirmComplete` AS `bConfirmComplete`,`opsoutsideinstoremaster`.`tConfirmDate` AS `tConfirmDate`,`opsoutsideinstoremaster`.`sConfirmPerson` AS `sConfirmPerson`,`opsoutsideinstoreslave`.`bChild` AS `bChild`,`opsoutsideinstoreslave`.`iSlaveType` AS `iSlaveType`,`opsoutsideinstoreslave`.`sTestSlaveId` AS `sTestSlaveId`,`opsoutsideinstoreslave`.`bNoObject` AS `bNoObject`,`opsoutsideinstoremaster`.`bRejectComplete` AS `bRejectComplete` from ((`opsoutsideinstoremaster` join `opsoutsideinstoreslave` on((`opsoutsideinstoreslave`.`sParentId` = `opsoutsideinstoremaster`.`sId`))) join `elesupply` on((`elesupply`.`sId` = `opsoutsideinstoremaster`.`sSupplyId`)))
```

## Narrative

_No human-written narrative yet._
