erpnext-queue-client 2.1.0 → 2.1.1
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 +91 -0
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +14 -14
- package/dist/erpnext/doctypes/salesInvoice.d.ts +29 -29
- package/dist/erpnext/model/PaymentEntry.d.ts +105 -2
- package/dist/erpnext/model/PaymentEntry.js +7 -0
- package/dist/erpnext/model/PurchaseInvoice.d.ts +4 -4
- package/dist/erpnext/model/SalesInvoice.d.ts +14 -14
- package/dist/erpnext/model/StockEntry.d.ts +2 -2
- package/package.json +1 -1
|
@@ -75,7 +75,14 @@ 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;
|
|
78
80
|
allocated_amount: number;
|
|
81
|
+
account_type?: string | null | undefined;
|
|
82
|
+
payment_termn?: string | null | undefined;
|
|
83
|
+
payment_type?: string | null | undefined;
|
|
84
|
+
account?: string | null | undefined;
|
|
85
|
+
payment_request?: string | null | undefined;
|
|
79
86
|
}[] | undefined;
|
|
80
87
|
deductions?: unknown[] | undefined;
|
|
81
88
|
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "posting_date" | "payment_type" | "payment_order_status" | "party_type" | "party" | "party_name" | "party_balance" | "paid_from" | "paid_from_account_type" | "paid_from_account_currency" | "paid_from_account_balance" | "paid_to" | "paid_to_account_type" | "paid_to_account_currency" | "paid_to_account_balance" | "paid_amount" | "paid_amount_after_tax" | "reference_no" | "reference_date") | ("status" | "amended_from" | "_user_tags" | "title" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "taxes" | "payment_number" | "internal_reference" | "mode_of_payment" | "custom_external_payment_method" | "source_exchange_rate" | "base_paid_amount" | "base_paid_amount_after_tax" | "received_amount" | "received_amount_after_tax" | "target_exchange_rate" | "base_received_amount" | "base_received_amount_after_tax" | "total_allocated_amount" | "base_total_allocated_amount" | "unallocated_amount" | "difference_amount" | "apply_tax_withholding_amount" | "custom_remarks" | "remarks" | "references" | "deductions") ? {
|
|
@@ -136,7 +143,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
136
143
|
references?: {
|
|
137
144
|
reference_doctype: string;
|
|
138
145
|
reference_name: string;
|
|
146
|
+
total_amount: number;
|
|
147
|
+
outstanding_amount: number;
|
|
139
148
|
allocated_amount: number;
|
|
149
|
+
account_type?: string | null | undefined;
|
|
150
|
+
payment_termn?: string | null | undefined;
|
|
151
|
+
payment_type?: string | null | undefined;
|
|
152
|
+
account?: string | null | undefined;
|
|
153
|
+
payment_request?: string | null | undefined;
|
|
140
154
|
}[] | undefined;
|
|
141
155
|
deductions?: unknown[] | undefined;
|
|
142
156
|
}[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "posting_date" | "payment_type" | "payment_order_status" | "party_type" | "party" | "party_name" | "party_balance" | "paid_from" | "paid_from_account_type" | "paid_from_account_currency" | "paid_from_account_balance" | "paid_to" | "paid_to_account_type" | "paid_to_account_currency" | "paid_to_account_balance" | "paid_amount" | "paid_amount_after_tax" | "reference_no" | "reference_date") | ("status" | "amended_from" | "_user_tags" | "title" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "taxes" | "payment_number" | "internal_reference" | "mode_of_payment" | "custom_external_payment_method" | "source_exchange_rate" | "base_paid_amount" | "base_paid_amount_after_tax" | "received_amount" | "received_amount_after_tax" | "target_exchange_rate" | "base_received_amount" | "base_received_amount_after_tax" | "total_allocated_amount" | "base_total_allocated_amount" | "unallocated_amount" | "difference_amount" | "apply_tax_withholding_amount" | "custom_remarks" | "remarks" | "references" | "deductions")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
@@ -202,7 +216,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
202
216
|
references?: {
|
|
203
217
|
reference_doctype: string;
|
|
204
218
|
reference_name: string;
|
|
219
|
+
total_amount: number;
|
|
220
|
+
outstanding_amount: number;
|
|
205
221
|
allocated_amount: number;
|
|
222
|
+
account_type?: string | null | undefined;
|
|
223
|
+
payment_termn?: string | null | undefined;
|
|
224
|
+
payment_type?: string | null | undefined;
|
|
225
|
+
account?: string | null | undefined;
|
|
226
|
+
payment_request?: string | null | undefined;
|
|
206
227
|
}[] | undefined;
|
|
207
228
|
deductions?: unknown[] | undefined;
|
|
208
229
|
} | undefined>;
|
|
@@ -257,7 +278,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
257
278
|
references?: {
|
|
258
279
|
reference_doctype: string;
|
|
259
280
|
reference_name: string;
|
|
281
|
+
total_amount: number;
|
|
282
|
+
outstanding_amount: number;
|
|
260
283
|
allocated_amount: number;
|
|
284
|
+
account_type?: string | null | undefined;
|
|
285
|
+
payment_termn?: string | null | undefined;
|
|
286
|
+
payment_type?: string | null | undefined;
|
|
287
|
+
account?: string | null | undefined;
|
|
288
|
+
payment_request?: string | null | undefined;
|
|
261
289
|
}[] | undefined;
|
|
262
290
|
deductions?: unknown[] | undefined;
|
|
263
291
|
} : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
|
|
@@ -324,7 +352,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
324
352
|
references?: {
|
|
325
353
|
reference_doctype: string;
|
|
326
354
|
reference_name: string;
|
|
355
|
+
total_amount: number;
|
|
356
|
+
outstanding_amount: number;
|
|
327
357
|
allocated_amount: number;
|
|
358
|
+
account_type?: string | null | undefined;
|
|
359
|
+
payment_termn?: string | null | undefined;
|
|
360
|
+
payment_type?: string | null | undefined;
|
|
361
|
+
account?: string | null | undefined;
|
|
362
|
+
payment_request?: string | null | undefined;
|
|
328
363
|
}[] | undefined;
|
|
329
364
|
deductions?: unknown[] | undefined;
|
|
330
365
|
}>;
|
|
@@ -379,7 +414,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
379
414
|
references?: {
|
|
380
415
|
reference_doctype: string;
|
|
381
416
|
reference_name: string;
|
|
417
|
+
total_amount: number;
|
|
418
|
+
outstanding_amount: number;
|
|
382
419
|
allocated_amount: number;
|
|
420
|
+
account_type?: string | null | undefined;
|
|
421
|
+
payment_termn?: string | null | undefined;
|
|
422
|
+
payment_type?: string | null | undefined;
|
|
423
|
+
account?: string | null | undefined;
|
|
424
|
+
payment_request?: string | null | undefined;
|
|
383
425
|
}[] | undefined;
|
|
384
426
|
deductions?: unknown[] | undefined;
|
|
385
427
|
}> : TInputModel extends z.ZodTypeAny ? z.TypeOf<TInputModel> : any, TInputModel extends z.ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
|
|
@@ -446,7 +488,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
446
488
|
references?: {
|
|
447
489
|
reference_doctype: string;
|
|
448
490
|
reference_name: string;
|
|
491
|
+
total_amount: number;
|
|
492
|
+
outstanding_amount: number;
|
|
449
493
|
allocated_amount: number;
|
|
494
|
+
account_type?: string | null | undefined;
|
|
495
|
+
payment_termn?: string | null | undefined;
|
|
496
|
+
payment_type?: string | null | undefined;
|
|
497
|
+
account?: string | null | undefined;
|
|
498
|
+
payment_request?: string | null | undefined;
|
|
450
499
|
}[] | undefined;
|
|
451
500
|
deductions?: unknown[] | undefined;
|
|
452
501
|
}>;
|
|
@@ -515,7 +564,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
515
564
|
references?: {
|
|
516
565
|
reference_doctype: string;
|
|
517
566
|
reference_name: string;
|
|
567
|
+
total_amount: number;
|
|
568
|
+
outstanding_amount: number;
|
|
518
569
|
allocated_amount: number;
|
|
570
|
+
account_type?: string | null | undefined;
|
|
571
|
+
payment_termn?: string | null | undefined;
|
|
572
|
+
payment_type?: string | null | undefined;
|
|
573
|
+
account?: string | null | undefined;
|
|
574
|
+
payment_request?: string | null | undefined;
|
|
519
575
|
}[] | undefined;
|
|
520
576
|
deductions?: unknown[] | undefined;
|
|
521
577
|
}>;
|
|
@@ -580,7 +636,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
580
636
|
references?: {
|
|
581
637
|
reference_doctype: string;
|
|
582
638
|
reference_name: string;
|
|
639
|
+
total_amount: number;
|
|
640
|
+
outstanding_amount: number;
|
|
583
641
|
allocated_amount: number;
|
|
642
|
+
account_type?: string | null | undefined;
|
|
643
|
+
payment_termn?: string | null | undefined;
|
|
644
|
+
payment_type?: string | null | undefined;
|
|
645
|
+
account?: string | null | undefined;
|
|
646
|
+
payment_request?: string | null | undefined;
|
|
584
647
|
}[] | undefined;
|
|
585
648
|
deductions?: unknown[] | undefined;
|
|
586
649
|
}>;
|
|
@@ -634,7 +697,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
634
697
|
references?: {
|
|
635
698
|
reference_doctype: string;
|
|
636
699
|
reference_name: string;
|
|
700
|
+
total_amount: number;
|
|
701
|
+
outstanding_amount: number;
|
|
637
702
|
allocated_amount: number;
|
|
703
|
+
account_type?: string | null | undefined;
|
|
704
|
+
payment_termn?: string | null | undefined;
|
|
705
|
+
payment_type?: string | null | undefined;
|
|
706
|
+
account?: string | null | undefined;
|
|
707
|
+
payment_request?: string | null | undefined;
|
|
638
708
|
}[] | undefined;
|
|
639
709
|
deductions?: unknown[] | undefined;
|
|
640
710
|
}>;
|
|
@@ -687,7 +757,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
687
757
|
references?: {
|
|
688
758
|
reference_doctype: string;
|
|
689
759
|
reference_name: string;
|
|
760
|
+
total_amount: number;
|
|
761
|
+
outstanding_amount: number;
|
|
690
762
|
allocated_amount: number;
|
|
763
|
+
account_type?: string | null | undefined;
|
|
764
|
+
payment_termn?: string | null | undefined;
|
|
765
|
+
payment_type?: string | null | undefined;
|
|
766
|
+
account?: string | null | undefined;
|
|
767
|
+
payment_request?: string | null | undefined;
|
|
691
768
|
}[] | undefined;
|
|
692
769
|
deductions?: unknown[] | undefined;
|
|
693
770
|
}>;
|
|
@@ -750,7 +827,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
750
827
|
references?: {
|
|
751
828
|
reference_doctype: string;
|
|
752
829
|
reference_name: string;
|
|
830
|
+
total_amount: number;
|
|
831
|
+
outstanding_amount: number;
|
|
753
832
|
allocated_amount: number;
|
|
833
|
+
account_type?: string | null | undefined;
|
|
834
|
+
payment_termn?: string | null | undefined;
|
|
835
|
+
payment_type?: string | null | undefined;
|
|
836
|
+
account?: string | null | undefined;
|
|
837
|
+
payment_request?: string | null | undefined;
|
|
754
838
|
}[] | undefined;
|
|
755
839
|
deductions?: unknown[] | undefined;
|
|
756
840
|
}>;
|
|
@@ -813,7 +897,14 @@ export declare class ERPNextPaymentEntry {
|
|
|
813
897
|
references?: {
|
|
814
898
|
reference_doctype: string;
|
|
815
899
|
reference_name: string;
|
|
900
|
+
total_amount: number;
|
|
901
|
+
outstanding_amount: number;
|
|
816
902
|
allocated_amount: number;
|
|
903
|
+
account_type?: string | null | undefined;
|
|
904
|
+
payment_termn?: string | null | undefined;
|
|
905
|
+
payment_type?: string | null | undefined;
|
|
906
|
+
account?: string | null | undefined;
|
|
907
|
+
payment_request?: string | null | undefined;
|
|
817
908
|
}[] | undefined;
|
|
818
909
|
deductions?: unknown[] | undefined;
|
|
819
910
|
}>;
|
|
@@ -6,7 +6,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
6
6
|
protected temporalClient: TemporalClient;
|
|
7
7
|
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof PurchaseInvoice>;
|
|
8
8
|
protected methodRequest: ERPNextMethodRequest;
|
|
9
|
-
getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "discount_amount" | "pricing_rules" | "__unsaved" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "shipping_address" | "currency" | "conversion_rate" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "items" | "supplier" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "
|
|
9
|
+
getList: <TFieldOptions extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "discount_amount" | "pricing_rules" | "__unsaved" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "shipping_address" | "currency" | "conversion_rate" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "items" | "supplier" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "allocate_advances_automatically" | "payment_terms_template" | "ignore_default_payment_terms_template" | "credit_to" | "party_account_currency" | "is_opening" | "per_received" | "supplied_items" | "advances" | "advance_tax"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
10
10
|
fields?: TSelectedFields;
|
|
11
11
|
filters?: (string | string[])[][];
|
|
12
12
|
skip?: number;
|
|
@@ -131,6 +131,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
131
131
|
pr_detail?: string | null | undefined;
|
|
132
132
|
}[] | null | undefined;
|
|
133
133
|
supplier?: string | null | undefined;
|
|
134
|
+
outstanding_amount?: number | null | undefined;
|
|
134
135
|
paid_amount?: number | null | undefined;
|
|
135
136
|
base_paid_amount?: number | null | undefined;
|
|
136
137
|
remarks?: string | null | undefined;
|
|
@@ -151,7 +152,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
151
152
|
taxes_and_charges_added?: number | null | undefined;
|
|
152
153
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
153
154
|
total_advance?: number | null | undefined;
|
|
154
|
-
outstanding_amount?: number | null | undefined;
|
|
155
155
|
write_off_amount?: number | null | undefined;
|
|
156
156
|
base_write_off_amount?: number | null | undefined;
|
|
157
157
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -164,7 +164,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
164
164
|
supplied_items?: string[] | null | undefined;
|
|
165
165
|
advances?: string[] | null | undefined;
|
|
166
166
|
advance_tax?: string[] | null | undefined;
|
|
167
|
-
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "discount_amount" | "pricing_rules" | "__unsaved" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "shipping_address" | "currency" | "conversion_rate" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "items" | "supplier" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "
|
|
167
|
+
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "discount_amount" | "pricing_rules" | "__unsaved" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "shipping_address" | "currency" | "conversion_rate" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "items" | "supplier" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "allocate_advances_automatically" | "payment_terms_template" | "ignore_default_payment_terms_template" | "credit_to" | "party_account_currency" | "is_opening" | "per_received" | "supplied_items" | "advances" | "advance_tax") ? {
|
|
168
168
|
docstatus: number;
|
|
169
169
|
name: string;
|
|
170
170
|
owner: string;
|
|
@@ -279,6 +279,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
279
279
|
pr_detail?: string | null | undefined;
|
|
280
280
|
}[] | null | undefined;
|
|
281
281
|
supplier?: string | null | undefined;
|
|
282
|
+
outstanding_amount?: number | null | undefined;
|
|
282
283
|
paid_amount?: number | null | undefined;
|
|
283
284
|
base_paid_amount?: number | null | undefined;
|
|
284
285
|
remarks?: string | null | undefined;
|
|
@@ -299,7 +300,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
299
300
|
taxes_and_charges_added?: number | null | undefined;
|
|
300
301
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
301
302
|
total_advance?: number | null | undefined;
|
|
302
|
-
outstanding_amount?: number | null | undefined;
|
|
303
303
|
write_off_amount?: number | null | undefined;
|
|
304
304
|
base_write_off_amount?: number | null | undefined;
|
|
305
305
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -312,7 +312,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
312
312
|
supplied_items?: string[] | null | undefined;
|
|
313
313
|
advances?: string[] | null | undefined;
|
|
314
314
|
advance_tax?: string[] | null | undefined;
|
|
315
|
-
}[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "discount_amount" | "pricing_rules" | "__unsaved" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "shipping_address" | "currency" | "conversion_rate" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "items" | "supplier" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "
|
|
315
|
+
}[(("docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx") | ("status" | "amended_from" | "_user_tags" | "__onload" | "tax_category" | "company" | "naming_series" | "supplier_name" | "is_internal_supplier" | "on_hold" | "language" | "discount_amount" | "pricing_rules" | "__unsaved" | "posting_date" | "posting_time" | "set_posting_time" | "is_return" | "shipping_address" | "currency" | "conversion_rate" | "price_list_currency" | "plc_conversion_rate" | "ignore_pricing_rule" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "apply_discount_on" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "disable_rounded_total" | "group_same_items" | "items" | "supplier" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "__islocal" | "bill_id" | "is_paid" | "apply_tds" | "bill_no" | "shipping_address_display" | "billing_address" | "billing_address_display" | "buying_price_list" | "is_subcontracted" | "update_stock" | "base_taxes_and_charges_added" | "base_taxes_and_charges_deducted" | "taxes_and_charges_added" | "taxes_and_charges_deducted" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "allocate_advances_automatically" | "payment_terms_template" | "ignore_default_payment_terms_template" | "credit_to" | "party_account_currency" | "is_opening" | "per_received" | "supplied_items" | "advances" | "advance_tax")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
316
316
|
getById: ({ resourceId, priority, }: {
|
|
317
317
|
resourceId: string;
|
|
318
318
|
priority?: number;
|
|
@@ -486,6 +486,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
486
486
|
pr_detail?: string | null | undefined;
|
|
487
487
|
}[] | null | undefined;
|
|
488
488
|
supplier?: string | null | undefined;
|
|
489
|
+
outstanding_amount?: number | null | undefined;
|
|
489
490
|
paid_amount?: number | null | undefined;
|
|
490
491
|
base_paid_amount?: number | null | undefined;
|
|
491
492
|
remarks?: string | null | undefined;
|
|
@@ -506,7 +507,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
506
507
|
taxes_and_charges_added?: number | null | undefined;
|
|
507
508
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
508
509
|
total_advance?: number | null | undefined;
|
|
509
|
-
outstanding_amount?: number | null | undefined;
|
|
510
510
|
write_off_amount?: number | null | undefined;
|
|
511
511
|
base_write_off_amount?: number | null | undefined;
|
|
512
512
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -660,6 +660,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
660
660
|
pr_detail?: string | null | undefined;
|
|
661
661
|
}[] | null | undefined;
|
|
662
662
|
supplier?: string | null | undefined;
|
|
663
|
+
outstanding_amount?: number | null | undefined;
|
|
663
664
|
paid_amount?: number | null | undefined;
|
|
664
665
|
base_paid_amount?: number | null | undefined;
|
|
665
666
|
remarks?: string | null | undefined;
|
|
@@ -680,7 +681,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
680
681
|
taxes_and_charges_added?: number | null | undefined;
|
|
681
682
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
682
683
|
total_advance?: number | null | undefined;
|
|
683
|
-
outstanding_amount?: number | null | undefined;
|
|
684
684
|
write_off_amount?: number | null | undefined;
|
|
685
685
|
base_write_off_amount?: number | null | undefined;
|
|
686
686
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -868,6 +868,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
868
868
|
pr_detail?: string | null | undefined;
|
|
869
869
|
}[] | null | undefined;
|
|
870
870
|
supplier?: string | null | undefined;
|
|
871
|
+
outstanding_amount?: number | null | undefined;
|
|
871
872
|
paid_amount?: number | null | undefined;
|
|
872
873
|
base_paid_amount?: number | null | undefined;
|
|
873
874
|
remarks?: string | null | undefined;
|
|
@@ -888,7 +889,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
888
889
|
taxes_and_charges_added?: number | null | undefined;
|
|
889
890
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
890
891
|
total_advance?: number | null | undefined;
|
|
891
|
-
outstanding_amount?: number | null | undefined;
|
|
892
892
|
write_off_amount?: number | null | undefined;
|
|
893
893
|
base_write_off_amount?: number | null | undefined;
|
|
894
894
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1078,6 +1078,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1078
1078
|
pr_detail?: string | null | undefined;
|
|
1079
1079
|
}[] | null | undefined;
|
|
1080
1080
|
supplier?: string | null | undefined;
|
|
1081
|
+
outstanding_amount?: number | null | undefined;
|
|
1081
1082
|
paid_amount?: number | null | undefined;
|
|
1082
1083
|
base_paid_amount?: number | null | undefined;
|
|
1083
1084
|
remarks?: string | null | undefined;
|
|
@@ -1098,7 +1099,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1098
1099
|
taxes_and_charges_added?: number | null | undefined;
|
|
1099
1100
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1100
1101
|
total_advance?: number | null | undefined;
|
|
1101
|
-
outstanding_amount?: number | null | undefined;
|
|
1102
1102
|
write_off_amount?: number | null | undefined;
|
|
1103
1103
|
base_write_off_amount?: number | null | undefined;
|
|
1104
1104
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1284,6 +1284,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1284
1284
|
pr_detail?: string | null | undefined;
|
|
1285
1285
|
}[] | null | undefined;
|
|
1286
1286
|
supplier?: string | null | undefined;
|
|
1287
|
+
outstanding_amount?: number | null | undefined;
|
|
1287
1288
|
paid_amount?: number | null | undefined;
|
|
1288
1289
|
base_paid_amount?: number | null | undefined;
|
|
1289
1290
|
remarks?: string | null | undefined;
|
|
@@ -1304,7 +1305,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1304
1305
|
taxes_and_charges_added?: number | null | undefined;
|
|
1305
1306
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1306
1307
|
total_advance?: number | null | undefined;
|
|
1307
|
-
outstanding_amount?: number | null | undefined;
|
|
1308
1308
|
write_off_amount?: number | null | undefined;
|
|
1309
1309
|
base_write_off_amount?: number | null | undefined;
|
|
1310
1310
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1490,6 +1490,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1490
1490
|
pr_detail?: string | null | undefined;
|
|
1491
1491
|
}[] | null | undefined;
|
|
1492
1492
|
supplier?: string | null | undefined;
|
|
1493
|
+
outstanding_amount?: number | null | undefined;
|
|
1493
1494
|
paid_amount?: number | null | undefined;
|
|
1494
1495
|
base_paid_amount?: number | null | undefined;
|
|
1495
1496
|
remarks?: string | null | undefined;
|
|
@@ -1510,7 +1511,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1510
1511
|
taxes_and_charges_added?: number | null | undefined;
|
|
1511
1512
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1512
1513
|
total_advance?: number | null | undefined;
|
|
1513
|
-
outstanding_amount?: number | null | undefined;
|
|
1514
1514
|
write_off_amount?: number | null | undefined;
|
|
1515
1515
|
base_write_off_amount?: number | null | undefined;
|
|
1516
1516
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1694,6 +1694,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1694
1694
|
pr_detail?: string | null | undefined;
|
|
1695
1695
|
}[] | null | undefined;
|
|
1696
1696
|
supplier?: string | null | undefined;
|
|
1697
|
+
outstanding_amount?: number | null | undefined;
|
|
1697
1698
|
paid_amount?: number | null | undefined;
|
|
1698
1699
|
base_paid_amount?: number | null | undefined;
|
|
1699
1700
|
remarks?: string | null | undefined;
|
|
@@ -1714,7 +1715,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1714
1715
|
taxes_and_charges_added?: number | null | undefined;
|
|
1715
1716
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1716
1717
|
total_advance?: number | null | undefined;
|
|
1717
|
-
outstanding_amount?: number | null | undefined;
|
|
1718
1718
|
write_off_amount?: number | null | undefined;
|
|
1719
1719
|
base_write_off_amount?: number | null | undefined;
|
|
1720
1720
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1896,6 +1896,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1896
1896
|
pr_detail?: string | null | undefined;
|
|
1897
1897
|
}[] | null | undefined;
|
|
1898
1898
|
supplier?: string | null | undefined;
|
|
1899
|
+
outstanding_amount?: number | null | undefined;
|
|
1899
1900
|
paid_amount?: number | null | undefined;
|
|
1900
1901
|
base_paid_amount?: number | null | undefined;
|
|
1901
1902
|
remarks?: string | null | undefined;
|
|
@@ -1916,7 +1917,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1916
1917
|
taxes_and_charges_added?: number | null | undefined;
|
|
1917
1918
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1918
1919
|
total_advance?: number | null | undefined;
|
|
1919
|
-
outstanding_amount?: number | null | undefined;
|
|
1920
1920
|
write_off_amount?: number | null | undefined;
|
|
1921
1921
|
base_write_off_amount?: number | null | undefined;
|
|
1922
1922
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -2100,6 +2100,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
2100
2100
|
pr_detail?: string | null | undefined;
|
|
2101
2101
|
}[] | null | undefined;
|
|
2102
2102
|
supplier?: string | null | undefined;
|
|
2103
|
+
outstanding_amount?: number | null | undefined;
|
|
2103
2104
|
paid_amount?: number | null | undefined;
|
|
2104
2105
|
base_paid_amount?: number | null | undefined;
|
|
2105
2106
|
remarks?: string | null | undefined;
|
|
@@ -2120,7 +2121,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
2120
2121
|
taxes_and_charges_added?: number | null | undefined;
|
|
2121
2122
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
2122
2123
|
total_advance?: number | null | undefined;
|
|
2123
|
-
outstanding_amount?: number | null | undefined;
|
|
2124
2124
|
write_off_amount?: number | null | undefined;
|
|
2125
2125
|
base_write_off_amount?: number | null | undefined;
|
|
2126
2126
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -6,7 +6,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
6
6
|
protected temporalClient: TemporalClient;
|
|
7
7
|
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof SalesInvoice>;
|
|
8
8
|
protected methodRequest: ERPNextMethodRequest;
|
|
9
|
-
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "
|
|
9
|
+
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "payment_terms_template" | "party_account_currency" | "advances" | "payment_schedule" | "company_tax_id" | "pos_profile" | "named_place" | "coupon_code" | "additional_discount_account" | "timesheets" | "total_billing_hours" | "total_billing_amount" | "cash_bank_account" | "payments" | "base_change_amount" | "change_amount" | "account_for_change_amount" | "write_off_account" | "write_off_cost_center" | "loyalty_points" | "loyalty_amount" | "loyalty_program" | "loyalty_redemption_account" | "loyalty_redemption_cost_center" | "unrealized_profit_loss_account" | "against_income_account" | "subscription" | "from_date" | "to_date" | "update_auto_repeat_reference" | "inter_company_invoice_reference"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
10
10
|
fields?: TSelectedFields;
|
|
11
11
|
filters?: (string | string[])[][];
|
|
12
12
|
skip?: number;
|
|
@@ -144,12 +144,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
144
144
|
base_tax_amount?: number | undefined;
|
|
145
145
|
}[] | null | undefined;
|
|
146
146
|
sales_team?: any[] | null | undefined;
|
|
147
|
+
outstanding_amount?: number | null | undefined;
|
|
147
148
|
paid_amount?: number | null | undefined;
|
|
148
149
|
base_paid_amount?: number | null | undefined;
|
|
149
150
|
remarks?: string | null | undefined;
|
|
150
151
|
due_date?: string | null | undefined;
|
|
151
152
|
total_advance?: number | null | undefined;
|
|
152
|
-
outstanding_amount?: number | null | undefined;
|
|
153
153
|
write_off_amount?: number | null | undefined;
|
|
154
154
|
base_write_off_amount?: number | null | undefined;
|
|
155
155
|
payment_terms_template?: string | null | undefined;
|
|
@@ -177,8 +177,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
177
177
|
amount: number;
|
|
178
178
|
mode_of_payment: string;
|
|
179
179
|
base_amount?: number | null | undefined;
|
|
180
|
-
reference_no?: string | null | undefined;
|
|
181
180
|
account?: string | null | undefined;
|
|
181
|
+
reference_no?: string | null | undefined;
|
|
182
182
|
clearance_date?: string | null | undefined;
|
|
183
183
|
}[] | null | undefined;
|
|
184
184
|
base_change_amount?: number | null | undefined;
|
|
@@ -198,7 +198,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
198
198
|
to_date?: string | null | undefined;
|
|
199
199
|
update_auto_repeat_reference?: string | null | undefined;
|
|
200
200
|
inter_company_invoice_reference?: string | null | undefined;
|
|
201
|
-
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "
|
|
201
|
+
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "payment_terms_template" | "party_account_currency" | "advances" | "payment_schedule" | "company_tax_id" | "pos_profile" | "named_place" | "coupon_code" | "additional_discount_account" | "timesheets" | "total_billing_hours" | "total_billing_amount" | "cash_bank_account" | "payments" | "base_change_amount" | "change_amount" | "account_for_change_amount" | "write_off_account" | "write_off_cost_center" | "loyalty_points" | "loyalty_amount" | "loyalty_program" | "loyalty_redemption_account" | "loyalty_redemption_cost_center" | "unrealized_profit_loss_account" | "against_income_account" | "subscription" | "from_date" | "to_date" | "update_auto_repeat_reference" | "inter_company_invoice_reference") ? {
|
|
202
202
|
status: "Internal Transfer" | "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled";
|
|
203
203
|
docstatus: number;
|
|
204
204
|
name: string;
|
|
@@ -326,12 +326,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
326
326
|
base_tax_amount?: number | undefined;
|
|
327
327
|
}[] | null | undefined;
|
|
328
328
|
sales_team?: any[] | null | undefined;
|
|
329
|
+
outstanding_amount?: number | null | undefined;
|
|
329
330
|
paid_amount?: number | null | undefined;
|
|
330
331
|
base_paid_amount?: number | null | undefined;
|
|
331
332
|
remarks?: string | null | undefined;
|
|
332
333
|
due_date?: string | null | undefined;
|
|
333
334
|
total_advance?: number | null | undefined;
|
|
334
|
-
outstanding_amount?: number | null | undefined;
|
|
335
335
|
write_off_amount?: number | null | undefined;
|
|
336
336
|
base_write_off_amount?: number | null | undefined;
|
|
337
337
|
payment_terms_template?: string | null | undefined;
|
|
@@ -359,8 +359,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
359
359
|
amount: number;
|
|
360
360
|
mode_of_payment: string;
|
|
361
361
|
base_amount?: number | null | undefined;
|
|
362
|
-
reference_no?: string | null | undefined;
|
|
363
362
|
account?: string | null | undefined;
|
|
363
|
+
reference_no?: string | null | undefined;
|
|
364
364
|
clearance_date?: string | null | undefined;
|
|
365
365
|
}[] | null | undefined;
|
|
366
366
|
base_change_amount?: number | null | undefined;
|
|
@@ -380,7 +380,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
380
380
|
to_date?: string | null | undefined;
|
|
381
381
|
update_auto_repeat_reference?: string | null | undefined;
|
|
382
382
|
inter_company_invoice_reference?: string | null | undefined;
|
|
383
|
-
}[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "
|
|
383
|
+
}[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "payment_terms_template" | "party_account_currency" | "advances" | "payment_schedule" | "company_tax_id" | "pos_profile" | "named_place" | "coupon_code" | "additional_discount_account" | "timesheets" | "total_billing_hours" | "total_billing_amount" | "cash_bank_account" | "payments" | "base_change_amount" | "change_amount" | "account_for_change_amount" | "write_off_account" | "write_off_cost_center" | "loyalty_points" | "loyalty_amount" | "loyalty_program" | "loyalty_redemption_account" | "loyalty_redemption_cost_center" | "unrealized_profit_loss_account" | "against_income_account" | "subscription" | "from_date" | "to_date" | "update_auto_repeat_reference" | "inter_company_invoice_reference")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
384
384
|
getById: ({ resourceId, priority, }: {
|
|
385
385
|
resourceId: string;
|
|
386
386
|
priority?: number;
|
|
@@ -599,12 +599,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
599
599
|
base_tax_amount?: number | undefined;
|
|
600
600
|
}[] | null | undefined;
|
|
601
601
|
sales_team?: any[] | null | undefined;
|
|
602
|
+
outstanding_amount?: number | null | undefined;
|
|
602
603
|
paid_amount?: number | null | undefined;
|
|
603
604
|
base_paid_amount?: number | null | undefined;
|
|
604
605
|
remarks?: string | null | undefined;
|
|
605
606
|
due_date?: string | null | undefined;
|
|
606
607
|
total_advance?: number | null | undefined;
|
|
607
|
-
outstanding_amount?: number | null | undefined;
|
|
608
608
|
write_off_amount?: number | null | undefined;
|
|
609
609
|
base_write_off_amount?: number | null | undefined;
|
|
610
610
|
payment_terms_template?: string | null | undefined;
|
|
@@ -632,8 +632,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
632
632
|
amount: number;
|
|
633
633
|
mode_of_payment: string;
|
|
634
634
|
base_amount?: number | null | undefined;
|
|
635
|
-
reference_no?: string | null | undefined;
|
|
636
635
|
account?: string | null | undefined;
|
|
636
|
+
reference_no?: string | null | undefined;
|
|
637
637
|
clearance_date?: string | null | undefined;
|
|
638
638
|
}[] | null | undefined;
|
|
639
639
|
base_change_amount?: number | null | undefined;
|
|
@@ -832,13 +832,13 @@ export declare class ERPNextSalesInvoice {
|
|
|
832
832
|
base_tax_amount?: number | undefined;
|
|
833
833
|
}[] | null | undefined;
|
|
834
834
|
sales_team?: any[] | null | undefined;
|
|
835
|
+
outstanding_amount?: number | null | undefined;
|
|
835
836
|
paid_amount?: number | null | undefined;
|
|
836
837
|
base_paid_amount?: number | null | undefined;
|
|
837
838
|
remarks?: string | null | undefined;
|
|
838
839
|
due_date?: string | null | undefined;
|
|
839
840
|
update_stock?: 0 | 1 | undefined;
|
|
840
841
|
total_advance?: number | null | undefined;
|
|
841
|
-
outstanding_amount?: number | null | undefined;
|
|
842
842
|
write_off_amount?: number | null | undefined;
|
|
843
843
|
base_write_off_amount?: number | null | undefined;
|
|
844
844
|
allocate_advances_automatically?: 0 | 1 | undefined;
|
|
@@ -877,8 +877,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
877
877
|
amount: number;
|
|
878
878
|
mode_of_payment: string;
|
|
879
879
|
base_amount?: number | null | undefined;
|
|
880
|
-
reference_no?: string | null | undefined;
|
|
881
880
|
account?: string | null | undefined;
|
|
881
|
+
reference_no?: string | null | undefined;
|
|
882
882
|
clearance_date?: string | null | undefined;
|
|
883
883
|
}[] | null | undefined;
|
|
884
884
|
base_change_amount?: number | null | undefined;
|
|
@@ -1124,12 +1124,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1124
1124
|
base_tax_amount?: number | undefined;
|
|
1125
1125
|
}[] | null | undefined;
|
|
1126
1126
|
sales_team?: any[] | null | undefined;
|
|
1127
|
+
outstanding_amount?: number | null | undefined;
|
|
1127
1128
|
paid_amount?: number | null | undefined;
|
|
1128
1129
|
base_paid_amount?: number | null | undefined;
|
|
1129
1130
|
remarks?: string | null | undefined;
|
|
1130
1131
|
due_date?: string | null | undefined;
|
|
1131
1132
|
total_advance?: number | null | undefined;
|
|
1132
|
-
outstanding_amount?: number | null | undefined;
|
|
1133
1133
|
write_off_amount?: number | null | undefined;
|
|
1134
1134
|
base_write_off_amount?: number | null | undefined;
|
|
1135
1135
|
payment_terms_template?: string | null | undefined;
|
|
@@ -1157,8 +1157,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1157
1157
|
amount: number;
|
|
1158
1158
|
mode_of_payment: string;
|
|
1159
1159
|
base_amount?: number | null | undefined;
|
|
1160
|
-
reference_no?: string | null | undefined;
|
|
1161
1160
|
account?: string | null | undefined;
|
|
1161
|
+
reference_no?: string | null | undefined;
|
|
1162
1162
|
clearance_date?: string | null | undefined;
|
|
1163
1163
|
}[] | null | undefined;
|
|
1164
1164
|
base_change_amount?: number | null | undefined;
|
|
@@ -1357,13 +1357,13 @@ export declare class ERPNextSalesInvoice {
|
|
|
1357
1357
|
base_tax_amount?: number | undefined;
|
|
1358
1358
|
}[] | null | undefined;
|
|
1359
1359
|
sales_team?: any[] | null | undefined;
|
|
1360
|
+
outstanding_amount?: number | null | undefined;
|
|
1360
1361
|
paid_amount?: number | null | undefined;
|
|
1361
1362
|
base_paid_amount?: number | null | undefined;
|
|
1362
1363
|
remarks?: string | null | undefined;
|
|
1363
1364
|
due_date?: string | null | undefined;
|
|
1364
1365
|
update_stock?: 0 | 1 | undefined;
|
|
1365
1366
|
total_advance?: number | null | undefined;
|
|
1366
|
-
outstanding_amount?: number | null | undefined;
|
|
1367
1367
|
write_off_amount?: number | null | undefined;
|
|
1368
1368
|
base_write_off_amount?: number | null | undefined;
|
|
1369
1369
|
allocate_advances_automatically?: 0 | 1 | undefined;
|
|
@@ -1402,8 +1402,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1402
1402
|
amount: number;
|
|
1403
1403
|
mode_of_payment: string;
|
|
1404
1404
|
base_amount?: number | null | undefined;
|
|
1405
|
-
reference_no?: string | null | undefined;
|
|
1406
1405
|
account?: string | null | undefined;
|
|
1406
|
+
reference_no?: string | null | undefined;
|
|
1407
1407
|
clearance_date?: string | null | undefined;
|
|
1408
1408
|
}[] | null | undefined;
|
|
1409
1409
|
base_change_amount?: number | null | undefined;
|
|
@@ -1649,12 +1649,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1649
1649
|
base_tax_amount?: number | undefined;
|
|
1650
1650
|
}[] | null | undefined;
|
|
1651
1651
|
sales_team?: any[] | null | undefined;
|
|
1652
|
+
outstanding_amount?: number | null | undefined;
|
|
1652
1653
|
paid_amount?: number | null | undefined;
|
|
1653
1654
|
base_paid_amount?: number | null | undefined;
|
|
1654
1655
|
remarks?: string | null | undefined;
|
|
1655
1656
|
due_date?: string | null | undefined;
|
|
1656
1657
|
total_advance?: number | null | undefined;
|
|
1657
|
-
outstanding_amount?: number | null | undefined;
|
|
1658
1658
|
write_off_amount?: number | null | undefined;
|
|
1659
1659
|
base_write_off_amount?: number | null | undefined;
|
|
1660
1660
|
payment_terms_template?: string | null | undefined;
|
|
@@ -1682,8 +1682,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1682
1682
|
amount: number;
|
|
1683
1683
|
mode_of_payment: string;
|
|
1684
1684
|
base_amount?: number | null | undefined;
|
|
1685
|
-
reference_no?: string | null | undefined;
|
|
1686
1685
|
account?: string | null | undefined;
|
|
1686
|
+
reference_no?: string | null | undefined;
|
|
1687
1687
|
clearance_date?: string | null | undefined;
|
|
1688
1688
|
}[] | null | undefined;
|
|
1689
1689
|
base_change_amount?: number | null | undefined;
|
|
@@ -1925,12 +1925,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1925
1925
|
base_tax_amount?: number | undefined;
|
|
1926
1926
|
}[] | null | undefined;
|
|
1927
1927
|
sales_team?: any[] | null | undefined;
|
|
1928
|
+
outstanding_amount?: number | null | undefined;
|
|
1928
1929
|
paid_amount?: number | null | undefined;
|
|
1929
1930
|
base_paid_amount?: number | null | undefined;
|
|
1930
1931
|
remarks?: string | null | undefined;
|
|
1931
1932
|
due_date?: string | null | undefined;
|
|
1932
1933
|
total_advance?: number | null | undefined;
|
|
1933
|
-
outstanding_amount?: number | null | undefined;
|
|
1934
1934
|
write_off_amount?: number | null | undefined;
|
|
1935
1935
|
base_write_off_amount?: number | null | undefined;
|
|
1936
1936
|
payment_terms_template?: string | null | undefined;
|
|
@@ -1958,8 +1958,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1958
1958
|
amount: number;
|
|
1959
1959
|
mode_of_payment: string;
|
|
1960
1960
|
base_amount?: number | null | undefined;
|
|
1961
|
-
reference_no?: string | null | undefined;
|
|
1962
1961
|
account?: string | null | undefined;
|
|
1962
|
+
reference_no?: string | null | undefined;
|
|
1963
1963
|
clearance_date?: string | null | undefined;
|
|
1964
1964
|
}[] | null | undefined;
|
|
1965
1965
|
base_change_amount?: number | null | undefined;
|
|
@@ -2197,12 +2197,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2197
2197
|
base_tax_amount?: number | undefined;
|
|
2198
2198
|
}[] | null | undefined;
|
|
2199
2199
|
sales_team?: any[] | null | undefined;
|
|
2200
|
+
outstanding_amount?: number | null | undefined;
|
|
2200
2201
|
paid_amount?: number | null | undefined;
|
|
2201
2202
|
base_paid_amount?: number | null | undefined;
|
|
2202
2203
|
remarks?: string | null | undefined;
|
|
2203
2204
|
due_date?: string | null | undefined;
|
|
2204
2205
|
total_advance?: number | null | undefined;
|
|
2205
|
-
outstanding_amount?: number | null | undefined;
|
|
2206
2206
|
write_off_amount?: number | null | undefined;
|
|
2207
2207
|
base_write_off_amount?: number | null | undefined;
|
|
2208
2208
|
payment_terms_template?: string | null | undefined;
|
|
@@ -2230,8 +2230,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
2230
2230
|
amount: number;
|
|
2231
2231
|
mode_of_payment: string;
|
|
2232
2232
|
base_amount?: number | null | undefined;
|
|
2233
|
-
reference_no?: string | null | undefined;
|
|
2234
2233
|
account?: string | null | undefined;
|
|
2234
|
+
reference_no?: string | null | undefined;
|
|
2235
2235
|
clearance_date?: string | null | undefined;
|
|
2236
2236
|
}[] | null | undefined;
|
|
2237
2237
|
base_change_amount?: number | null | undefined;
|
|
@@ -2467,12 +2467,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2467
2467
|
base_tax_amount?: number | undefined;
|
|
2468
2468
|
}[] | null | undefined;
|
|
2469
2469
|
sales_team?: any[] | null | undefined;
|
|
2470
|
+
outstanding_amount?: number | null | undefined;
|
|
2470
2471
|
paid_amount?: number | null | undefined;
|
|
2471
2472
|
base_paid_amount?: number | null | undefined;
|
|
2472
2473
|
remarks?: string | null | undefined;
|
|
2473
2474
|
due_date?: string | null | undefined;
|
|
2474
2475
|
total_advance?: number | null | undefined;
|
|
2475
|
-
outstanding_amount?: number | null | undefined;
|
|
2476
2476
|
write_off_amount?: number | null | undefined;
|
|
2477
2477
|
base_write_off_amount?: number | null | undefined;
|
|
2478
2478
|
payment_terms_template?: string | null | undefined;
|
|
@@ -2500,8 +2500,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
2500
2500
|
amount: number;
|
|
2501
2501
|
mode_of_payment: string;
|
|
2502
2502
|
base_amount?: number | null | undefined;
|
|
2503
|
-
reference_no?: string | null | undefined;
|
|
2504
2503
|
account?: string | null | undefined;
|
|
2504
|
+
reference_no?: string | null | undefined;
|
|
2505
2505
|
clearance_date?: string | null | undefined;
|
|
2506
2506
|
}[] | null | undefined;
|
|
2507
2507
|
base_change_amount?: number | null | undefined;
|
|
@@ -2737,12 +2737,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2737
2737
|
base_tax_amount?: number | undefined;
|
|
2738
2738
|
}[] | null | undefined;
|
|
2739
2739
|
sales_team?: any[] | null | undefined;
|
|
2740
|
+
outstanding_amount?: number | null | undefined;
|
|
2740
2741
|
paid_amount?: number | null | undefined;
|
|
2741
2742
|
base_paid_amount?: number | null | undefined;
|
|
2742
2743
|
remarks?: string | null | undefined;
|
|
2743
2744
|
due_date?: string | null | undefined;
|
|
2744
2745
|
total_advance?: number | null | undefined;
|
|
2745
|
-
outstanding_amount?: number | null | undefined;
|
|
2746
2746
|
write_off_amount?: number | null | undefined;
|
|
2747
2747
|
base_write_off_amount?: number | null | undefined;
|
|
2748
2748
|
payment_terms_template?: string | null | undefined;
|
|
@@ -2770,8 +2770,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
2770
2770
|
amount: number;
|
|
2771
2771
|
mode_of_payment: string;
|
|
2772
2772
|
base_amount?: number | null | undefined;
|
|
2773
|
-
reference_no?: string | null | undefined;
|
|
2774
2773
|
account?: string | null | undefined;
|
|
2774
|
+
reference_no?: string | null | undefined;
|
|
2775
2775
|
clearance_date?: string | null | undefined;
|
|
2776
2776
|
}[] | null | undefined;
|
|
2777
2777
|
base_change_amount?: number | null | undefined;
|
|
@@ -3006,12 +3006,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
3006
3006
|
base_tax_amount?: number | undefined;
|
|
3007
3007
|
}[] | null | undefined;
|
|
3008
3008
|
sales_team?: any[] | null | undefined;
|
|
3009
|
+
outstanding_amount?: number | null | undefined;
|
|
3009
3010
|
paid_amount?: number | null | undefined;
|
|
3010
3011
|
base_paid_amount?: number | null | undefined;
|
|
3011
3012
|
remarks?: string | null | undefined;
|
|
3012
3013
|
due_date?: string | null | undefined;
|
|
3013
3014
|
total_advance?: number | null | undefined;
|
|
3014
|
-
outstanding_amount?: number | null | undefined;
|
|
3015
3015
|
write_off_amount?: number | null | undefined;
|
|
3016
3016
|
base_write_off_amount?: number | null | undefined;
|
|
3017
3017
|
payment_terms_template?: string | null | undefined;
|
|
@@ -3039,8 +3039,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
3039
3039
|
amount: number;
|
|
3040
3040
|
mode_of_payment: string;
|
|
3041
3041
|
base_amount?: number | null | undefined;
|
|
3042
|
-
reference_no?: string | null | undefined;
|
|
3043
3042
|
account?: string | null | undefined;
|
|
3043
|
+
reference_no?: string | null | undefined;
|
|
3044
3044
|
clearance_date?: string | null | undefined;
|
|
3045
3045
|
}[] | null | undefined;
|
|
3046
3046
|
base_change_amount?: number | null | undefined;
|
|
@@ -3276,12 +3276,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
3276
3276
|
base_tax_amount?: number | undefined;
|
|
3277
3277
|
}[] | null | undefined;
|
|
3278
3278
|
sales_team?: any[] | null | undefined;
|
|
3279
|
+
outstanding_amount?: number | null | undefined;
|
|
3279
3280
|
paid_amount?: number | null | undefined;
|
|
3280
3281
|
base_paid_amount?: number | null | undefined;
|
|
3281
3282
|
remarks?: string | null | undefined;
|
|
3282
3283
|
due_date?: string | null | undefined;
|
|
3283
3284
|
total_advance?: number | null | undefined;
|
|
3284
|
-
outstanding_amount?: number | null | undefined;
|
|
3285
3285
|
write_off_amount?: number | null | undefined;
|
|
3286
3286
|
base_write_off_amount?: number | null | undefined;
|
|
3287
3287
|
payment_terms_template?: string | null | undefined;
|
|
@@ -3309,8 +3309,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
3309
3309
|
amount: number;
|
|
3310
3310
|
mode_of_payment: string;
|
|
3311
3311
|
base_amount?: number | null | undefined;
|
|
3312
|
-
reference_no?: string | null | undefined;
|
|
3313
3312
|
account?: string | null | undefined;
|
|
3313
|
+
reference_no?: string | null | undefined;
|
|
3314
3314
|
clearance_date?: string | null | undefined;
|
|
3315
3315
|
}[] | null | undefined;
|
|
3316
3316
|
base_change_amount?: number | null | undefined;
|
|
@@ -2,15 +2,40 @@ import { z } from "zod";
|
|
|
2
2
|
declare const PaymentEntryReference: z.ZodObject<{
|
|
3
3
|
reference_doctype: z.ZodString;
|
|
4
4
|
reference_name: z.ZodString;
|
|
5
|
+
payment_termn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
total_amount: z.ZodNumber & {
|
|
9
|
+
__optionalForInput: true;
|
|
10
|
+
};
|
|
11
|
+
outstanding_amount: z.ZodNumber & {
|
|
12
|
+
__optionalForInput: true;
|
|
13
|
+
};
|
|
5
14
|
allocated_amount: z.ZodNumber;
|
|
15
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
16
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
17
|
}, "strip", z.ZodTypeAny, {
|
|
7
18
|
reference_doctype: string;
|
|
8
19
|
reference_name: string;
|
|
20
|
+
total_amount: number;
|
|
21
|
+
outstanding_amount: number;
|
|
9
22
|
allocated_amount: number;
|
|
23
|
+
account_type?: string | null | undefined;
|
|
24
|
+
payment_termn?: string | null | undefined;
|
|
25
|
+
payment_type?: string | null | undefined;
|
|
26
|
+
account?: string | null | undefined;
|
|
27
|
+
payment_request?: string | null | undefined;
|
|
10
28
|
}, {
|
|
11
29
|
reference_doctype: string;
|
|
12
30
|
reference_name: string;
|
|
31
|
+
total_amount: number;
|
|
32
|
+
outstanding_amount: number;
|
|
13
33
|
allocated_amount: number;
|
|
34
|
+
account_type?: string | null | undefined;
|
|
35
|
+
payment_termn?: string | null | undefined;
|
|
36
|
+
payment_type?: string | null | undefined;
|
|
37
|
+
account?: string | null | undefined;
|
|
38
|
+
payment_request?: string | null | undefined;
|
|
14
39
|
}>;
|
|
15
40
|
export type PaymentEntryReferenceType = z.infer<typeof PaymentEntryReference>;
|
|
16
41
|
export declare const PaymentEntry: z.ZodObject<{
|
|
@@ -89,15 +114,40 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
89
114
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
115
|
reference_doctype: z.ZodString;
|
|
91
116
|
reference_name: z.ZodString;
|
|
117
|
+
payment_termn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
118
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
119
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
total_amount: z.ZodNumber & {
|
|
121
|
+
__optionalForInput: true;
|
|
122
|
+
};
|
|
123
|
+
outstanding_amount: z.ZodNumber & {
|
|
124
|
+
__optionalForInput: true;
|
|
125
|
+
};
|
|
92
126
|
allocated_amount: z.ZodNumber;
|
|
127
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
129
|
}, "strip", z.ZodTypeAny, {
|
|
94
130
|
reference_doctype: string;
|
|
95
131
|
reference_name: string;
|
|
132
|
+
total_amount: number;
|
|
133
|
+
outstanding_amount: number;
|
|
96
134
|
allocated_amount: number;
|
|
135
|
+
account_type?: string | null | undefined;
|
|
136
|
+
payment_termn?: string | null | undefined;
|
|
137
|
+
payment_type?: string | null | undefined;
|
|
138
|
+
account?: string | null | undefined;
|
|
139
|
+
payment_request?: string | null | undefined;
|
|
97
140
|
}, {
|
|
98
141
|
reference_doctype: string;
|
|
99
142
|
reference_name: string;
|
|
143
|
+
total_amount: number;
|
|
144
|
+
outstanding_amount: number;
|
|
100
145
|
allocated_amount: number;
|
|
146
|
+
account_type?: string | null | undefined;
|
|
147
|
+
payment_termn?: string | null | undefined;
|
|
148
|
+
payment_type?: string | null | undefined;
|
|
149
|
+
account?: string | null | undefined;
|
|
150
|
+
payment_request?: string | null | undefined;
|
|
101
151
|
}>, "many">>;
|
|
102
152
|
taxes: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
103
153
|
deductions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -150,7 +200,14 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
150
200
|
references?: {
|
|
151
201
|
reference_doctype: string;
|
|
152
202
|
reference_name: string;
|
|
203
|
+
total_amount: number;
|
|
204
|
+
outstanding_amount: number;
|
|
153
205
|
allocated_amount: number;
|
|
206
|
+
account_type?: string | null | undefined;
|
|
207
|
+
payment_termn?: string | null | undefined;
|
|
208
|
+
payment_type?: string | null | undefined;
|
|
209
|
+
account?: string | null | undefined;
|
|
210
|
+
payment_request?: string | null | undefined;
|
|
154
211
|
}[] | undefined;
|
|
155
212
|
deductions?: unknown[] | undefined;
|
|
156
213
|
}, {
|
|
@@ -179,8 +236,8 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
179
236
|
base_total_taxes_and_charges?: number | undefined;
|
|
180
237
|
total_taxes_and_charges?: number | undefined;
|
|
181
238
|
taxes?: unknown[] | undefined;
|
|
182
|
-
payment_number?: string | undefined;
|
|
183
239
|
payment_type?: "Receive" | "Pay" | "Internal Transfer" | undefined;
|
|
240
|
+
payment_number?: string | undefined;
|
|
184
241
|
internal_reference?: string | undefined;
|
|
185
242
|
mode_of_payment?: string | undefined;
|
|
186
243
|
custom_external_payment_method?: string | undefined;
|
|
@@ -202,7 +259,14 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
202
259
|
references?: {
|
|
203
260
|
reference_doctype: string;
|
|
204
261
|
reference_name: string;
|
|
262
|
+
total_amount: number;
|
|
263
|
+
outstanding_amount: number;
|
|
205
264
|
allocated_amount: number;
|
|
265
|
+
account_type?: string | null | undefined;
|
|
266
|
+
payment_termn?: string | null | undefined;
|
|
267
|
+
payment_type?: string | null | undefined;
|
|
268
|
+
account?: string | null | undefined;
|
|
269
|
+
payment_request?: string | null | undefined;
|
|
206
270
|
}[] | undefined;
|
|
207
271
|
deductions?: unknown[] | undefined;
|
|
208
272
|
}>;
|
|
@@ -254,15 +318,40 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
254
318
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
255
319
|
reference_doctype: z.ZodString;
|
|
256
320
|
reference_name: z.ZodString;
|
|
321
|
+
payment_termn: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
322
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
323
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
324
|
+
total_amount: z.ZodNumber & {
|
|
325
|
+
__optionalForInput: true;
|
|
326
|
+
};
|
|
327
|
+
outstanding_amount: z.ZodNumber & {
|
|
328
|
+
__optionalForInput: true;
|
|
329
|
+
};
|
|
257
330
|
allocated_amount: z.ZodNumber;
|
|
331
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
332
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
258
333
|
}, "strip", z.ZodTypeAny, {
|
|
259
334
|
reference_doctype: string;
|
|
260
335
|
reference_name: string;
|
|
336
|
+
total_amount: number;
|
|
337
|
+
outstanding_amount: number;
|
|
261
338
|
allocated_amount: number;
|
|
339
|
+
account_type?: string | null | undefined;
|
|
340
|
+
payment_termn?: string | null | undefined;
|
|
341
|
+
payment_type?: string | null | undefined;
|
|
342
|
+
account?: string | null | undefined;
|
|
343
|
+
payment_request?: string | null | undefined;
|
|
262
344
|
}, {
|
|
263
345
|
reference_doctype: string;
|
|
264
346
|
reference_name: string;
|
|
347
|
+
total_amount: number;
|
|
348
|
+
outstanding_amount: number;
|
|
265
349
|
allocated_amount: number;
|
|
350
|
+
account_type?: string | null | undefined;
|
|
351
|
+
payment_termn?: string | null | undefined;
|
|
352
|
+
payment_type?: string | null | undefined;
|
|
353
|
+
account?: string | null | undefined;
|
|
354
|
+
payment_request?: string | null | undefined;
|
|
266
355
|
}>, "many">>;
|
|
267
356
|
taxes: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
268
357
|
deductions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -317,7 +406,14 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
317
406
|
references?: {
|
|
318
407
|
reference_doctype: string;
|
|
319
408
|
reference_name: string;
|
|
409
|
+
total_amount: number;
|
|
410
|
+
outstanding_amount: number;
|
|
320
411
|
allocated_amount: number;
|
|
412
|
+
account_type?: string | null | undefined;
|
|
413
|
+
payment_termn?: string | null | undefined;
|
|
414
|
+
payment_type?: string | null | undefined;
|
|
415
|
+
account?: string | null | undefined;
|
|
416
|
+
payment_request?: string | null | undefined;
|
|
321
417
|
}[] | undefined;
|
|
322
418
|
deductions?: unknown[] | undefined;
|
|
323
419
|
}, {
|
|
@@ -333,8 +429,8 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
333
429
|
base_total_taxes_and_charges?: number | undefined;
|
|
334
430
|
total_taxes_and_charges?: number | undefined;
|
|
335
431
|
taxes?: unknown[] | undefined;
|
|
336
|
-
payment_number?: string | undefined;
|
|
337
432
|
payment_type?: "Receive" | "Pay" | "Internal Transfer" | undefined;
|
|
433
|
+
payment_number?: string | undefined;
|
|
338
434
|
payment_order_status?: "Initiated" | "Payment Ordered" | undefined;
|
|
339
435
|
internal_reference?: string | undefined;
|
|
340
436
|
mode_of_payment?: string | undefined;
|
|
@@ -369,7 +465,14 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
369
465
|
references?: {
|
|
370
466
|
reference_doctype: string;
|
|
371
467
|
reference_name: string;
|
|
468
|
+
total_amount: number;
|
|
469
|
+
outstanding_amount: number;
|
|
372
470
|
allocated_amount: number;
|
|
471
|
+
account_type?: string | null | undefined;
|
|
472
|
+
payment_termn?: string | null | undefined;
|
|
473
|
+
payment_type?: string | null | undefined;
|
|
474
|
+
account?: string | null | undefined;
|
|
475
|
+
payment_request?: string | null | undefined;
|
|
373
476
|
}[] | undefined;
|
|
374
477
|
deductions?: unknown[] | undefined;
|
|
375
478
|
}>;
|
|
@@ -7,7 +7,14 @@ 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
|
+
payment_termn: zod_1.z.string().optional().nullable(),
|
|
11
|
+
account_type: zod_1.z.string().optional().nullable(),
|
|
12
|
+
payment_type: zod_1.z.string().optional().nullable(),
|
|
13
|
+
total_amount: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.number()),
|
|
14
|
+
outstanding_amount: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.number()),
|
|
10
15
|
allocated_amount: zod_1.z.number(),
|
|
16
|
+
account: zod_1.z.string().optional().nullable(),
|
|
17
|
+
payment_request: zod_1.z.string().optional().nullable(),
|
|
11
18
|
})
|
|
12
19
|
.describe("Payment Entry Reference");
|
|
13
20
|
const PaymentTypes = zod_1.z.enum(["Receive", "Pay", "Internal Transfer"]);
|
|
@@ -651,6 +651,7 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
651
651
|
pr_detail?: string | null | undefined;
|
|
652
652
|
}[] | null | undefined;
|
|
653
653
|
supplier?: string | null | undefined;
|
|
654
|
+
outstanding_amount?: number | null | undefined;
|
|
654
655
|
paid_amount?: number | null | undefined;
|
|
655
656
|
base_paid_amount?: number | null | undefined;
|
|
656
657
|
remarks?: string | null | undefined;
|
|
@@ -671,7 +672,6 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
671
672
|
taxes_and_charges_added?: number | null | undefined;
|
|
672
673
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
673
674
|
total_advance?: number | null | undefined;
|
|
674
|
-
outstanding_amount?: number | null | undefined;
|
|
675
675
|
write_off_amount?: number | null | undefined;
|
|
676
676
|
base_write_off_amount?: number | null | undefined;
|
|
677
677
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -822,6 +822,7 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
822
822
|
pr_detail?: string | null | undefined;
|
|
823
823
|
}[] | null | undefined;
|
|
824
824
|
supplier?: string | null | undefined;
|
|
825
|
+
outstanding_amount?: number | null | undefined;
|
|
825
826
|
paid_amount?: number | null | undefined;
|
|
826
827
|
base_paid_amount?: number | null | undefined;
|
|
827
828
|
remarks?: string | null | undefined;
|
|
@@ -842,7 +843,6 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
842
843
|
taxes_and_charges_added?: number | null | undefined;
|
|
843
844
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
844
845
|
total_advance?: number | null | undefined;
|
|
845
|
-
outstanding_amount?: number | null | undefined;
|
|
846
846
|
write_off_amount?: number | null | undefined;
|
|
847
847
|
base_write_off_amount?: number | null | undefined;
|
|
848
848
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1459,6 +1459,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1459
1459
|
pr_detail?: string | null | undefined;
|
|
1460
1460
|
}[] | null | undefined;
|
|
1461
1461
|
supplier?: string | null | undefined;
|
|
1462
|
+
outstanding_amount?: number | null | undefined;
|
|
1462
1463
|
paid_amount?: number | null | undefined;
|
|
1463
1464
|
base_paid_amount?: number | null | undefined;
|
|
1464
1465
|
remarks?: string | null | undefined;
|
|
@@ -1479,7 +1480,6 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1479
1480
|
taxes_and_charges_added?: number | null | undefined;
|
|
1480
1481
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1481
1482
|
total_advance?: number | null | undefined;
|
|
1482
|
-
outstanding_amount?: number | null | undefined;
|
|
1483
1483
|
write_off_amount?: number | null | undefined;
|
|
1484
1484
|
base_write_off_amount?: number | null | undefined;
|
|
1485
1485
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1660,6 +1660,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1660
1660
|
pr_detail?: string | null | undefined;
|
|
1661
1661
|
}[] | null | undefined;
|
|
1662
1662
|
supplier?: string | null | undefined;
|
|
1663
|
+
outstanding_amount?: number | null | undefined;
|
|
1663
1664
|
paid_amount?: number | null | undefined;
|
|
1664
1665
|
base_paid_amount?: number | null | undefined;
|
|
1665
1666
|
remarks?: string | null | undefined;
|
|
@@ -1680,7 +1681,6 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1680
1681
|
taxes_and_charges_added?: number | null | undefined;
|
|
1681
1682
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1682
1683
|
total_advance?: number | null | undefined;
|
|
1683
|
-
outstanding_amount?: number | null | undefined;
|
|
1684
1684
|
write_off_amount?: number | null | undefined;
|
|
1685
1685
|
base_write_off_amount?: number | null | undefined;
|
|
1686
1686
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -278,15 +278,15 @@ export declare const SalesInvoicePayment: z.ZodObject<{
|
|
|
278
278
|
amount: number;
|
|
279
279
|
mode_of_payment: string;
|
|
280
280
|
base_amount?: number | null | undefined;
|
|
281
|
-
reference_no?: string | null | undefined;
|
|
282
281
|
account?: string | null | undefined;
|
|
282
|
+
reference_no?: string | null | undefined;
|
|
283
283
|
clearance_date?: string | null | undefined;
|
|
284
284
|
}, {
|
|
285
285
|
amount: number;
|
|
286
286
|
mode_of_payment: string;
|
|
287
287
|
base_amount?: number | null | undefined;
|
|
288
|
-
reference_no?: string | null | undefined;
|
|
289
288
|
account?: string | null | undefined;
|
|
289
|
+
reference_no?: string | null | undefined;
|
|
290
290
|
clearance_date?: string | null | undefined;
|
|
291
291
|
}>;
|
|
292
292
|
export type SalesInvoicePaymentType = z.infer<typeof SalesInvoicePayment>;
|
|
@@ -713,15 +713,15 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
713
713
|
amount: number;
|
|
714
714
|
mode_of_payment: string;
|
|
715
715
|
base_amount?: number | null | undefined;
|
|
716
|
-
reference_no?: string | null | undefined;
|
|
717
716
|
account?: string | null | undefined;
|
|
717
|
+
reference_no?: string | null | undefined;
|
|
718
718
|
clearance_date?: string | null | undefined;
|
|
719
719
|
}, {
|
|
720
720
|
amount: number;
|
|
721
721
|
mode_of_payment: string;
|
|
722
722
|
base_amount?: number | null | undefined;
|
|
723
|
-
reference_no?: string | null | undefined;
|
|
724
723
|
account?: string | null | undefined;
|
|
724
|
+
reference_no?: string | null | undefined;
|
|
725
725
|
clearance_date?: string | null | undefined;
|
|
726
726
|
}>, "many">>>;
|
|
727
727
|
base_paid_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1018,12 +1018,12 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
1018
1018
|
base_tax_amount?: number | undefined;
|
|
1019
1019
|
}[] | null | undefined;
|
|
1020
1020
|
sales_team?: any[] | null | undefined;
|
|
1021
|
+
outstanding_amount?: number | null | undefined;
|
|
1021
1022
|
paid_amount?: number | null | undefined;
|
|
1022
1023
|
base_paid_amount?: number | null | undefined;
|
|
1023
1024
|
remarks?: string | null | undefined;
|
|
1024
1025
|
due_date?: string | null | undefined;
|
|
1025
1026
|
total_advance?: number | null | undefined;
|
|
1026
|
-
outstanding_amount?: number | null | undefined;
|
|
1027
1027
|
write_off_amount?: number | null | undefined;
|
|
1028
1028
|
base_write_off_amount?: number | null | undefined;
|
|
1029
1029
|
payment_terms_template?: string | null | undefined;
|
|
@@ -1051,8 +1051,8 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
1051
1051
|
amount: number;
|
|
1052
1052
|
mode_of_payment: string;
|
|
1053
1053
|
base_amount?: number | null | undefined;
|
|
1054
|
-
reference_no?: string | null | undefined;
|
|
1055
1054
|
account?: string | null | undefined;
|
|
1055
|
+
reference_no?: string | null | undefined;
|
|
1056
1056
|
clearance_date?: string | null | undefined;
|
|
1057
1057
|
}[] | null | undefined;
|
|
1058
1058
|
base_change_amount?: number | null | undefined;
|
|
@@ -1249,13 +1249,13 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
1249
1249
|
base_tax_amount?: number | undefined;
|
|
1250
1250
|
}[] | null | undefined;
|
|
1251
1251
|
sales_team?: any[] | null | undefined;
|
|
1252
|
+
outstanding_amount?: number | null | undefined;
|
|
1252
1253
|
paid_amount?: number | null | undefined;
|
|
1253
1254
|
base_paid_amount?: number | null | undefined;
|
|
1254
1255
|
remarks?: string | null | undefined;
|
|
1255
1256
|
due_date?: string | null | undefined;
|
|
1256
1257
|
update_stock?: unknown;
|
|
1257
1258
|
total_advance?: number | null | undefined;
|
|
1258
|
-
outstanding_amount?: number | null | undefined;
|
|
1259
1259
|
write_off_amount?: number | null | undefined;
|
|
1260
1260
|
base_write_off_amount?: number | null | undefined;
|
|
1261
1261
|
allocate_advances_automatically?: unknown;
|
|
@@ -1294,8 +1294,8 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
1294
1294
|
amount: number;
|
|
1295
1295
|
mode_of_payment: string;
|
|
1296
1296
|
base_amount?: number | null | undefined;
|
|
1297
|
-
reference_no?: string | null | undefined;
|
|
1298
1297
|
account?: string | null | undefined;
|
|
1298
|
+
reference_no?: string | null | undefined;
|
|
1299
1299
|
clearance_date?: string | null | undefined;
|
|
1300
1300
|
}[] | null | undefined;
|
|
1301
1301
|
base_change_amount?: number | null | undefined;
|
|
@@ -1783,15 +1783,15 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1783
1783
|
amount: number;
|
|
1784
1784
|
mode_of_payment: string;
|
|
1785
1785
|
base_amount?: number | null | undefined;
|
|
1786
|
-
reference_no?: string | null | undefined;
|
|
1787
1786
|
account?: string | null | undefined;
|
|
1787
|
+
reference_no?: string | null | undefined;
|
|
1788
1788
|
clearance_date?: string | null | undefined;
|
|
1789
1789
|
}, {
|
|
1790
1790
|
amount: number;
|
|
1791
1791
|
mode_of_payment: string;
|
|
1792
1792
|
base_amount?: number | null | undefined;
|
|
1793
|
-
reference_no?: string | null | undefined;
|
|
1794
1793
|
account?: string | null | undefined;
|
|
1794
|
+
reference_no?: string | null | undefined;
|
|
1795
1795
|
clearance_date?: string | null | undefined;
|
|
1796
1796
|
}>, "many">>>;
|
|
1797
1797
|
base_paid_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2119,12 +2119,12 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2119
2119
|
base_tax_amount?: number | undefined;
|
|
2120
2120
|
}[] | null | undefined;
|
|
2121
2121
|
sales_team?: any[] | null | undefined;
|
|
2122
|
+
outstanding_amount?: number | null | undefined;
|
|
2122
2123
|
paid_amount?: number | null | undefined;
|
|
2123
2124
|
base_paid_amount?: number | null | undefined;
|
|
2124
2125
|
remarks?: string | null | undefined;
|
|
2125
2126
|
due_date?: string | null | undefined;
|
|
2126
2127
|
total_advance?: number | null | undefined;
|
|
2127
|
-
outstanding_amount?: number | null | undefined;
|
|
2128
2128
|
write_off_amount?: number | null | undefined;
|
|
2129
2129
|
base_write_off_amount?: number | null | undefined;
|
|
2130
2130
|
payment_terms_template?: string | null | undefined;
|
|
@@ -2152,8 +2152,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2152
2152
|
amount: number;
|
|
2153
2153
|
mode_of_payment: string;
|
|
2154
2154
|
base_amount?: number | null | undefined;
|
|
2155
|
-
reference_no?: string | null | undefined;
|
|
2156
2155
|
account?: string | null | undefined;
|
|
2156
|
+
reference_no?: string | null | undefined;
|
|
2157
2157
|
clearance_date?: string | null | undefined;
|
|
2158
2158
|
}[] | null | undefined;
|
|
2159
2159
|
base_change_amount?: number | null | undefined;
|
|
@@ -2369,13 +2369,13 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2369
2369
|
base_tax_amount?: number | undefined;
|
|
2370
2370
|
}[] | null | undefined;
|
|
2371
2371
|
sales_team?: any[] | null | undefined;
|
|
2372
|
+
outstanding_amount?: number | null | undefined;
|
|
2372
2373
|
paid_amount?: number | null | undefined;
|
|
2373
2374
|
base_paid_amount?: number | null | undefined;
|
|
2374
2375
|
remarks?: string | null | undefined;
|
|
2375
2376
|
due_date?: string | null | undefined;
|
|
2376
2377
|
update_stock?: unknown;
|
|
2377
2378
|
total_advance?: number | null | undefined;
|
|
2378
|
-
outstanding_amount?: number | null | undefined;
|
|
2379
2379
|
write_off_amount?: number | null | undefined;
|
|
2380
2380
|
base_write_off_amount?: number | null | undefined;
|
|
2381
2381
|
allocate_advances_automatically?: unknown;
|
|
@@ -2414,8 +2414,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2414
2414
|
amount: number;
|
|
2415
2415
|
mode_of_payment: string;
|
|
2416
2416
|
base_amount?: number | null | undefined;
|
|
2417
|
-
reference_no?: string | null | undefined;
|
|
2418
2417
|
account?: string | null | undefined;
|
|
2418
|
+
reference_no?: string | null | undefined;
|
|
2419
2419
|
clearance_date?: string | null | undefined;
|
|
2420
2420
|
}[] | null | undefined;
|
|
2421
2421
|
base_change_amount?: number | null | undefined;
|
|
@@ -109,6 +109,7 @@ export declare const StockEntry: z.ZodObject<{
|
|
|
109
109
|
s_warehouse?: string | undefined;
|
|
110
110
|
basic_rate?: number | undefined;
|
|
111
111
|
}[];
|
|
112
|
+
total_amount: number;
|
|
112
113
|
is_opening: string;
|
|
113
114
|
apply_putaway_rule: number;
|
|
114
115
|
stock_entry_type: string;
|
|
@@ -123,7 +124,6 @@ export declare const StockEntry: z.ZodObject<{
|
|
|
123
124
|
value_difference: number;
|
|
124
125
|
total_additional_costs: number;
|
|
125
126
|
per_transferred: number;
|
|
126
|
-
total_amount: number;
|
|
127
127
|
additional_costs: string[];
|
|
128
128
|
amended_from?: string | undefined;
|
|
129
129
|
supplier_name?: string | undefined;
|
|
@@ -167,6 +167,7 @@ export declare const StockEntry: z.ZodObject<{
|
|
|
167
167
|
s_warehouse?: string | undefined;
|
|
168
168
|
basic_rate?: number | undefined;
|
|
169
169
|
}[];
|
|
170
|
+
total_amount: number;
|
|
170
171
|
is_opening: string;
|
|
171
172
|
apply_putaway_rule: number;
|
|
172
173
|
stock_entry_type: string;
|
|
@@ -181,7 +182,6 @@ export declare const StockEntry: z.ZodObject<{
|
|
|
181
182
|
value_difference: number;
|
|
182
183
|
total_additional_costs: number;
|
|
183
184
|
per_transferred: number;
|
|
184
|
-
total_amount: number;
|
|
185
185
|
additional_costs: string[];
|
|
186
186
|
amended_from?: string | undefined;
|
|
187
187
|
supplier_name?: string | undefined;
|