refactor: quotation type & customer branch fetch by register branch id
This commit is contained in:
parent
e581556e78
commit
284028aff0
3 changed files with 19 additions and 33 deletions
|
|
@ -81,6 +81,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
zipCode?: string;
|
||||
customerId?: string;
|
||||
includeCustomer?: boolean;
|
||||
registeredBranchId?: string;
|
||||
status?: 'CREATED' | 'ACTIVE' | 'INACTIVE';
|
||||
query?: string;
|
||||
page?: number;
|
||||
|
|
@ -118,6 +119,7 @@ const useCustomerStore = defineStore('api-customer', () => {
|
|||
page?: number;
|
||||
pageSize?: number;
|
||||
query?: string;
|
||||
registeredBranchId?: string;
|
||||
includeBranch?: boolean;
|
||||
status?: 'CREATED' | 'ACTIVE' | 'INACTIVE';
|
||||
customerType?: CustomerType;
|
||||
|
|
|
|||
|
|
@ -251,23 +251,15 @@ export type QuotationFull = {
|
|||
};
|
||||
|
||||
export type QuotationPayload = {
|
||||
service: [
|
||||
productServiceList: [
|
||||
{
|
||||
work: [
|
||||
{
|
||||
product: [
|
||||
{
|
||||
vat: number; // 0..1
|
||||
discount: 1; // 0..1
|
||||
amount: 0; // int
|
||||
id: string;
|
||||
},
|
||||
];
|
||||
excluded: boolean;
|
||||
id: string;
|
||||
},
|
||||
];
|
||||
id: string;
|
||||
vat: number;
|
||||
pricePerUnit: number;
|
||||
discount: number;
|
||||
amount: number;
|
||||
productId: string;
|
||||
workId: string;
|
||||
serviceId: string;
|
||||
},
|
||||
];
|
||||
urgent: boolean;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue