实现报销费用政策与票据明细门禁(08-29-reimbursement-expense-policy-invoice-guard)
这个提交包含在:
@@ -8,6 +8,7 @@ export type ExpenseType = {
|
||||
category: string;
|
||||
sortOrder: number;
|
||||
accountCodeDefault: string | null;
|
||||
requiresInvoice: boolean;
|
||||
isSystemDefault: boolean;
|
||||
enabled: boolean;
|
||||
createdAt: string | null;
|
||||
@@ -28,4 +29,3 @@ export async function fetchExpenseTypes(query: { enabled?: boolean } = {}) {
|
||||
const qs = params.toString();
|
||||
return apiRequestData<ExpenseTypeListResponse>(`/api/expense-types${qs ? `?${qs}` : ""}`);
|
||||
}
|
||||
|
||||
|
||||
@@ -17,12 +17,14 @@ export type ReimbursementItem = {
|
||||
expenseDate: string | null;
|
||||
amount: string;
|
||||
description: string | null;
|
||||
assetPriorApprovalBasis?: string | null;
|
||||
expenseType: {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
category: string;
|
||||
enabled: boolean;
|
||||
requiresInvoice?: boolean;
|
||||
} | null;
|
||||
};
|
||||
|
||||
@@ -222,6 +224,7 @@ export type ReimbursementDetail = {
|
||||
processingProgress: ReimbursementProcessingProgress;
|
||||
approvalHistory: ReimbursementApprovalHistoryItem[];
|
||||
riskFlags: RiskFlag[];
|
||||
invoiceGuardEnabled?: boolean;
|
||||
items: ReimbursementItem[];
|
||||
};
|
||||
|
||||
@@ -345,6 +348,7 @@ export type ReimbursementItemPayload = {
|
||||
expenseDate: string;
|
||||
amount: string;
|
||||
description?: string;
|
||||
assetPriorApprovalBasis?: string | null;
|
||||
};
|
||||
|
||||
export type ReimbursementItemMutationResponse = {
|
||||
@@ -354,6 +358,7 @@ export type ReimbursementItemMutationResponse = {
|
||||
expenseDate: string;
|
||||
amount: string;
|
||||
description: string | null;
|
||||
assetPriorApprovalBasis?: string | null;
|
||||
};
|
||||
totalAmount: string;
|
||||
};
|
||||
|
||||
在新工单中引用
屏蔽一个用户