# `viw_expensereimbursement`（视图）


- **是否可更新：** YES
- **定义者：** `xlyprint@%`

## 字段

| # | 名称 | 类型 | 可空 |
|---|---|---|---|
| 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 |

## 定义

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

## 说明

_暂无人工说明。_
