# `viw_ai_customercomplaint` (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 | `tUpdateDate` | `datetime` | NO |
| 7 | `sMakePerson` | `varchar(255)` | NO |
| 8 | `iOrder` | `int` | NO |
| 9 | `sFormId` | `varchar(100)` | NO |
| 10 | `sBillNo` | `varchar(255)` | NO |
| 11 | `sCustomerNo` | `varchar(255)` | NO |
| 12 | `sCustomerName` | `varchar(255)` | NO |
| 13 | `dRewardPunishmentMoney` | `decimal(18,6)` | YES |
| 14 | `sReporter` | `varchar(255)` | YES |
| 15 | `tReportDate` | `datetime` | YES |
| 16 | `sResponsibleSupplyId` | `varchar(100)` | YES |
| 17 | `dProductQty` | `decimal(18,6)` | YES |
| 18 | `dProductTestQty` | `decimal(18,6)` | YES |
| 19 | `dMajorDefectQty` | `decimal(18,6)` | YES |
| 20 | `dReplenishmentQty` | `decimal(18,6)` | YES |
| 21 | `sAccidentMemo` | `text` | YES |
| 22 | `sReasonAnalyse` | `text` | YES |
| 23 | `sReason` | `varchar(255)` | YES |
| 24 | `sType` | `varchar(255)` | YES |
| 25 | `sSrctype` | `varchar(100)` | NO |
| 26 | `bFile` | `varchar(255)` | YES |
| 27 | `sMemo` | `text` | YES |
| 28 | `dLoseMoney` | `decimal(18,6)` | YES |
| 29 | `sResponsiblePerson` | `varchar(255)` | YES |
| 30 | `bCheck` | `bit(1)` | NO |
| 31 | `tCheckDate` | `datetime` | YES |
| 32 | `sCheckPerson` | `varchar(255)` | YES |
| 33 | `bPrint` | `bit(1)` | NO |
| 34 | `bCopyLimit` | `bit(1)` | NO |
| 35 | `sStatus` | `varchar(255)` | YES |
| 36 | `sMachineId` | `varchar(100)` | NO |
| 37 | `bInvalid` | `bit(1)` | NO |
| 38 | `sMReserve1` | `varchar(255)` | YES |
| 39 | `sMReserve2` | `varchar(255)` | YES |
| 40 | `sMReserve3` | `varchar(255)` | YES |
| 41 | `sMReserve4` | `varchar(255)` | YES |
| 42 | `sMReserve5` | `varchar(255)` | YES |
| 43 | `sMReserve6` | `varchar(255)` | YES |
| 44 | `sMReserve7` | `varchar(255)` | YES |
| 45 | `dMReserve1` | `decimal(18,6)` | YES |
| 46 | `dMReserve2` | `decimal(18,6)` | YES |
| 47 | `dMReserve3` | `decimal(18,6)` | YES |
| 48 | `iMReserve1` | `int` | YES |
| 49 | `iMReserve2` | `int` | YES |
| 50 | `iMReserve3` | `int` | YES |
| 51 | `tMReserve1` | `datetime` | YES |
| 52 | `tMReserve2` | `datetime` | YES |
| 53 | `sSrcNo` | `varchar(100)` | YES |
| 54 | `bPendingComplete` | `bit(1)` | NO |
| 55 | `sSlaveId` | `varchar(100)` | NO |
| 56 | `iSlaveOrder` | `int` | NO |
| 57 | `sParentId` | `varchar(100)` | NO |
| 58 | `sProcessId` | `varchar(100)` | NO |
| 59 | `sMaterialsId` | `varchar(100)` | NO |
| 60 | `sSlaveResponsibleSupplyId` | `varchar(100)` | NO |
| 61 | `sResponsiblePersonId` | `varchar(100)` | NO |
| 62 | `dResponsibleMoney` | `decimal(18,6)` | NO |
| 63 | `sSlaveSReserve1` | `varchar(255)` | YES |
| 64 | `sSlaveSReserve2` | `varchar(255)` | YES |
| 65 | `sSlaveSReserve3` | `varchar(255)` | YES |
| 66 | `sSlaveSReserve4` | `varchar(255)` | YES |
| 67 | `sSlaveSReserve5` | `varchar(255)` | YES |
| 68 | `sSlaveSReserve6` | `varchar(255)` | YES |
| 69 | `dSlaveSReserve1` | `decimal(18,6)` | YES |
| 70 | `dSlaveSReserve2` | `decimal(18,6)` | YES |
| 71 | `dSlaveSReserve3` | `decimal(18,6)` | YES |
| 72 | `iSlaveSReserve1` | `int` | YES |
| 73 | `iSlaveSReserve2` | `int` | YES |
| 74 | `iSlaveSReserve3` | `int` | YES |
| 75 | `tSlaveSReserve1` | `datetime` | YES |
| 76 | `tSlaveSReserve2` | `datetime` | YES |
| 77 | `sSlaveMakePerson` | `varchar(255)` | NO |
| 78 | `sSlaveMachineId` | `varchar(100)` | NO |
| 79 | `sTeamId` | `varchar(100)` | NO |
| 80 | `sSlaveSrcId` | `varchar(100)` | NO |
| 81 | `sSlaveSrcSlaveId` | `varchar(100)` | NO |
| 82 | `sSlaveSrcNo` | `varchar(100)` | NO |
| 83 | `sDefineNo` | `varchar(100)` | NO |
| 84 | `sDefineNo2` | `varchar(100)` | NO |
| 85 | `sSlaveMemo` | `text` | YES |
| 86 | `bReplenishment` | `bit(1)` | NO |
| 87 | `dSlaveReplenishmentQty` | `decimal(18,6)` | NO |
| 88 | `bReplenishmentComplete` | `bit(1)` | NO |
| 89 | `sProductNo` | `varchar(50)` | YES |
| 90 | `sProductName` | `varchar(100)` | YES |
| 91 | `sProductStyle` | `varchar(50)` | YES |
| 92 | `sProductUnit` | `varchar(50)` | YES |
| 93 | `sProductSortName` | `varchar(100)` | YES |
| 94 | `sPicturePath` | `varchar(100)` | NO |
| 95 | `sFileName` | `varchar(100)` | NO |
| 96 | `sSlaveReasonAnalyse` | `varchar(255)` | NO |
| 97 | `sSlaveAccidentMemo` | `varchar(255)` | NO |
| 98 | `sRectificationMemo` | `varchar(255)` | NO |
| 99 | `sValidationMemo` | `varchar(255)` | NO |
| 100 | `sSlaveWorkOrderId` | `varchar(100)` | YES |
| 101 | `sWorkOrderNo` | `varchar(100)` | YES |
| 102 | `tDeliverDate` | `datetime` | YES |
| 103 | `sDeptId` | `varchar(100)` | YES |
| 104 | `dExamineMoney1` | `decimal(18,2)` | NO |
| 105 | `sOrderNo` | `varchar(100)` | NO |
| 106 | `sReprint` | `varchar(100)` | YES |
| 107 | `bDeductionCustomer` | `bit(1)` | YES |
| 108 | `sCheckMemo` | `varchar(4000)` | YES |
| 109 | `sJzMemo` | `varchar(1000)` | YES |
| 110 | `bDeductionSupply` | `bit(1)` | YES |
| 111 | `bDeductionMaterials` | `bit(1)` | YES |
| 112 | `sOrderId` | `varchar(100)` | YES |
| 113 | `sOrderSlaveId` | `varchar(100)` | YES |
| 114 | `sWorkOrderSlaveId` | `varchar(100)` | YES |
| 115 | `sDeptName` | `varchar(255)` | YES |
| 116 | `bEvaluate` | `bit(1)` | YES |
| 117 | `iReason` | `int` | YES |
| 118 | `bComplainComplete` | `bit(1)` | YES |
| 119 | `sOrderId1` | `varchar(255)` | YES |
| 120 | `sOrderSlaveId1` | `varchar(255)` | YES |
| 121 | `sOrderNo1` | `varchar(255)` | YES |
| 122 | `sWorkOrderNo1` | `varchar(100)` | YES |
| 123 | `sWorkOrderId1` | `varchar(100)` | YES |
| 124 | `sWorkOrderSlaveId1` | `varchar(255)` | YES |
| 125 | `dDeductionCustomerMoney` | `decimal(18,6)` | YES |
| 126 | `dDeductionSupplyMoney` | `decimal(18,6)` | YES |
| 127 | `dDeductionMaterialsMoney` | `decimal(18,6)` | YES |
| 128 | `iWork` | `int` | YES |

## Definition

```sql
select `mftqualityaccidentmaster`.`iIncrement` AS `iIncrement`,`mftqualityaccidentmaster`.`sId` AS `sId`,`mftqualityaccidentmaster`.`sBrandsId` AS `sBrandsId`,`mftqualityaccidentmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`mftqualityaccidentmaster`.`tCreateDate` AS `tCreateDate`,`mftqualityaccidentmaster`.`tCreateDate` AS `tUpdateDate`,`mftqualityaccidentmaster`.`sMakePerson` AS `sMakePerson`,`mftqualityaccidentmaster`.`iOrder` AS `iOrder`,`mftqualityaccidentmaster`.`sFormId` AS `sFormId`,`mftqualityaccidentmaster`.`sBillNo` AS `sBillNo`,`elecustomer`.`sCustomerNo` AS `sCustomerNo`,`elecustomer`.`sCustomerName` AS `sCustomerName`,`mftqualityaccidentmaster`.`dRewardPunishmentMoney` AS `dRewardPunishmentMoney`,`mftqualityaccidentmaster`.`sReporter` AS `sReporter`,`mftqualityaccidentmaster`.`tReportDate` AS `tReportDate`,`mftqualityaccidentmaster`.`sResponsibleSupplyId` AS `sResponsibleSupplyId`,`mftqualityaccidentmaster`.`dProductQty` AS `dProductQty`,`mftqualityaccidentmaster`.`dProductTestQty` AS `dProductTestQty`,`mftqualityaccidentmaster`.`dMajorDefectQty` AS `dMajorDefectQty`,`mftqualityaccidentmaster`.`dReplenishmentQty` AS `dReplenishmentQty`,`mftqualityaccidentmaster`.`sAccidentMemo` AS `sAccidentMemo`,`mftqualityaccidentmaster`.`sReasonAnalyse` AS `sReasonAnalyse`,`mftqualityaccidentmaster`.`sReason` AS `sReason`,`mftqualityaccidentmaster`.`sType` AS `sType`,`mftqualityaccidentmaster`.`sSrctype` AS `sSrctype`,`mftqualityaccidentmaster`.`bFile` AS `bFile`,`mftqualityaccidentmaster`.`sMemo` AS `sMemo`,`mftqualityaccidentmaster`.`dLoseMoney` AS `dLoseMoney`,`mftqualityaccidentmaster`.`sResponsiblePerson` AS `sResponsiblePerson`,`mftqualityaccidentmaster`.`bCheck` AS `bCheck`,`mftqualityaccidentmaster`.`tCheckDate` AS `tCheckDate`,`mftqualityaccidentmaster`.`sCheckPerson` AS `sCheckPerson`,`mftqualityaccidentmaster`.`bPrint` AS `bPrint`,`mftqualityaccidentmaster`.`bCopyLimit` AS `bCopyLimit`,`mftqualityaccidentmaster`.`sStatus` AS `sStatus`,`mftqualityaccidentslave`.`sMachineId` AS `sMachineId`,`mftqualityaccidentmaster`.`bInvalid` AS `bInvalid`,`mftqualityaccidentmaster`.`sMReserve1` AS `sMReserve1`,`mftqualityaccidentmaster`.`sMReserve2` AS `sMReserve2`,`mftqualityaccidentmaster`.`sMReserve3` AS `sMReserve3`,`mftqualityaccidentmaster`.`sMReserve4` AS `sMReserve4`,`mftqualityaccidentmaster`.`sMReserve5` AS `sMReserve5`,`mftqualityaccidentmaster`.`sMReserve6` AS `sMReserve6`,`mftqualityaccidentmaster`.`sMReserve7` AS `sMReserve7`,`mftqualityaccidentmaster`.`dMReserve1` AS `dMReserve1`,`mftqualityaccidentmaster`.`dMReserve2` AS `dMReserve2`,`mftqualityaccidentmaster`.`dMReserve3` AS `dMReserve3`,`mftqualityaccidentmaster`.`iMReserve1` AS `iMReserve1`,`mftqualityaccidentmaster`.`iMReserve2` AS `iMReserve2`,`mftqualityaccidentmaster`.`iMReserve3` AS `iMReserve3`,`mftqualityaccidentmaster`.`tMReserve1` AS `tMReserve1`,`mftqualityaccidentmaster`.`tMReserve2` AS `tMReserve2`,`mftqualityaccidentmaster`.`sSrcNo` AS `sSrcNo`,`mftqualityaccidentmaster`.`bPendingComplete` AS `bPendingComplete`,`mftqualityaccidentslave`.`sId` AS `sSlaveId`,`mftqualityaccidentslave`.`iOrder` AS `iSlaveOrder`,`mftqualityaccidentslave`.`sParentId` AS `sParentId`,`mftqualityaccidentslave`.`sProcessId` AS `sProcessId`,`mftqualityaccidentslave`.`sMaterialsId` AS `sMaterialsId`,`mftqualityaccidentslave`.`sResponsibleSupplyId` AS `sSlaveResponsibleSupplyId`,`mftqualityaccidentslave`.`sResponsiblePersonId` AS `sResponsiblePersonId`,`mftqualityaccidentslave`.`dResponsibleMoney` AS `dResponsibleMoney`,`mftqualityaccidentslave`.`sSReserve1` AS `sSlaveSReserve1`,`mftqualityaccidentslave`.`sSReserve2` AS `sSlaveSReserve2`,`mftqualityaccidentslave`.`sSReserve3` AS `sSlaveSReserve3`,`mftqualityaccidentslave`.`sSReserve4` AS `sSlaveSReserve4`,`mftqualityaccidentslave`.`sSReserve5` AS `sSlaveSReserve5`,`mftqualityaccidentslave`.`sSReserve6` AS `sSlaveSReserve6`,`mftqualityaccidentslave`.`dSReserve1` AS `dSlaveSReserve1`,`mftqualityaccidentslave`.`dSReserve2` AS `dSlaveSReserve2`,`mftqualityaccidentslave`.`dSReserve3` AS `dSlaveSReserve3`,`mftqualityaccidentslave`.`iSReserve1` AS `iSlaveSReserve1`,`mftqualityaccidentslave`.`iSReserve2` AS `iSlaveSReserve2`,`mftqualityaccidentslave`.`iSReserve3` AS `iSlaveSReserve3`,`mftqualityaccidentslave`.`tSReserve1` AS `tSlaveSReserve1`,`mftqualityaccidentslave`.`tSReserve2` AS `tSlaveSReserve2`,`mftqualityaccidentslave`.`sMakePerson` AS `sSlaveMakePerson`,`mftqualityaccidentslave`.`sMachineId` AS `sSlaveMachineId`,`mftqualityaccidentslave`.`sTeamId` AS `sTeamId`,`mftqualityaccidentslave`.`sSrcId` AS `sSlaveSrcId`,`mftqualityaccidentslave`.`sSrcSlaveId` AS `sSlaveSrcSlaveId`,`mftqualityaccidentslave`.`sSrcNo` AS `sSlaveSrcNo`,`mftqualityaccidentslave`.`sDefineNo` AS `sDefineNo`,`mftqualityaccidentslave`.`sDefineNo2` AS `sDefineNo2`,`mftqualityaccidentslave`.`sMemo` AS `sSlaveMemo`,`mftqualityaccidentslave`.`bReplenishment` AS `bReplenishment`,`mftqualityaccidentslave`.`dReplenishmentQty` AS `dSlaveReplenishmentQty`,`mftqualityaccidentslave`.`bReplenishmentComplete` AS `bReplenishmentComplete`,`eleproduct`.`sProductNo` AS `sProductNo`,`eleproduct`.`sProductName` AS `sProductName`,`eleproduct`.`sProductStyle` AS `sProductStyle`,`eleproduct`.`sProductUnit` AS `sProductUnit`,`sisproductclassify`.`sName` AS `sProductSortName`,`mftqualityaccidentslave`.`sPicturePath` AS `sPicturePath`,`mftqualityaccidentslave`.`sFileName` AS `sFileName`,`mftqualityaccidentslave`.`sReasonAnalyse` AS `sSlaveReasonAnalyse`,`mftqualityaccidentslave`.`sAccidentMemo` AS `sSlaveAccidentMemo`,`mftqualityaccidentslave`.`sRectificationMemo` AS `sRectificationMemo`,`mftqualityaccidentslave`.`sValidationMemo` AS `sValidationMemo`,`mftqualityaccidentslave`.`sWorkOrderId` AS `sSlaveWorkOrderId`,`mftqualityaccidentslave`.`sWorkOrderNo` AS `sWorkOrderNo`,`mftqualityaccidentslave`.`tDeliverDate` AS `tDeliverDate`,`mftqualityaccidentslave`.`sDeptId` AS `sDeptId`,`mftqualityaccidentslave`.`dExamineMoney1` AS `dExamineMoney1`,`mftqualityaccidentmaster`.`sOrderNo` AS `sOrderNo`,`mftqualityaccidentmaster`.`sReprint` AS `sReprint`,`mftqualityaccidentmaster`.`bDeductionCustomer` AS `bDeductionCustomer`,`mftqualityaccidentmaster`.`sCheckMemo` AS `sCheckMemo`,`mftqualityaccidentmaster`.`sJzMemo` AS `sJzMemo`,`mftqualityaccidentmaster`.`bDeductionSupply` AS `bDeductionSupply`,`mftqualityaccidentmaster`.`bDeductionMaterials` AS `bDeductionMaterials`,`mftqualityaccidentmaster`.`sOrderId` AS `sOrderId`,`mftqualityaccidentmaster`.`sOrderSlaveId` AS `sOrderSlaveId`,`mftqualityaccidentmaster`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId`,`mftqualityaccidentslave`.`sDeptName` AS `sDeptName`,`mftqualityaccidentslave`.`bEvaluate` AS `bEvaluate`,`mftqualityaccidentmaster`.`iReason` AS `iReason`,`mftqualityaccidentslave`.`bComplainComplete` AS `bComplainComplete`,`mftqualityaccidentslave`.`sOrderId` AS `sOrderId1`,`mftqualityaccidentslave`.`sOrderSlaveId` AS `sOrderSlaveId1`,`mftqualityaccidentslave`.`sOrderNo` AS `sOrderNo1`,`mftqualityaccidentslave`.`sWorkOrderNo` AS `sWorkOrderNo1`,`mftqualityaccidentslave`.`sWorkOrderId` AS `sWorkOrderId1`,`mftqualityaccidentslave`.`sWorkOrderSlaveId` AS `sWorkOrderSlaveId1`,`mftqualityaccidentmaster`.`dDeductionCustomerMoney` AS `dDeductionCustomerMoney`,`mftqualityaccidentmaster`.`dDeductionSupplyMoney` AS `dDeductionSupplyMoney`,`mftqualityaccidentmaster`.`dDeductionMaterialsMoney` AS `dDeductionMaterialsMoney`,`mftqualityaccidentmaster`.`iWork` AS `iWork` from ((((`mftqualityaccidentmaster` join `mftqualityaccidentslave` on((`mftqualityaccidentmaster`.`sId` = `mftqualityaccidentslave`.`sParentId`))) join `elecustomer` on((`elecustomer`.`sId` = `mftqualityaccidentmaster`.`sCustomerId`))) left join `eleproduct` on((`eleproduct`.`sId` = `mftqualityaccidentslave`.`sProductId`))) left join `sisproductclassify` on((`sisproductclassify`.`sId` = `eleproduct`.`sParentId`))) where (`mftqualityaccidentmaster`.`sFormId` = '101251240115016180439686010')
```

## Narrative

_No human-written narrative yet._
