# `viw_revsupply` (view)


- **Updatable:** YES

## 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 | `sBillNo` | `varchar(255)` | NO |
| 10 | `sSupplyId` | `varchar(100)` | YES |
| 11 | `sMemo` | `text` | YES |
| 12 | `bCheck` | `bit(1)` | NO |
| 13 | `tCheckDate` | `datetime` | YES |
| 14 | `sCheckPerson` | `varchar(255)` | YES |
| 15 | `bPrint` | `bit(1)` | NO |
| 16 | `bCopyLimit` | `bit(1)` | NO |
| 17 | `sStatus` | `varchar(255)` | YES |
| 18 | `bInvalid` | `bit(1)` | NO |
| 19 | `sMReserve1` | `varchar(255)` | YES |
| 20 | `sMReserve2` | `varchar(255)` | YES |
| 21 | `sMReserve3` | `varchar(255)` | YES |
| 22 | `sMReserve4` | `varchar(255)` | YES |
| 23 | `sMReserve5` | `varchar(255)` | YES |
| 24 | `sMReserve6` | `varchar(255)` | YES |
| 25 | `dMReserve1` | `decimal(18,6)` | YES |
| 26 | `dMReserve2` | `decimal(18,6)` | YES |
| 27 | `dMReserve3` | `decimal(18,6)` | YES |
| 28 | `iMReserve1` | `int` | YES |
| 29 | `iMReserve2` | `int` | YES |
| 30 | `iMReserve3` | `int` | YES |
| 31 | `tMReserve1` | `datetime` | YES |
| 32 | `tMReserve2` | `datetime` | YES |
| 33 | `sTestStandardId` | `varchar(100)` | YES |
| 34 | `iReviewType` | `int` | YES |
| 35 | `sSlaveId` | `varchar(100)` | NO |
| 36 | `sParentId` | `varchar(100)` | NO |
| 37 | `sSReserve1` | `varchar(255)` | YES |
| 38 | `sSReserve2` | `varchar(255)` | YES |
| 39 | `sSReserve3` | `varchar(255)` | YES |
| 40 | `sSReserve4` | `varchar(255)` | YES |
| 41 | `sSReserve5` | `varchar(255)` | YES |
| 42 | `sSReserve6` | `varchar(255)` | YES |
| 43 | `dSReserve1` | `decimal(18,6)` | YES |
| 44 | `dSReserve2` | `decimal(18,6)` | YES |
| 45 | `dSReserve3` | `decimal(18,6)` | YES |
| 46 | `iSReserve1` | `int` | YES |
| 47 | `iSReserve2` | `int` | YES |
| 48 | `iSReserve3` | `int` | YES |
| 49 | `tSReserve1` | `datetime` | YES |
| 50 | `tSReserve2` | `datetime` | YES |
| 51 | `sSMemo` | `text` | YES |
| 52 | `iScoreOne` | `int` | YES |
| 53 | `iScoreTwo` | `int` | YES |
| 54 | `iScoreThree` | `int` | YES |
| 55 | `iScoreFour` | `int` | YES |
| 56 | `bSubCheck` | `bit(1)` | YES |
| 57 | `tSubCheckDate` | `datetime` | YES |
| 58 | `sSubCheckPerson` | `varchar(255)` | YES |
| 59 | `iScoreTotal` | `bigint` | YES |
| 60 | `bSupplyInvalid` | `bit(1)` | YES |
| 61 | `iHappendCount` | `int` | YES |
| 62 | `dInStoreMoney` | `decimal(18,2)` | YES |
| 63 | `dAccidentRate` | `decimal(18,2)` | YES |
| 64 | `dDeliverRate` | `decimal(18,2)` | YES |
| 65 | `dAccidentMoney` | `decimal(18,2)` | YES |
| 66 | `dOutMoney` | `decimal(18,2)` | YES |
| 67 | `iQualityScore` | `int` | YES |
| 68 | `iSystemScore` | `int` | YES |
| 69 | `iDeliverScore` | `int` | YES |
| 70 | `iPriceScore` | `int` | YES |
| 71 | `iServiceScore` | `int` | YES |

## Definition

```sql
select `revsupplymaster`.`iIncrement` AS `iIncrement`,`revsupplymaster`.`sId` AS `sId`,`revsupplymaster`.`sBrandsId` AS `sBrandsId`,`revsupplymaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`revsupplymaster`.`tCreateDate` AS `tCreateDate`,`revsupplymaster`.`sMakePerson` AS `sMakePerson`,`revsupplymaster`.`iOrder` AS `iOrder`,`revsupplymaster`.`sFormId` AS `sFormId`,`revsupplymaster`.`sBillNo` AS `sBillNo`,`revsupplyslave`.`sSupplyId` AS `sSupplyId`,`revsupplymaster`.`sMemo` AS `sMemo`,`revsupplymaster`.`bCheck` AS `bCheck`,`revsupplymaster`.`tCheckDate` AS `tCheckDate`,`revsupplymaster`.`sCheckPerson` AS `sCheckPerson`,`revsupplymaster`.`bPrint` AS `bPrint`,`revsupplymaster`.`bCopyLimit` AS `bCopyLimit`,`revsupplymaster`.`sStatus` AS `sStatus`,`revsupplymaster`.`bInvalid` AS `bInvalid`,`revsupplymaster`.`sMReserve1` AS `sMReserve1`,`revsupplymaster`.`sMReserve2` AS `sMReserve2`,`revsupplymaster`.`sMReserve3` AS `sMReserve3`,`revsupplymaster`.`sMReserve4` AS `sMReserve4`,`revsupplymaster`.`sMReserve5` AS `sMReserve5`,`revsupplymaster`.`sMReserve6` AS `sMReserve6`,`revsupplymaster`.`dMReserve1` AS `dMReserve1`,`revsupplymaster`.`dMReserve2` AS `dMReserve2`,`revsupplymaster`.`dMReserve3` AS `dMReserve3`,`revsupplymaster`.`iMReserve1` AS `iMReserve1`,`revsupplymaster`.`iMReserve2` AS `iMReserve2`,`revsupplymaster`.`iMReserve3` AS `iMReserve3`,`revsupplymaster`.`tMReserve1` AS `tMReserve1`,`revsupplymaster`.`tMReserve2` AS `tMReserve2`,`revsupplymaster`.`sTestStandardId` AS `sTestStandardId`,`revsupplymaster`.`iReviewType` AS `iReviewType`,`revsupplyslave`.`sId` AS `sSlaveId`,`revsupplyslave`.`sParentId` AS `sParentId`,`revsupplyslave`.`sSReserve1` AS `sSReserve1`,`revsupplyslave`.`sSReserve2` AS `sSReserve2`,`revsupplyslave`.`sSReserve3` AS `sSReserve3`,`revsupplyslave`.`sSReserve4` AS `sSReserve4`,`revsupplyslave`.`sSReserve5` AS `sSReserve5`,`revsupplyslave`.`sSReserve6` AS `sSReserve6`,`revsupplyslave`.`dSReserve1` AS `dSReserve1`,`revsupplyslave`.`dSReserve2` AS `dSReserve2`,`revsupplyslave`.`dSReserve3` AS `dSReserve3`,`revsupplyslave`.`iSReserve1` AS `iSReserve1`,`revsupplyslave`.`iSReserve2` AS `iSReserve2`,`revsupplyslave`.`iSReserve3` AS `iSReserve3`,`revsupplyslave`.`tSReserve1` AS `tSReserve1`,`revsupplyslave`.`tSReserve2` AS `tSReserve2`,`revsupplyslave`.`sSMemo` AS `sSMemo`,`revsupplyslave`.`iScoreOne` AS `iScoreOne`,`revsupplyslave`.`iScoreTwo` AS `iScoreTwo`,`revsupplyslave`.`iScoreThree` AS `iScoreThree`,`revsupplyslave`.`iScoreFour` AS `iScoreFour`,`revsupplymaster`.`bSubCheck` AS `bSubCheck`,`revsupplymaster`.`tSubCheckDate` AS `tSubCheckDate`,`revsupplymaster`.`sSubCheckPerson` AS `sSubCheckPerson`,((((`revsupplyslave`.`iQualityScore` + `revsupplyslave`.`iSystemScore`) + `revsupplyslave`.`iDeliverScore`) + `revsupplyslave`.`iPriceScore`) + `revsupplyslave`.`iServiceScore`) AS `iScoreTotal`,`revsupplymaster`.`bSupplyInvalid` AS `bSupplyInvalid`,`revsupplyslave`.`iHappendCount` AS `iHappendCount`,`revsupplyslave`.`dInStoreMoney` AS `dInStoreMoney`,`revsupplyslave`.`dAccidentRate` AS `dAccidentRate`,`revsupplyslave`.`dDeliverRate` AS `dDeliverRate`,`revsupplyslave`.`dAccidentMoney` AS `dAccidentMoney`,`revsupplyslave`.`dOutMoney` AS `dOutMoney`,`revsupplyslave`.`iQualityScore` AS `iQualityScore`,`revsupplyslave`.`iSystemScore` AS `iSystemScore`,`revsupplyslave`.`iDeliverScore` AS `iDeliverScore`,`revsupplyslave`.`iPriceScore` AS `iPriceScore`,`revsupplyslave`.`iServiceScore` AS `iServiceScore` from (`revsupplymaster` join `revsupplyslave` on((`revsupplymaster`.`sId` = `revsupplyslave`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
