# `viw_expensereimbursement` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `sId` | `varchar(100)` | NO |
| 2 | `sBrandsId` | `varchar(100)` | NO |
| 3 | `sSubsidiaryId` | `varchar(100)` | NO |
| 4 | `iIncrement` | `int` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `sMakePerson` | `varchar(255)` | NO |
| 7 | `sFormId` | `varchar(100)` | NO |
| 8 | `sCustomerId` | `varchar(100)` | YES |
| 9 | `iOrder` | `int` | NO |
| 10 | `sBillNo` | `varchar(255)` | NO |
| 11 | `bCheck` | `bit(1)` | NO |
| 12 | `tCheckDate` | `datetime` | YES |
| 13 | `sCheckPerson` | `varchar(255)` | YES |
| 14 | `sApplyPerson` | `varchar(100)` | YES |
| 15 | `sApplyPersonId` | `varchar(100)` | YES |
| 16 | `sCancelAfterWay` | `varchar(100)` | YES |
| 17 | `sDeptCheckPerson` | `varchar(100)` | YES |
| 18 | `sDeptCheckPersonId` | `varchar(100)` | YES |
| 19 | `sFinanceCheckPerson` | `varchar(100)` | YES |
| 20 | `sFinanceCheckPersonId` | `varchar(100)` | YES |
| 21 | `sFinalCheckPerson` | `varchar(100)` | YES |
| 22 | `sFinalCheckPersonId` | `varchar(100)` | YES |
| 23 | `sDeputyGeneralManager` | `varchar(100)` | YES |
| 24 | `sDeputyGeneralManagerId` | `varchar(100)` | YES |
| 25 | `dFinanceAgain` | `decimal(18,6)` | YES |
| 26 | `sAdvanceOrderCode` | `varchar(255)` | YES |
| 27 | `sAdvanceOrderCodeId` | `varchar(255)` | YES |
| 28 | `dAdvanceBalanceMoney` | `decimal(18,6)` | YES |
| 29 | `sStatus` | `varchar(255)` | YES |
| 30 | `bInvalid` | `bit(1)` | NO |
| 31 | `sMReserve1` | `varchar(255)` | YES |
| 32 | `sMReserve2` | `varchar(255)` | YES |
| 33 | `sMReserve3` | `varchar(255)` | YES |
| 34 | `sMReserve4` | `varchar(255)` | YES |
| 35 | `sMReserve5` | `varchar(255)` | YES |
| 36 | `sMReserve6` | `varchar(255)` | YES |
| 37 | `dMReserve1` | `decimal(18,6)` | YES |
| 38 | `dMReserve2` | `decimal(18,6)` | YES |
| 39 | `dMReserve3` | `decimal(18,6)` | YES |
| 40 | `iMReserve1` | `int` | YES |
| 41 | `iMReserve2` | `int` | YES |
| 42 | `iMReserve3` | `int` | YES |
| 43 | `tMReserve1` | `datetime` | YES |
| 44 | `tMReserve2` | `datetime` | YES |
| 45 | `sSlaveId` | `varchar(100)` | NO |
| 46 | `iSlaveOrder` | `int` | NO |
| 47 | `sType` | `varchar(255)` | NO |
| 48 | `sReimbursementType` | `varchar(255)` | YES |
| 49 | `sDetail` | `varchar(100)` | YES |
| 50 | `dMaterialsTaxMoney` | `decimal(18,6)` | NO |
| 51 | `dTaxRate` | `decimal(18,6)` | NO |
| 52 | `sTaxId` | `varchar(255)` | YES |
| 53 | `dSlaveMaterialsMoney` | `decimal(18,6)` | NO |
| 54 | `dMaterialsNoTaxMoney` | `decimal(18,6)` | NO |
| 55 | `dMaterialsQty` | `decimal(18,6)` | NO |
| 56 | `dMaterialsPrice` | `decimal(24,13)` | NO |
| 57 | `sSlaveMemo` | `text` | YES |
| 58 | `sSReserve1` | `varchar(255)` | YES |
| 59 | `sSReserve2` | `varchar(255)` | YES |
| 60 | `sSReserve3` | `varchar(255)` | YES |
| 61 | `sSReserve4` | `varchar(255)` | YES |
| 62 | `sSReserve5` | `varchar(255)` | YES |
| 63 | `sSReserve6` | `varchar(255)` | YES |
| 64 | `dSReserve1` | `decimal(18,6)` | YES |
| 65 | `dSReserve2` | `decimal(18,6)` | YES |
| 66 | `dSReserve3` | `decimal(18,6)` | YES |
| 67 | `iSReserve1` | `int` | YES |
| 68 | `iSReserve2` | `int` | YES |
| 69 | `iSReserve3` | `int` | YES |
| 70 | `tSReserve1` | `datetime` | YES |
| 71 | `tSReserve2` | `datetime` | YES |
| 72 | `sBillType` | `varchar(255)` | NO |
| 73 | `sMemo` | `text` | YES |
| 74 | `sCollectionUnit` | `varchar(100)` | YES |
| 75 | `sCollectionAccount` | `varchar(100)` | YES |
| 76 | `sCollectionAccountBank` | `varchar(100)` | YES |
| 77 | `dMaterialsMoney` | `decimal(18,6)` | NO |
| 78 | `sStartingPoint` | `varchar(100)` | NO |
| 79 | `sEndingPoint` | `varchar(100)` | NO |
| 80 | `dAirfare` | `decimal(18,6)` | NO |
| 81 | `dHotelExpense` | `decimal(18,6)` | NO |
| 82 | `dOtherExpense` | `decimal(18,6)` | NO |
| 83 | `dTravelAllowance` | `decimal(18,6)` | NO |
| 84 | `sMExpenseCategoryId` | `varchar(100)` | NO |
| 85 | `sMExpenseCategory` | `varchar(100)` | NO |
| 86 | `sMExpenseDetail` | `varchar(100)` | NO |
| 87 | `sMExpenseDetailId` | `varchar(100)` | NO |
| 88 | `dAccountMoney` | `decimal(18,6)` | NO |
| 89 | `dAdjustMoney` | `decimal(18,6)` | NO |
| 90 | `sAdjustMemo` | `text` | YES |
| 91 | `sExpenseCategoryId` | `varchar(100)` | NO |
| 92 | `sExpenseCategory` | `varchar(100)` | NO |
| 93 | `sExpenseDetail` | `varchar(100)` | NO |
| 94 | `sExpenseDetailId` | `varchar(100)` | NO |
| 95 | `sDepartName` | `varchar(255)` | NO |
| 96 | `sDepartId` | `varchar(255)` | NO |
| 97 | `sMasterDepartName` | `varchar(100)` | NO |
| 98 | `sMasterDepartId` | `varchar(100)` | NO |
| 99 | `sAccountNo` | `varchar(100)` | NO |
| 100 | `sAccountId` | `varchar(100)` | NO |
| 101 | `dPayMoney` | `decimal(18,6)` | NO |
| 102 | `bPaymentComplete` | `bit(1)` | NO |
| 103 | `iCigPack` | `int` | YES |
| 104 | `sCigPack` | `varchar(1)` | NO |

## Definition

```sql
select `expensereimbursementmaster`.`sId` AS `sId`,`expensereimbursementmaster`.`sBrandsId` AS `sBrandsId`,`expensereimbursementmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`expensereimbursementmaster`.`iIncrement` AS `iIncrement`,`expensereimbursementmaster`.`tCreateDate` AS `tCreateDate`,`expensereimbursementmaster`.`sMakePerson` AS `sMakePerson`,`expensereimbursementmaster`.`sFormId` AS `sFormId`,`expensereimbursementmaster`.`sCustomerId` AS `sCustomerId`,`expensereimbursementmaster`.`iOrder` AS `iOrder`,`expensereimbursementmaster`.`sBillNo` AS `sBillNo`,`expensereimbursementmaster`.`bCheck` AS `bCheck`,`expensereimbursementmaster`.`tCheckDate` AS `tCheckDate`,`expensereimbursementmaster`.`sCheckPerson` AS `sCheckPerson`,`expensereimbursementmaster`.`sApplyPerson` AS `sApplyPerson`,`expensereimbursementmaster`.`sApplyPersonId` AS `sApplyPersonId`,`expensereimbursementmaster`.`sCancelAfterWay` AS `sCancelAfterWay`,`expensereimbursementmaster`.`sDeptCheckPerson` AS `sDeptCheckPerson`,`expensereimbursementmaster`.`sDeptCheckPersonId` AS `sDeptCheckPersonId`,`expensereimbursementmaster`.`sFinanceCheckPerson` AS `sFinanceCheckPerson`,`expensereimbursementmaster`.`sFinanceCheckPersonId` AS `sFinanceCheckPersonId`,`expensereimbursementmaster`.`sFinalCheckPerson` AS `sFinalCheckPerson`,`expensereimbursementmaster`.`sFinalCheckPersonId` AS `sFinalCheckPersonId`,`expensereimbursementmaster`.`sDeputyGeneralManager` AS `sDeputyGeneralManager`,`expensereimbursementmaster`.`sDeputyGeneralManagerId` AS `sDeputyGeneralManagerId`,`expensereimbursementmaster`.`dFinanceAgain` AS `dFinanceAgain`,`expensereimbursementmaster`.`sAdvanceOrderCode` AS `sAdvanceOrderCode`,`expensereimbursementmaster`.`sAdvanceOrderCodeId` AS `sAdvanceOrderCodeId`,`expensereimbursementmaster`.`dAdvanceBalanceMoney` AS `dAdvanceBalanceMoney`,`expensereimbursementmaster`.`sStatus` AS `sStatus`,`expensereimbursementmaster`.`bInvalid` AS `bInvalid`,`expensereimbursementmaster`.`sMReserve1` AS `sMReserve1`,`expensereimbursementmaster`.`sMReserve2` AS `sMReserve2`,`expensereimbursementmaster`.`sMReserve3` AS `sMReserve3`,`expensereimbursementmaster`.`sMReserve4` AS `sMReserve4`,`expensereimbursementmaster`.`sMReserve5` AS `sMReserve5`,`expensereimbursementmaster`.`sMReserve6` AS `sMReserve6`,`expensereimbursementmaster`.`dMReserve1` AS `dMReserve1`,`expensereimbursementmaster`.`dMReserve2` AS `dMReserve2`,`expensereimbursementmaster`.`dMReserve3` AS `dMReserve3`,`expensereimbursementmaster`.`iMReserve1` AS `iMReserve1`,`expensereimbursementmaster`.`iMReserve2` AS `iMReserve2`,`expensereimbursementmaster`.`iMReserve3` AS `iMReserve3`,`expensereimbursementmaster`.`tMReserve1` AS `tMReserve1`,`expensereimbursementmaster`.`tMReserve2` AS `tMReserve2`,`expensereimbursementslave`.`sId` AS `sSlaveId`,`expensereimbursementslave`.`iOrder` AS `iSlaveOrder`,`expensereimbursementslave`.`sType` AS `sType`,`expensereimbursementslave`.`sReimbursementType` AS `sReimbursementType`,`expensereimbursementslave`.`sDetail` AS `sDetail`,`expensereimbursementslave`.`dMaterialsTaxMoney` AS `dMaterialsTaxMoney`,`expensereimbursementslave`.`dTaxRate` AS `dTaxRate`,`expensereimbursementslave`.`sTaxId` AS `sTaxId`,`expensereimbursementslave`.`dMaterialsMoney` AS `dSlaveMaterialsMoney`,`expensereimbursementslave`.`dMaterialsNoTaxMoney` AS `dMaterialsNoTaxMoney`,`expensereimbursementslave`.`dMaterialsQty` AS `dMaterialsQty`,`expensereimbursementslave`.`dMaterialsPrice` AS `dMaterialsPrice`,`expensereimbursementslave`.`sMemo` AS `sSlaveMemo`,`expensereimbursementslave`.`sSReserve1` AS `sSReserve1`,`expensereimbursementslave`.`sSReserve2` AS `sSReserve2`,`expensereimbursementslave`.`sSReserve3` AS `sSReserve3`,`expensereimbursementslave`.`sSReserve4` AS `sSReserve4`,`expensereimbursementslave`.`sSReserve5` AS `sSReserve5`,`expensereimbursementslave`.`sSReserve6` AS `sSReserve6`,`expensereimbursementslave`.`dSReserve1` AS `dSReserve1`,`expensereimbursementslave`.`dSReserve2` AS `dSReserve2`,`expensereimbursementslave`.`dSReserve3` AS `dSReserve3`,`expensereimbursementslave`.`iSReserve1` AS `iSReserve1`,`expensereimbursementslave`.`iSReserve2` AS `iSReserve2`,`expensereimbursementslave`.`iSReserve3` AS `iSReserve3`,`expensereimbursementslave`.`tSReserve1` AS `tSReserve1`,`expensereimbursementslave`.`tSReserve2` AS `tSReserve2`,`expensereimbursementmaster`.`sBillType` AS `sBillType`,`expensereimbursementmaster`.`sMemo` AS `sMemo`,`expensereimbursementmaster`.`sCollectionUnit` AS `sCollectionUnit`,`expensereimbursementmaster`.`sCollectionAccount` AS `sCollectionAccount`,`expensereimbursementmaster`.`sCollectionAccountBank` AS `sCollectionAccountBank`,`expensereimbursementmaster`.`dMaterialsMoney` AS `dMaterialsMoney`,`expensereimbursementslave`.`sStartingPoint` AS `sStartingPoint`,`expensereimbursementslave`.`sEndingPoint` AS `sEndingPoint`,`expensereimbursementslave`.`dAirfare` AS `dAirfare`,`expensereimbursementslave`.`dHotelExpense` AS `dHotelExpense`,`expensereimbursementslave`.`dOtherExpense` AS `dOtherExpense`,`expensereimbursementslave`.`dTravelAllowance` AS `dTravelAllowance`,`expensereimbursementmaster`.`sMExpenseCategoryId` AS `sMExpenseCategoryId`,`expensereimbursementmaster`.`sMExpenseCategory` AS `sMExpenseCategory`,`expensereimbursementmaster`.`sMExpenseDetail` AS `sMExpenseDetail`,`expensereimbursementmaster`.`sMExpenseDetailId` AS `sMExpenseDetailId`,`expensereimbursementslave`.`dAccountMoney` AS `dAccountMoney`,`expensereimbursementslave`.`dAdjustMoney` AS `dAdjustMoney`,`expensereimbursementslave`.`sAdjustMemo` AS `sAdjustMemo`,`expensereimbursementslave`.`sExpenseCategoryId` AS `sExpenseCategoryId`,`expensereimbursementslave`.`sExpenseCategory` AS `sExpenseCategory`,`expensereimbursementslave`.`sExpenseDetail` AS `sExpenseDetail`,`expensereimbursementslave`.`sExpenseDetailId` AS `sExpenseDetailId`,`expensereimbursementmaster`.`sDepartName` AS `sDepartName`,`expensereimbursementmaster`.`sDepartId` AS `sDepartId`,`expensereimbursementmaster`.`sMasterDepartName` AS `sMasterDepartName`,`expensereimbursementmaster`.`sMasterDepartId` AS `sMasterDepartId`,`expensereimbursementslave`.`sAccountNo` AS `sAccountNo`,`expensereimbursementslave`.`sAccountId` AS `sAccountId`,`expensereimbursementslave`.`dPayMoney` AS `dPayMoney`,`expensereimbursementslave`.`bPaymentComplete` AS `bPaymentComplete`,`expensereimbursementmaster`.`iCigPack` AS `iCigPack`,(case `expensereimbursementmaster`.`iCigPack` when 1 then '是' else '否' end) AS `sCigPack` from (`expensereimbursementmaster` join `expensereimbursementslave` on((`expensereimbursementmaster`.`sId` = `expensereimbursementslave`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
