feat: refactor form components and improve invoice printing logic; enhance checkbox functionality and loading state management
This commit is contained in:
@@ -22,7 +22,73 @@ export interface ISaleInvoiceFullResponse extends ISaleInvoiceFullRawResponse {}
|
||||
|
||||
interface Item {
|
||||
id: string;
|
||||
good: ISummary;
|
||||
good_id: string;
|
||||
service_id: null;
|
||||
quantity: string;
|
||||
measure_unit_code: string;
|
||||
measure_unit_text: string;
|
||||
sku_code: string;
|
||||
unit_price: string;
|
||||
discount: string;
|
||||
total_amount: string;
|
||||
notes?: string;
|
||||
payload: Payload;
|
||||
good_snapshot: Goodsnapshot;
|
||||
good: GoodSummary;
|
||||
}
|
||||
interface GoodSummary {
|
||||
name: string;
|
||||
barcode?: string;
|
||||
image_url?: string;
|
||||
category: Category;
|
||||
}
|
||||
|
||||
interface Category {
|
||||
id: string;
|
||||
name: string;
|
||||
description?: string;
|
||||
image_url?: string;
|
||||
is_default_guild_good: boolean;
|
||||
guild_id: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
interface Goodsnapshot {
|
||||
good: Good;
|
||||
}
|
||||
|
||||
interface Good {
|
||||
id: string;
|
||||
sku: Sku;
|
||||
name: string;
|
||||
barcode?: string;
|
||||
category: ISummary;
|
||||
image_url: string;
|
||||
local_sku?: string;
|
||||
measure_unit: MeasureUnit;
|
||||
pricing_model: string;
|
||||
base_sale_price: string;
|
||||
}
|
||||
|
||||
interface MeasureUnit {
|
||||
id: string;
|
||||
code: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Sku {
|
||||
id: string;
|
||||
VAT: string;
|
||||
code: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
interface Payload {
|
||||
karat: string;
|
||||
wages: number;
|
||||
profit: number;
|
||||
commission: number;
|
||||
}
|
||||
|
||||
interface Payment {
|
||||
|
||||
Reference in New Issue
Block a user