mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore(FE-366): create finance types
This commit is contained in:
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
import { BaseMetadata } from '@/types/api/api-general';
|
||||
|
||||
export type BaseFinance = {
|
||||
id: number;
|
||||
reference_number: string;
|
||||
transaction_type: string;
|
||||
customer_name: string;
|
||||
payment_date: string;
|
||||
created_date: string;
|
||||
payment_method: string;
|
||||
bank_name: string;
|
||||
expense_amount: number;
|
||||
revenue_amount: number;
|
||||
};
|
||||
|
||||
export type Finance = BaseMetadata & BaseFinance;
|
||||
|
||||
export type CreateFinancePayload = {
|
||||
transaction_type: string;
|
||||
customer_id: number;
|
||||
payment_date: string;
|
||||
payment_method: string;
|
||||
bank_id: number;
|
||||
supplier_bank_account_number: string;
|
||||
reference_number: string;
|
||||
amount: number;
|
||||
notes: string;
|
||||
};
|
||||
|
||||
export type UpdateFinancePayload = CreateFinancePayload;
|
||||
Reference in New Issue
Block a user