feat: add pay split field
This commit is contained in:
parent
ab91d0923f
commit
2765aac661
3 changed files with 14 additions and 5 deletions
|
|
@ -38,7 +38,7 @@ type QuotationCreate = {
|
|||
payCondition: PayCondition;
|
||||
|
||||
paySplitCount?: number;
|
||||
paySplit?: Date[];
|
||||
paySplit?: { date: Date; amount: number }[];
|
||||
|
||||
payBillDate?: Date;
|
||||
|
||||
|
|
@ -96,7 +96,7 @@ type QuotationUpdate = {
|
|||
payCondition?: PayCondition;
|
||||
|
||||
paySplitCount?: number;
|
||||
paySplit?: Date[];
|
||||
paySplit?: { date: Date; amount: number }[];
|
||||
|
||||
payBillDate?: Date;
|
||||
|
||||
|
|
@ -394,7 +394,7 @@ export class QuotationController extends Controller {
|
|||
createMany: {
|
||||
data: (rest.paySplit || []).map((v, i) => ({
|
||||
no: i + 1,
|
||||
date: v,
|
||||
...v,
|
||||
})),
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue