erpnext-queue-client 2.1.1 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/erpnext/doctypes/paymentEntry.d.ts +39 -39
- package/dist/erpnext/doctypes/salesInvoice.d.ts +2 -2
- package/dist/erpnext/model/PaymentEntry.d.ts +39 -51
- package/dist/erpnext/model/PaymentEntry.js +3 -3
- package/dist/erpnext/model/PurchaseOrder.d.ts +4 -4
- package/dist/erpnext/model/SalesInvoice.d.ts +9 -3
- package/dist/erpnext/model/SalesInvoice.js +1 -1
- package/package.json +1 -1
|
@@ -75,12 +75,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
75
75
|
references?: {
|
|
76
76
|
reference_doctype: string;
|
|
77
77
|
reference_name: string;
|
|
78
|
-
total_amount: number;
|
|
79
|
-
outstanding_amount: number;
|
|
80
78
|
allocated_amount: number;
|
|
81
79
|
account_type?: string | null | undefined;
|
|
82
|
-
|
|
80
|
+
payment_term?: string | null | undefined;
|
|
83
81
|
payment_type?: string | null | undefined;
|
|
82
|
+
total_amount?: number | null | undefined;
|
|
83
|
+
outstanding_amount?: number | null | undefined;
|
|
84
84
|
account?: string | null | undefined;
|
|
85
85
|
payment_request?: string | null | undefined;
|
|
86
86
|
}[] | undefined;
|
|
@@ -143,12 +143,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
143
143
|
references?: {
|
|
144
144
|
reference_doctype: string;
|
|
145
145
|
reference_name: string;
|
|
146
|
-
total_amount: number;
|
|
147
|
-
outstanding_amount: number;
|
|
148
146
|
allocated_amount: number;
|
|
149
147
|
account_type?: string | null | undefined;
|
|
150
|
-
|
|
148
|
+
payment_term?: string | null | undefined;
|
|
151
149
|
payment_type?: string | null | undefined;
|
|
150
|
+
total_amount?: number | null | undefined;
|
|
151
|
+
outstanding_amount?: number | null | undefined;
|
|
152
152
|
account?: string | null | undefined;
|
|
153
153
|
payment_request?: string | null | undefined;
|
|
154
154
|
}[] | undefined;
|
|
@@ -216,12 +216,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
216
216
|
references?: {
|
|
217
217
|
reference_doctype: string;
|
|
218
218
|
reference_name: string;
|
|
219
|
-
total_amount: number;
|
|
220
|
-
outstanding_amount: number;
|
|
221
219
|
allocated_amount: number;
|
|
222
220
|
account_type?: string | null | undefined;
|
|
223
|
-
|
|
221
|
+
payment_term?: string | null | undefined;
|
|
224
222
|
payment_type?: string | null | undefined;
|
|
223
|
+
total_amount?: number | null | undefined;
|
|
224
|
+
outstanding_amount?: number | null | undefined;
|
|
225
225
|
account?: string | null | undefined;
|
|
226
226
|
payment_request?: string | null | undefined;
|
|
227
227
|
}[] | undefined;
|
|
@@ -278,12 +278,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
278
278
|
references?: {
|
|
279
279
|
reference_doctype: string;
|
|
280
280
|
reference_name: string;
|
|
281
|
-
total_amount: number;
|
|
282
|
-
outstanding_amount: number;
|
|
283
281
|
allocated_amount: number;
|
|
284
282
|
account_type?: string | null | undefined;
|
|
285
|
-
|
|
283
|
+
payment_term?: string | null | undefined;
|
|
286
284
|
payment_type?: string | null | undefined;
|
|
285
|
+
total_amount?: number | null | undefined;
|
|
286
|
+
outstanding_amount?: number | null | undefined;
|
|
287
287
|
account?: string | null | undefined;
|
|
288
288
|
payment_request?: string | null | undefined;
|
|
289
289
|
}[] | undefined;
|
|
@@ -352,12 +352,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
352
352
|
references?: {
|
|
353
353
|
reference_doctype: string;
|
|
354
354
|
reference_name: string;
|
|
355
|
-
total_amount: number;
|
|
356
|
-
outstanding_amount: number;
|
|
357
355
|
allocated_amount: number;
|
|
358
356
|
account_type?: string | null | undefined;
|
|
359
|
-
|
|
357
|
+
payment_term?: string | null | undefined;
|
|
360
358
|
payment_type?: string | null | undefined;
|
|
359
|
+
total_amount?: number | null | undefined;
|
|
360
|
+
outstanding_amount?: number | null | undefined;
|
|
361
361
|
account?: string | null | undefined;
|
|
362
362
|
payment_request?: string | null | undefined;
|
|
363
363
|
}[] | undefined;
|
|
@@ -414,12 +414,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
414
414
|
references?: {
|
|
415
415
|
reference_doctype: string;
|
|
416
416
|
reference_name: string;
|
|
417
|
-
total_amount: number;
|
|
418
|
-
outstanding_amount: number;
|
|
419
417
|
allocated_amount: number;
|
|
420
418
|
account_type?: string | null | undefined;
|
|
421
|
-
|
|
419
|
+
payment_term?: string | null | undefined;
|
|
422
420
|
payment_type?: string | null | undefined;
|
|
421
|
+
total_amount?: number | null | undefined;
|
|
422
|
+
outstanding_amount?: number | null | undefined;
|
|
423
423
|
account?: string | null | undefined;
|
|
424
424
|
payment_request?: string | null | undefined;
|
|
425
425
|
}[] | undefined;
|
|
@@ -488,12 +488,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
488
488
|
references?: {
|
|
489
489
|
reference_doctype: string;
|
|
490
490
|
reference_name: string;
|
|
491
|
-
total_amount: number;
|
|
492
|
-
outstanding_amount: number;
|
|
493
491
|
allocated_amount: number;
|
|
494
492
|
account_type?: string | null | undefined;
|
|
495
|
-
|
|
493
|
+
payment_term?: string | null | undefined;
|
|
496
494
|
payment_type?: string | null | undefined;
|
|
495
|
+
total_amount?: number | null | undefined;
|
|
496
|
+
outstanding_amount?: number | null | undefined;
|
|
497
497
|
account?: string | null | undefined;
|
|
498
498
|
payment_request?: string | null | undefined;
|
|
499
499
|
}[] | undefined;
|
|
@@ -564,12 +564,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
564
564
|
references?: {
|
|
565
565
|
reference_doctype: string;
|
|
566
566
|
reference_name: string;
|
|
567
|
-
total_amount: number;
|
|
568
|
-
outstanding_amount: number;
|
|
569
567
|
allocated_amount: number;
|
|
570
568
|
account_type?: string | null | undefined;
|
|
571
|
-
|
|
569
|
+
payment_term?: string | null | undefined;
|
|
572
570
|
payment_type?: string | null | undefined;
|
|
571
|
+
total_amount?: number | null | undefined;
|
|
572
|
+
outstanding_amount?: number | null | undefined;
|
|
573
573
|
account?: string | null | undefined;
|
|
574
574
|
payment_request?: string | null | undefined;
|
|
575
575
|
}[] | undefined;
|
|
@@ -636,12 +636,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
636
636
|
references?: {
|
|
637
637
|
reference_doctype: string;
|
|
638
638
|
reference_name: string;
|
|
639
|
-
total_amount: number;
|
|
640
|
-
outstanding_amount: number;
|
|
641
639
|
allocated_amount: number;
|
|
642
640
|
account_type?: string | null | undefined;
|
|
643
|
-
|
|
641
|
+
payment_term?: string | null | undefined;
|
|
644
642
|
payment_type?: string | null | undefined;
|
|
643
|
+
total_amount?: number | null | undefined;
|
|
644
|
+
outstanding_amount?: number | null | undefined;
|
|
645
645
|
account?: string | null | undefined;
|
|
646
646
|
payment_request?: string | null | undefined;
|
|
647
647
|
}[] | undefined;
|
|
@@ -697,12 +697,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
697
697
|
references?: {
|
|
698
698
|
reference_doctype: string;
|
|
699
699
|
reference_name: string;
|
|
700
|
-
total_amount: number;
|
|
701
|
-
outstanding_amount: number;
|
|
702
700
|
allocated_amount: number;
|
|
703
701
|
account_type?: string | null | undefined;
|
|
704
|
-
|
|
702
|
+
payment_term?: string | null | undefined;
|
|
705
703
|
payment_type?: string | null | undefined;
|
|
704
|
+
total_amount?: number | null | undefined;
|
|
705
|
+
outstanding_amount?: number | null | undefined;
|
|
706
706
|
account?: string | null | undefined;
|
|
707
707
|
payment_request?: string | null | undefined;
|
|
708
708
|
}[] | undefined;
|
|
@@ -757,12 +757,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
757
757
|
references?: {
|
|
758
758
|
reference_doctype: string;
|
|
759
759
|
reference_name: string;
|
|
760
|
-
total_amount: number;
|
|
761
|
-
outstanding_amount: number;
|
|
762
760
|
allocated_amount: number;
|
|
763
761
|
account_type?: string | null | undefined;
|
|
764
|
-
|
|
762
|
+
payment_term?: string | null | undefined;
|
|
765
763
|
payment_type?: string | null | undefined;
|
|
764
|
+
total_amount?: number | null | undefined;
|
|
765
|
+
outstanding_amount?: number | null | undefined;
|
|
766
766
|
account?: string | null | undefined;
|
|
767
767
|
payment_request?: string | null | undefined;
|
|
768
768
|
}[] | undefined;
|
|
@@ -827,12 +827,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
827
827
|
references?: {
|
|
828
828
|
reference_doctype: string;
|
|
829
829
|
reference_name: string;
|
|
830
|
-
total_amount: number;
|
|
831
|
-
outstanding_amount: number;
|
|
832
830
|
allocated_amount: number;
|
|
833
831
|
account_type?: string | null | undefined;
|
|
834
|
-
|
|
832
|
+
payment_term?: string | null | undefined;
|
|
835
833
|
payment_type?: string | null | undefined;
|
|
834
|
+
total_amount?: number | null | undefined;
|
|
835
|
+
outstanding_amount?: number | null | undefined;
|
|
836
836
|
account?: string | null | undefined;
|
|
837
837
|
payment_request?: string | null | undefined;
|
|
838
838
|
}[] | undefined;
|
|
@@ -897,12 +897,12 @@ export declare class ERPNextPaymentEntry {
|
|
|
897
897
|
references?: {
|
|
898
898
|
reference_doctype: string;
|
|
899
899
|
reference_name: string;
|
|
900
|
-
total_amount: number;
|
|
901
|
-
outstanding_amount: number;
|
|
902
900
|
allocated_amount: number;
|
|
903
901
|
account_type?: string | null | undefined;
|
|
904
|
-
|
|
902
|
+
payment_term?: string | null | undefined;
|
|
905
903
|
payment_type?: string | null | undefined;
|
|
904
|
+
total_amount?: number | null | undefined;
|
|
905
|
+
outstanding_amount?: number | null | undefined;
|
|
906
906
|
account?: string | null | undefined;
|
|
907
907
|
payment_request?: string | null | undefined;
|
|
908
908
|
}[] | undefined;
|
|
@@ -666,7 +666,6 @@ export declare class ERPNextSalesInvoice {
|
|
|
666
666
|
qty: number;
|
|
667
667
|
uom: string;
|
|
668
668
|
rate: number;
|
|
669
|
-
income_account: string;
|
|
670
669
|
description?: string | null | undefined;
|
|
671
670
|
brand?: string | null | undefined;
|
|
672
671
|
image?: string | null | undefined;
|
|
@@ -725,6 +724,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
725
724
|
delivery_note?: string | null | undefined;
|
|
726
725
|
delivered_qty?: number | null | undefined;
|
|
727
726
|
sales_invoice_item?: string | null | undefined;
|
|
727
|
+
income_account?: string | undefined;
|
|
728
728
|
discount_account?: string | null | undefined;
|
|
729
729
|
deferred_revenue_account?: string | null | undefined;
|
|
730
730
|
service_start_date?: string | null | undefined;
|
|
@@ -1191,7 +1191,6 @@ export declare class ERPNextSalesInvoice {
|
|
|
1191
1191
|
qty: number;
|
|
1192
1192
|
uom: string;
|
|
1193
1193
|
rate: number;
|
|
1194
|
-
income_account: string;
|
|
1195
1194
|
description?: string | null | undefined;
|
|
1196
1195
|
brand?: string | null | undefined;
|
|
1197
1196
|
image?: string | null | undefined;
|
|
@@ -1250,6 +1249,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
1250
1249
|
delivery_note?: string | null | undefined;
|
|
1251
1250
|
delivered_qty?: number | null | undefined;
|
|
1252
1251
|
sales_invoice_item?: string | null | undefined;
|
|
1252
|
+
income_account?: string | undefined;
|
|
1253
1253
|
discount_account?: string | null | undefined;
|
|
1254
1254
|
deferred_revenue_account?: string | null | undefined;
|
|
1255
1255
|
service_start_date?: string | null | undefined;
|
|
@@ -2,38 +2,34 @@ import { z } from "zod";
|
|
|
2
2
|
declare const PaymentEntryReference: z.ZodObject<{
|
|
3
3
|
reference_doctype: z.ZodString;
|
|
4
4
|
reference_name: z.ZodString;
|
|
5
|
-
|
|
5
|
+
payment_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
6
|
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
7
|
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
-
total_amount: z.ZodNumber
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
outstanding_amount: z.ZodNumber & {
|
|
12
|
-
__optionalForInput: true;
|
|
13
|
-
};
|
|
8
|
+
total_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
+
outstanding_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
14
10
|
allocated_amount: z.ZodNumber;
|
|
15
11
|
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
12
|
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
13
|
}, "strip", z.ZodTypeAny, {
|
|
18
14
|
reference_doctype: string;
|
|
19
15
|
reference_name: string;
|
|
20
|
-
total_amount: number;
|
|
21
|
-
outstanding_amount: number;
|
|
22
16
|
allocated_amount: number;
|
|
23
17
|
account_type?: string | null | undefined;
|
|
24
|
-
|
|
18
|
+
payment_term?: string | null | undefined;
|
|
25
19
|
payment_type?: string | null | undefined;
|
|
20
|
+
total_amount?: number | null | undefined;
|
|
21
|
+
outstanding_amount?: number | null | undefined;
|
|
26
22
|
account?: string | null | undefined;
|
|
27
23
|
payment_request?: string | null | undefined;
|
|
28
24
|
}, {
|
|
29
25
|
reference_doctype: string;
|
|
30
26
|
reference_name: string;
|
|
31
|
-
total_amount: number;
|
|
32
|
-
outstanding_amount: number;
|
|
33
27
|
allocated_amount: number;
|
|
34
28
|
account_type?: string | null | undefined;
|
|
35
|
-
|
|
29
|
+
payment_term?: string | null | undefined;
|
|
36
30
|
payment_type?: string | null | undefined;
|
|
31
|
+
total_amount?: number | null | undefined;
|
|
32
|
+
outstanding_amount?: number | null | undefined;
|
|
37
33
|
account?: string | null | undefined;
|
|
38
34
|
payment_request?: string | null | undefined;
|
|
39
35
|
}>;
|
|
@@ -114,38 +110,34 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
114
110
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
111
|
reference_doctype: z.ZodString;
|
|
116
112
|
reference_name: z.ZodString;
|
|
117
|
-
|
|
113
|
+
payment_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
118
114
|
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
119
115
|
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
|
-
total_amount: z.ZodNumber
|
|
121
|
-
|
|
122
|
-
};
|
|
123
|
-
outstanding_amount: z.ZodNumber & {
|
|
124
|
-
__optionalForInput: true;
|
|
125
|
-
};
|
|
116
|
+
total_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
117
|
+
outstanding_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
126
118
|
allocated_amount: z.ZodNumber;
|
|
127
119
|
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
128
120
|
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
129
121
|
}, "strip", z.ZodTypeAny, {
|
|
130
122
|
reference_doctype: string;
|
|
131
123
|
reference_name: string;
|
|
132
|
-
total_amount: number;
|
|
133
|
-
outstanding_amount: number;
|
|
134
124
|
allocated_amount: number;
|
|
135
125
|
account_type?: string | null | undefined;
|
|
136
|
-
|
|
126
|
+
payment_term?: string | null | undefined;
|
|
137
127
|
payment_type?: string | null | undefined;
|
|
128
|
+
total_amount?: number | null | undefined;
|
|
129
|
+
outstanding_amount?: number | null | undefined;
|
|
138
130
|
account?: string | null | undefined;
|
|
139
131
|
payment_request?: string | null | undefined;
|
|
140
132
|
}, {
|
|
141
133
|
reference_doctype: string;
|
|
142
134
|
reference_name: string;
|
|
143
|
-
total_amount: number;
|
|
144
|
-
outstanding_amount: number;
|
|
145
135
|
allocated_amount: number;
|
|
146
136
|
account_type?: string | null | undefined;
|
|
147
|
-
|
|
137
|
+
payment_term?: string | null | undefined;
|
|
148
138
|
payment_type?: string | null | undefined;
|
|
139
|
+
total_amount?: number | null | undefined;
|
|
140
|
+
outstanding_amount?: number | null | undefined;
|
|
149
141
|
account?: string | null | undefined;
|
|
150
142
|
payment_request?: string | null | undefined;
|
|
151
143
|
}>, "many">>;
|
|
@@ -200,12 +192,12 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
200
192
|
references?: {
|
|
201
193
|
reference_doctype: string;
|
|
202
194
|
reference_name: string;
|
|
203
|
-
total_amount: number;
|
|
204
|
-
outstanding_amount: number;
|
|
205
195
|
allocated_amount: number;
|
|
206
196
|
account_type?: string | null | undefined;
|
|
207
|
-
|
|
197
|
+
payment_term?: string | null | undefined;
|
|
208
198
|
payment_type?: string | null | undefined;
|
|
199
|
+
total_amount?: number | null | undefined;
|
|
200
|
+
outstanding_amount?: number | null | undefined;
|
|
209
201
|
account?: string | null | undefined;
|
|
210
202
|
payment_request?: string | null | undefined;
|
|
211
203
|
}[] | undefined;
|
|
@@ -259,12 +251,12 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
259
251
|
references?: {
|
|
260
252
|
reference_doctype: string;
|
|
261
253
|
reference_name: string;
|
|
262
|
-
total_amount: number;
|
|
263
|
-
outstanding_amount: number;
|
|
264
254
|
allocated_amount: number;
|
|
265
255
|
account_type?: string | null | undefined;
|
|
266
|
-
|
|
256
|
+
payment_term?: string | null | undefined;
|
|
267
257
|
payment_type?: string | null | undefined;
|
|
258
|
+
total_amount?: number | null | undefined;
|
|
259
|
+
outstanding_amount?: number | null | undefined;
|
|
268
260
|
account?: string | null | undefined;
|
|
269
261
|
payment_request?: string | null | undefined;
|
|
270
262
|
}[] | undefined;
|
|
@@ -318,38 +310,34 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
318
310
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
311
|
reference_doctype: z.ZodString;
|
|
320
312
|
reference_name: z.ZodString;
|
|
321
|
-
|
|
313
|
+
payment_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
322
314
|
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
323
315
|
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
324
|
-
total_amount: z.ZodNumber
|
|
325
|
-
|
|
326
|
-
};
|
|
327
|
-
outstanding_amount: z.ZodNumber & {
|
|
328
|
-
__optionalForInput: true;
|
|
329
|
-
};
|
|
316
|
+
total_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
317
|
+
outstanding_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
330
318
|
allocated_amount: z.ZodNumber;
|
|
331
319
|
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
332
320
|
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
333
321
|
}, "strip", z.ZodTypeAny, {
|
|
334
322
|
reference_doctype: string;
|
|
335
323
|
reference_name: string;
|
|
336
|
-
total_amount: number;
|
|
337
|
-
outstanding_amount: number;
|
|
338
324
|
allocated_amount: number;
|
|
339
325
|
account_type?: string | null | undefined;
|
|
340
|
-
|
|
326
|
+
payment_term?: string | null | undefined;
|
|
341
327
|
payment_type?: string | null | undefined;
|
|
328
|
+
total_amount?: number | null | undefined;
|
|
329
|
+
outstanding_amount?: number | null | undefined;
|
|
342
330
|
account?: string | null | undefined;
|
|
343
331
|
payment_request?: string | null | undefined;
|
|
344
332
|
}, {
|
|
345
333
|
reference_doctype: string;
|
|
346
334
|
reference_name: string;
|
|
347
|
-
total_amount: number;
|
|
348
|
-
outstanding_amount: number;
|
|
349
335
|
allocated_amount: number;
|
|
350
336
|
account_type?: string | null | undefined;
|
|
351
|
-
|
|
337
|
+
payment_term?: string | null | undefined;
|
|
352
338
|
payment_type?: string | null | undefined;
|
|
339
|
+
total_amount?: number | null | undefined;
|
|
340
|
+
outstanding_amount?: number | null | undefined;
|
|
353
341
|
account?: string | null | undefined;
|
|
354
342
|
payment_request?: string | null | undefined;
|
|
355
343
|
}>, "many">>;
|
|
@@ -406,12 +394,12 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
406
394
|
references?: {
|
|
407
395
|
reference_doctype: string;
|
|
408
396
|
reference_name: string;
|
|
409
|
-
total_amount: number;
|
|
410
|
-
outstanding_amount: number;
|
|
411
397
|
allocated_amount: number;
|
|
412
398
|
account_type?: string | null | undefined;
|
|
413
|
-
|
|
399
|
+
payment_term?: string | null | undefined;
|
|
414
400
|
payment_type?: string | null | undefined;
|
|
401
|
+
total_amount?: number | null | undefined;
|
|
402
|
+
outstanding_amount?: number | null | undefined;
|
|
415
403
|
account?: string | null | undefined;
|
|
416
404
|
payment_request?: string | null | undefined;
|
|
417
405
|
}[] | undefined;
|
|
@@ -465,12 +453,12 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
465
453
|
references?: {
|
|
466
454
|
reference_doctype: string;
|
|
467
455
|
reference_name: string;
|
|
468
|
-
total_amount: number;
|
|
469
|
-
outstanding_amount: number;
|
|
470
456
|
allocated_amount: number;
|
|
471
457
|
account_type?: string | null | undefined;
|
|
472
|
-
|
|
458
|
+
payment_term?: string | null | undefined;
|
|
473
459
|
payment_type?: string | null | undefined;
|
|
460
|
+
total_amount?: number | null | undefined;
|
|
461
|
+
outstanding_amount?: number | null | undefined;
|
|
474
462
|
account?: string | null | undefined;
|
|
475
463
|
payment_request?: string | null | undefined;
|
|
476
464
|
}[] | undefined;
|
|
@@ -7,11 +7,11 @@ const PaymentEntryReference = zod_1.z
|
|
|
7
7
|
.object({
|
|
8
8
|
reference_doctype: zod_1.z.string(),
|
|
9
9
|
reference_name: zod_1.z.string(),
|
|
10
|
-
|
|
10
|
+
payment_term: zod_1.z.string().optional().nullable(),
|
|
11
11
|
account_type: zod_1.z.string().optional().nullable(),
|
|
12
12
|
payment_type: zod_1.z.string().optional().nullable(),
|
|
13
|
-
total_amount:
|
|
14
|
-
outstanding_amount:
|
|
13
|
+
total_amount: zod_1.z.number().optional().nullable(),
|
|
14
|
+
outstanding_amount: zod_1.z.number().optional().nullable(),
|
|
15
15
|
allocated_amount: zod_1.z.number(),
|
|
16
16
|
account: zod_1.z.string().optional().nullable(),
|
|
17
17
|
payment_request: zod_1.z.string().optional().nullable(),
|
|
@@ -367,6 +367,7 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
367
367
|
due_date: string;
|
|
368
368
|
payment_amount: number;
|
|
369
369
|
description?: any;
|
|
370
|
+
payment_term?: any;
|
|
370
371
|
mode_of_payment?: any;
|
|
371
372
|
paid_amount?: number | null | undefined;
|
|
372
373
|
invoice_portion?: number | null | undefined;
|
|
@@ -374,13 +375,13 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
374
375
|
outstanding?: number | null | undefined;
|
|
375
376
|
discounted_amount?: number | null | undefined;
|
|
376
377
|
base_payment_amount?: number | null | undefined;
|
|
377
|
-
payment_term?: any;
|
|
378
378
|
discount_type?: any;
|
|
379
379
|
discount_date?: any;
|
|
380
380
|
}, {
|
|
381
381
|
due_date: string;
|
|
382
382
|
payment_amount: number;
|
|
383
383
|
description?: any;
|
|
384
|
+
payment_term?: any;
|
|
384
385
|
mode_of_payment?: any;
|
|
385
386
|
paid_amount?: number | null | undefined;
|
|
386
387
|
invoice_portion?: number | null | undefined;
|
|
@@ -388,7 +389,6 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
388
389
|
outstanding?: number | null | undefined;
|
|
389
390
|
discounted_amount?: number | null | undefined;
|
|
390
391
|
base_payment_amount?: number | null | undefined;
|
|
391
|
-
payment_term?: any;
|
|
392
392
|
discount_type?: any;
|
|
393
393
|
discount_date?: any;
|
|
394
394
|
}>, "many">;
|
|
@@ -476,6 +476,7 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
476
476
|
due_date: string;
|
|
477
477
|
payment_amount: number;
|
|
478
478
|
description?: any;
|
|
479
|
+
payment_term?: any;
|
|
479
480
|
mode_of_payment?: any;
|
|
480
481
|
paid_amount?: number | null | undefined;
|
|
481
482
|
invoice_portion?: number | null | undefined;
|
|
@@ -483,7 +484,6 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
483
484
|
outstanding?: number | null | undefined;
|
|
484
485
|
discounted_amount?: number | null | undefined;
|
|
485
486
|
base_payment_amount?: number | null | undefined;
|
|
486
|
-
payment_term?: any;
|
|
487
487
|
discount_type?: any;
|
|
488
488
|
discount_date?: any;
|
|
489
489
|
}[];
|
|
@@ -658,6 +658,7 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
658
658
|
due_date: string;
|
|
659
659
|
payment_amount: number;
|
|
660
660
|
description?: any;
|
|
661
|
+
payment_term?: any;
|
|
661
662
|
mode_of_payment?: any;
|
|
662
663
|
paid_amount?: number | null | undefined;
|
|
663
664
|
invoice_portion?: number | null | undefined;
|
|
@@ -665,7 +666,6 @@ export declare const PurchaseOrder: z.ZodObject<{
|
|
|
665
666
|
outstanding?: number | null | undefined;
|
|
666
667
|
discounted_amount?: number | null | undefined;
|
|
667
668
|
base_payment_amount?: number | null | undefined;
|
|
668
|
-
payment_term?: any;
|
|
669
669
|
discount_type?: any;
|
|
670
670
|
discount_date?: any;
|
|
671
671
|
}[];
|
|
@@ -65,7 +65,9 @@ export declare const SalesInvoiceItem: z.ZodObject<{
|
|
|
65
65
|
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
66
66
|
delivered_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
67
67
|
sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
68
|
-
income_account: z.ZodString
|
|
68
|
+
income_account: z.ZodString & {
|
|
69
|
+
__optionalForInput: true;
|
|
70
|
+
};
|
|
69
71
|
expense_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
70
72
|
cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
71
73
|
discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -415,7 +417,9 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
415
417
|
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
416
418
|
delivered_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
417
419
|
sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
418
|
-
income_account: z.ZodString
|
|
420
|
+
income_account: z.ZodString & {
|
|
421
|
+
__optionalForInput: true;
|
|
422
|
+
};
|
|
419
423
|
expense_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
420
424
|
cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
421
425
|
discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1448,7 +1452,9 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1448
1452
|
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1449
1453
|
delivered_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1450
1454
|
sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1451
|
-
income_account: z.ZodString
|
|
1455
|
+
income_account: z.ZodString & {
|
|
1456
|
+
__optionalForInput: true;
|
|
1457
|
+
};
|
|
1452
1458
|
expense_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1453
1459
|
cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1454
1460
|
discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -76,7 +76,7 @@ exports.SalesInvoiceItem = zod_1.z
|
|
|
76
76
|
delivered_qty: zod_1.z.number().optional().nullable(),
|
|
77
77
|
sales_invoice_item: zod_1.z.string().optional().nullable(),
|
|
78
78
|
// Accounting
|
|
79
|
-
income_account: zod_1.z.string()
|
|
79
|
+
income_account: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.string()),
|
|
80
80
|
expense_account: zod_1.z.string().optional().nullable(),
|
|
81
81
|
cost_center: zod_1.z.string().optional().nullable(),
|
|
82
82
|
discount_account: zod_1.z.string().optional().nullable(),
|