erpnext-queue-client 2.0.0-beta.1 → 2.1.0
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/purchaseInvoice.d.ts +9 -9
- package/dist/erpnext/doctypes/salesInvoice.d.ts +26 -26
- package/dist/erpnext/model/Account.d.ts +100 -3
- package/dist/erpnext/model/Account.js +68 -2
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +16 -0
- package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +3 -0
- package/dist/erpnext/model/ItemTaxTemplate.d.ts +3 -3
- package/dist/erpnext/model/PurchaseInvoice.d.ts +8 -8
- package/dist/erpnext/model/SalesInvoice.d.ts +18 -18
- package/dist/erpnext/model/SalesOrder.d.ts +16 -4
- package/dist/erpnext/model/SalesOrder.js +1 -0
- package/dist/erpnext/model/SalesTaxesAndCharges.d.ts +2 -2
- package/dist/erpnext/model/Supplier.d.ts +71 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -338,6 +338,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
338
338
|
parentfield: string;
|
|
339
339
|
description?: string | null | undefined;
|
|
340
340
|
_user_tags?: string | null | undefined;
|
|
341
|
+
account_currency?: string | null | undefined;
|
|
341
342
|
rate?: number | null | undefined;
|
|
342
343
|
cost_center?: string | null | undefined;
|
|
343
344
|
__unsaved?: number | null | undefined;
|
|
@@ -350,7 +351,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
350
351
|
included_in_print_rate?: number | null | undefined;
|
|
351
352
|
included_in_paid_amount?: number | null | undefined;
|
|
352
353
|
account_head?: string | null | undefined;
|
|
353
|
-
account_currency?: string | null | undefined;
|
|
354
354
|
tax_amount?: number | null | undefined;
|
|
355
355
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
356
356
|
base_tax_amount?: number | null | undefined;
|
|
@@ -523,6 +523,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
523
523
|
updateById: <TInput extends TInputModel extends undefined ? Partial<{
|
|
524
524
|
taxes: {
|
|
525
525
|
description?: string | null | undefined;
|
|
526
|
+
account_currency?: string | null | undefined;
|
|
526
527
|
rate?: number | null | undefined;
|
|
527
528
|
cost_center?: string | null | undefined;
|
|
528
529
|
__unsaved?: number | null | undefined;
|
|
@@ -535,7 +536,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
535
536
|
included_in_print_rate?: number | null | undefined;
|
|
536
537
|
included_in_paid_amount?: number | null | undefined;
|
|
537
538
|
account_head?: string | null | undefined;
|
|
538
|
-
account_currency?: string | null | undefined;
|
|
539
539
|
tax_amount?: number | null | undefined;
|
|
540
540
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
541
541
|
base_tax_amount?: number | null | undefined;
|
|
@@ -720,6 +720,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
720
720
|
parentfield: string;
|
|
721
721
|
description?: string | null | undefined;
|
|
722
722
|
_user_tags?: string | null | undefined;
|
|
723
|
+
account_currency?: string | null | undefined;
|
|
723
724
|
rate?: number | null | undefined;
|
|
724
725
|
cost_center?: string | null | undefined;
|
|
725
726
|
__unsaved?: number | null | undefined;
|
|
@@ -732,7 +733,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
732
733
|
included_in_print_rate?: number | null | undefined;
|
|
733
734
|
included_in_paid_amount?: number | null | undefined;
|
|
734
735
|
account_head?: string | null | undefined;
|
|
735
|
-
account_currency?: string | null | undefined;
|
|
736
736
|
tax_amount?: number | null | undefined;
|
|
737
737
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
738
738
|
base_tax_amount?: number | null | undefined;
|
|
@@ -930,6 +930,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
930
930
|
parentfield: string;
|
|
931
931
|
description?: string | null | undefined;
|
|
932
932
|
_user_tags?: string | null | undefined;
|
|
933
|
+
account_currency?: string | null | undefined;
|
|
933
934
|
rate?: number | null | undefined;
|
|
934
935
|
cost_center?: string | null | undefined;
|
|
935
936
|
__unsaved?: number | null | undefined;
|
|
@@ -942,7 +943,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
942
943
|
included_in_print_rate?: number | null | undefined;
|
|
943
944
|
included_in_paid_amount?: number | null | undefined;
|
|
944
945
|
account_head?: string | null | undefined;
|
|
945
|
-
account_currency?: string | null | undefined;
|
|
946
946
|
tax_amount?: number | null | undefined;
|
|
947
947
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
948
948
|
base_tax_amount?: number | null | undefined;
|
|
@@ -1136,6 +1136,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1136
1136
|
parentfield: string;
|
|
1137
1137
|
description?: string | null | undefined;
|
|
1138
1138
|
_user_tags?: string | null | undefined;
|
|
1139
|
+
account_currency?: string | null | undefined;
|
|
1139
1140
|
rate?: number | null | undefined;
|
|
1140
1141
|
cost_center?: string | null | undefined;
|
|
1141
1142
|
__unsaved?: number | null | undefined;
|
|
@@ -1148,7 +1149,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1148
1149
|
included_in_print_rate?: number | null | undefined;
|
|
1149
1150
|
included_in_paid_amount?: number | null | undefined;
|
|
1150
1151
|
account_head?: string | null | undefined;
|
|
1151
|
-
account_currency?: string | null | undefined;
|
|
1152
1152
|
tax_amount?: number | null | undefined;
|
|
1153
1153
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
1154
1154
|
base_tax_amount?: number | null | undefined;
|
|
@@ -1343,6 +1343,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1343
1343
|
parentfield: string;
|
|
1344
1344
|
description?: string | null | undefined;
|
|
1345
1345
|
_user_tags?: string | null | undefined;
|
|
1346
|
+
account_currency?: string | null | undefined;
|
|
1346
1347
|
rate?: number | null | undefined;
|
|
1347
1348
|
cost_center?: string | null | undefined;
|
|
1348
1349
|
__unsaved?: number | null | undefined;
|
|
@@ -1355,7 +1356,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1355
1356
|
included_in_print_rate?: number | null | undefined;
|
|
1356
1357
|
included_in_paid_amount?: number | null | undefined;
|
|
1357
1358
|
account_head?: string | null | undefined;
|
|
1358
|
-
account_currency?: string | null | undefined;
|
|
1359
1359
|
tax_amount?: number | null | undefined;
|
|
1360
1360
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
1361
1361
|
base_tax_amount?: number | null | undefined;
|
|
@@ -1546,6 +1546,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1546
1546
|
parentfield: string;
|
|
1547
1547
|
description?: string | null | undefined;
|
|
1548
1548
|
_user_tags?: string | null | undefined;
|
|
1549
|
+
account_currency?: string | null | undefined;
|
|
1549
1550
|
rate?: number | null | undefined;
|
|
1550
1551
|
cost_center?: string | null | undefined;
|
|
1551
1552
|
__unsaved?: number | null | undefined;
|
|
@@ -1558,7 +1559,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1558
1559
|
included_in_print_rate?: number | null | undefined;
|
|
1559
1560
|
included_in_paid_amount?: number | null | undefined;
|
|
1560
1561
|
account_head?: string | null | undefined;
|
|
1561
|
-
account_currency?: string | null | undefined;
|
|
1562
1562
|
tax_amount?: number | null | undefined;
|
|
1563
1563
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
1564
1564
|
base_tax_amount?: number | null | undefined;
|
|
@@ -1749,6 +1749,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1749
1749
|
parentfield: string;
|
|
1750
1750
|
description?: string | null | undefined;
|
|
1751
1751
|
_user_tags?: string | null | undefined;
|
|
1752
|
+
account_currency?: string | null | undefined;
|
|
1752
1753
|
rate?: number | null | undefined;
|
|
1753
1754
|
cost_center?: string | null | undefined;
|
|
1754
1755
|
__unsaved?: number | null | undefined;
|
|
@@ -1761,7 +1762,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1761
1762
|
included_in_print_rate?: number | null | undefined;
|
|
1762
1763
|
included_in_paid_amount?: number | null | undefined;
|
|
1763
1764
|
account_head?: string | null | undefined;
|
|
1764
|
-
account_currency?: string | null | undefined;
|
|
1765
1765
|
tax_amount?: number | null | undefined;
|
|
1766
1766
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
1767
1767
|
base_tax_amount?: number | null | undefined;
|
|
@@ -1952,6 +1952,7 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1952
1952
|
parentfield: string;
|
|
1953
1953
|
description?: string | null | undefined;
|
|
1954
1954
|
_user_tags?: string | null | undefined;
|
|
1955
|
+
account_currency?: string | null | undefined;
|
|
1955
1956
|
rate?: number | null | undefined;
|
|
1956
1957
|
cost_center?: string | null | undefined;
|
|
1957
1958
|
__unsaved?: number | null | undefined;
|
|
@@ -1964,7 +1965,6 @@ export declare class ERPNextPurchaseInvoice {
|
|
|
1964
1965
|
included_in_print_rate?: number | null | undefined;
|
|
1965
1966
|
included_in_paid_amount?: number | null | undefined;
|
|
1966
1967
|
account_head?: string | null | undefined;
|
|
1967
|
-
account_currency?: string | null | undefined;
|
|
1968
1968
|
tax_amount?: number | null | undefined;
|
|
1969
1969
|
tax_amount_after_discount_amount?: number | null | undefined;
|
|
1970
1970
|
base_tax_amount?: number | null | undefined;
|
|
@@ -133,12 +133,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
133
133
|
included_in_print_rate: 0 | 1;
|
|
134
134
|
account_head: string;
|
|
135
135
|
description?: string | undefined;
|
|
136
|
+
account_currency?: string | undefined;
|
|
136
137
|
rate?: number | undefined;
|
|
137
138
|
cost_center?: string | undefined;
|
|
138
139
|
project?: string | undefined;
|
|
139
140
|
base_total?: number | undefined;
|
|
140
141
|
total?: number | undefined;
|
|
141
|
-
account_currency?: string | undefined;
|
|
142
142
|
tax_amount?: number | undefined;
|
|
143
143
|
tax_amount_after_discount_amount?: number | undefined;
|
|
144
144
|
base_tax_amount?: number | undefined;
|
|
@@ -176,9 +176,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
176
176
|
payments?: {
|
|
177
177
|
amount: number;
|
|
178
178
|
mode_of_payment: string;
|
|
179
|
-
account?: string | null | undefined;
|
|
180
179
|
base_amount?: number | null | undefined;
|
|
181
180
|
reference_no?: string | null | undefined;
|
|
181
|
+
account?: string | null | undefined;
|
|
182
182
|
clearance_date?: string | null | undefined;
|
|
183
183
|
}[] | null | undefined;
|
|
184
184
|
base_change_amount?: number | null | undefined;
|
|
@@ -315,12 +315,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
315
315
|
included_in_print_rate: 0 | 1;
|
|
316
316
|
account_head: string;
|
|
317
317
|
description?: string | undefined;
|
|
318
|
+
account_currency?: string | undefined;
|
|
318
319
|
rate?: number | undefined;
|
|
319
320
|
cost_center?: string | undefined;
|
|
320
321
|
project?: string | undefined;
|
|
321
322
|
base_total?: number | undefined;
|
|
322
323
|
total?: number | undefined;
|
|
323
|
-
account_currency?: string | undefined;
|
|
324
324
|
tax_amount?: number | undefined;
|
|
325
325
|
tax_amount_after_discount_amount?: number | undefined;
|
|
326
326
|
base_tax_amount?: number | undefined;
|
|
@@ -358,9 +358,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
358
358
|
payments?: {
|
|
359
359
|
amount: number;
|
|
360
360
|
mode_of_payment: string;
|
|
361
|
-
account?: string | null | undefined;
|
|
362
361
|
base_amount?: number | null | undefined;
|
|
363
362
|
reference_no?: string | null | undefined;
|
|
363
|
+
account?: string | null | undefined;
|
|
364
364
|
clearance_date?: string | null | undefined;
|
|
365
365
|
}[] | null | undefined;
|
|
366
366
|
base_change_amount?: number | null | undefined;
|
|
@@ -588,12 +588,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
588
588
|
included_in_print_rate: 0 | 1;
|
|
589
589
|
account_head: string;
|
|
590
590
|
description?: string | undefined;
|
|
591
|
+
account_currency?: string | undefined;
|
|
591
592
|
rate?: number | undefined;
|
|
592
593
|
cost_center?: string | undefined;
|
|
593
594
|
project?: string | undefined;
|
|
594
595
|
base_total?: number | undefined;
|
|
595
596
|
total?: number | undefined;
|
|
596
|
-
account_currency?: string | undefined;
|
|
597
597
|
tax_amount?: number | undefined;
|
|
598
598
|
tax_amount_after_discount_amount?: number | undefined;
|
|
599
599
|
base_tax_amount?: number | undefined;
|
|
@@ -631,9 +631,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
631
631
|
payments?: {
|
|
632
632
|
amount: number;
|
|
633
633
|
mode_of_payment: string;
|
|
634
|
-
account?: string | null | undefined;
|
|
635
634
|
base_amount?: number | null | undefined;
|
|
636
635
|
reference_no?: string | null | undefined;
|
|
636
|
+
account?: string | null | undefined;
|
|
637
637
|
clearance_date?: string | null | undefined;
|
|
638
638
|
}[] | null | undefined;
|
|
639
639
|
base_change_amount?: number | null | undefined;
|
|
@@ -821,12 +821,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
821
821
|
included_in_print_rate: 0 | 1;
|
|
822
822
|
account_head: string;
|
|
823
823
|
description?: string | undefined;
|
|
824
|
+
account_currency?: string | undefined;
|
|
824
825
|
rate?: number | undefined;
|
|
825
826
|
cost_center?: string | undefined;
|
|
826
827
|
project?: string | undefined;
|
|
827
828
|
base_total?: number | undefined;
|
|
828
829
|
total?: number | undefined;
|
|
829
|
-
account_currency?: string | undefined;
|
|
830
830
|
tax_amount?: number | undefined;
|
|
831
831
|
tax_amount_after_discount_amount?: number | undefined;
|
|
832
832
|
base_tax_amount?: number | undefined;
|
|
@@ -876,9 +876,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
876
876
|
payments?: {
|
|
877
877
|
amount: number;
|
|
878
878
|
mode_of_payment: string;
|
|
879
|
-
account?: string | null | undefined;
|
|
880
879
|
base_amount?: number | null | undefined;
|
|
881
880
|
reference_no?: string | null | undefined;
|
|
881
|
+
account?: string | null | undefined;
|
|
882
882
|
clearance_date?: string | null | undefined;
|
|
883
883
|
}[] | null | undefined;
|
|
884
884
|
base_change_amount?: number | null | undefined;
|
|
@@ -1113,12 +1113,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1113
1113
|
included_in_print_rate: 0 | 1;
|
|
1114
1114
|
account_head: string;
|
|
1115
1115
|
description?: string | undefined;
|
|
1116
|
+
account_currency?: string | undefined;
|
|
1116
1117
|
rate?: number | undefined;
|
|
1117
1118
|
cost_center?: string | undefined;
|
|
1118
1119
|
project?: string | undefined;
|
|
1119
1120
|
base_total?: number | undefined;
|
|
1120
1121
|
total?: number | undefined;
|
|
1121
|
-
account_currency?: string | undefined;
|
|
1122
1122
|
tax_amount?: number | undefined;
|
|
1123
1123
|
tax_amount_after_discount_amount?: number | undefined;
|
|
1124
1124
|
base_tax_amount?: number | undefined;
|
|
@@ -1156,9 +1156,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
1156
1156
|
payments?: {
|
|
1157
1157
|
amount: number;
|
|
1158
1158
|
mode_of_payment: string;
|
|
1159
|
-
account?: string | null | undefined;
|
|
1160
1159
|
base_amount?: number | null | undefined;
|
|
1161
1160
|
reference_no?: string | null | undefined;
|
|
1161
|
+
account?: string | null | undefined;
|
|
1162
1162
|
clearance_date?: string | null | undefined;
|
|
1163
1163
|
}[] | null | undefined;
|
|
1164
1164
|
base_change_amount?: number | null | undefined;
|
|
@@ -1346,12 +1346,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1346
1346
|
included_in_print_rate: 0 | 1;
|
|
1347
1347
|
account_head: string;
|
|
1348
1348
|
description?: string | undefined;
|
|
1349
|
+
account_currency?: string | undefined;
|
|
1349
1350
|
rate?: number | undefined;
|
|
1350
1351
|
cost_center?: string | undefined;
|
|
1351
1352
|
project?: string | undefined;
|
|
1352
1353
|
base_total?: number | undefined;
|
|
1353
1354
|
total?: number | undefined;
|
|
1354
|
-
account_currency?: string | undefined;
|
|
1355
1355
|
tax_amount?: number | undefined;
|
|
1356
1356
|
tax_amount_after_discount_amount?: number | undefined;
|
|
1357
1357
|
base_tax_amount?: number | undefined;
|
|
@@ -1401,9 +1401,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
1401
1401
|
payments?: {
|
|
1402
1402
|
amount: number;
|
|
1403
1403
|
mode_of_payment: string;
|
|
1404
|
-
account?: string | null | undefined;
|
|
1405
1404
|
base_amount?: number | null | undefined;
|
|
1406
1405
|
reference_no?: string | null | undefined;
|
|
1406
|
+
account?: string | null | undefined;
|
|
1407
1407
|
clearance_date?: string | null | undefined;
|
|
1408
1408
|
}[] | null | undefined;
|
|
1409
1409
|
base_change_amount?: number | null | undefined;
|
|
@@ -1638,12 +1638,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1638
1638
|
included_in_print_rate: 0 | 1;
|
|
1639
1639
|
account_head: string;
|
|
1640
1640
|
description?: string | undefined;
|
|
1641
|
+
account_currency?: string | undefined;
|
|
1641
1642
|
rate?: number | undefined;
|
|
1642
1643
|
cost_center?: string | undefined;
|
|
1643
1644
|
project?: string | undefined;
|
|
1644
1645
|
base_total?: number | undefined;
|
|
1645
1646
|
total?: number | undefined;
|
|
1646
|
-
account_currency?: string | undefined;
|
|
1647
1647
|
tax_amount?: number | undefined;
|
|
1648
1648
|
tax_amount_after_discount_amount?: number | undefined;
|
|
1649
1649
|
base_tax_amount?: number | undefined;
|
|
@@ -1681,9 +1681,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
1681
1681
|
payments?: {
|
|
1682
1682
|
amount: number;
|
|
1683
1683
|
mode_of_payment: string;
|
|
1684
|
-
account?: string | null | undefined;
|
|
1685
1684
|
base_amount?: number | null | undefined;
|
|
1686
1685
|
reference_no?: string | null | undefined;
|
|
1686
|
+
account?: string | null | undefined;
|
|
1687
1687
|
clearance_date?: string | null | undefined;
|
|
1688
1688
|
}[] | null | undefined;
|
|
1689
1689
|
base_change_amount?: number | null | undefined;
|
|
@@ -1914,12 +1914,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1914
1914
|
included_in_print_rate: 0 | 1;
|
|
1915
1915
|
account_head: string;
|
|
1916
1916
|
description?: string | undefined;
|
|
1917
|
+
account_currency?: string | undefined;
|
|
1917
1918
|
rate?: number | undefined;
|
|
1918
1919
|
cost_center?: string | undefined;
|
|
1919
1920
|
project?: string | undefined;
|
|
1920
1921
|
base_total?: number | undefined;
|
|
1921
1922
|
total?: number | undefined;
|
|
1922
|
-
account_currency?: string | undefined;
|
|
1923
1923
|
tax_amount?: number | undefined;
|
|
1924
1924
|
tax_amount_after_discount_amount?: number | undefined;
|
|
1925
1925
|
base_tax_amount?: number | undefined;
|
|
@@ -1957,9 +1957,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
1957
1957
|
payments?: {
|
|
1958
1958
|
amount: number;
|
|
1959
1959
|
mode_of_payment: string;
|
|
1960
|
-
account?: string | null | undefined;
|
|
1961
1960
|
base_amount?: number | null | undefined;
|
|
1962
1961
|
reference_no?: string | null | undefined;
|
|
1962
|
+
account?: string | null | undefined;
|
|
1963
1963
|
clearance_date?: string | null | undefined;
|
|
1964
1964
|
}[] | null | undefined;
|
|
1965
1965
|
base_change_amount?: number | null | undefined;
|
|
@@ -2186,12 +2186,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2186
2186
|
included_in_print_rate: 0 | 1;
|
|
2187
2187
|
account_head: string;
|
|
2188
2188
|
description?: string | undefined;
|
|
2189
|
+
account_currency?: string | undefined;
|
|
2189
2190
|
rate?: number | undefined;
|
|
2190
2191
|
cost_center?: string | undefined;
|
|
2191
2192
|
project?: string | undefined;
|
|
2192
2193
|
base_total?: number | undefined;
|
|
2193
2194
|
total?: number | undefined;
|
|
2194
|
-
account_currency?: string | undefined;
|
|
2195
2195
|
tax_amount?: number | undefined;
|
|
2196
2196
|
tax_amount_after_discount_amount?: number | undefined;
|
|
2197
2197
|
base_tax_amount?: number | undefined;
|
|
@@ -2229,9 +2229,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
2229
2229
|
payments?: {
|
|
2230
2230
|
amount: number;
|
|
2231
2231
|
mode_of_payment: string;
|
|
2232
|
-
account?: string | null | undefined;
|
|
2233
2232
|
base_amount?: number | null | undefined;
|
|
2234
2233
|
reference_no?: string | null | undefined;
|
|
2234
|
+
account?: string | null | undefined;
|
|
2235
2235
|
clearance_date?: string | null | undefined;
|
|
2236
2236
|
}[] | null | undefined;
|
|
2237
2237
|
base_change_amount?: number | null | undefined;
|
|
@@ -2456,12 +2456,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2456
2456
|
included_in_print_rate: 0 | 1;
|
|
2457
2457
|
account_head: string;
|
|
2458
2458
|
description?: string | undefined;
|
|
2459
|
+
account_currency?: string | undefined;
|
|
2459
2460
|
rate?: number | undefined;
|
|
2460
2461
|
cost_center?: string | undefined;
|
|
2461
2462
|
project?: string | undefined;
|
|
2462
2463
|
base_total?: number | undefined;
|
|
2463
2464
|
total?: number | undefined;
|
|
2464
|
-
account_currency?: string | undefined;
|
|
2465
2465
|
tax_amount?: number | undefined;
|
|
2466
2466
|
tax_amount_after_discount_amount?: number | undefined;
|
|
2467
2467
|
base_tax_amount?: number | undefined;
|
|
@@ -2499,9 +2499,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
2499
2499
|
payments?: {
|
|
2500
2500
|
amount: number;
|
|
2501
2501
|
mode_of_payment: string;
|
|
2502
|
-
account?: string | null | undefined;
|
|
2503
2502
|
base_amount?: number | null | undefined;
|
|
2504
2503
|
reference_no?: string | null | undefined;
|
|
2504
|
+
account?: string | null | undefined;
|
|
2505
2505
|
clearance_date?: string | null | undefined;
|
|
2506
2506
|
}[] | null | undefined;
|
|
2507
2507
|
base_change_amount?: number | null | undefined;
|
|
@@ -2726,12 +2726,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2726
2726
|
included_in_print_rate: 0 | 1;
|
|
2727
2727
|
account_head: string;
|
|
2728
2728
|
description?: string | undefined;
|
|
2729
|
+
account_currency?: string | undefined;
|
|
2729
2730
|
rate?: number | undefined;
|
|
2730
2731
|
cost_center?: string | undefined;
|
|
2731
2732
|
project?: string | undefined;
|
|
2732
2733
|
base_total?: number | undefined;
|
|
2733
2734
|
total?: number | undefined;
|
|
2734
|
-
account_currency?: string | undefined;
|
|
2735
2735
|
tax_amount?: number | undefined;
|
|
2736
2736
|
tax_amount_after_discount_amount?: number | undefined;
|
|
2737
2737
|
base_tax_amount?: number | undefined;
|
|
@@ -2769,9 +2769,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
2769
2769
|
payments?: {
|
|
2770
2770
|
amount: number;
|
|
2771
2771
|
mode_of_payment: string;
|
|
2772
|
-
account?: string | null | undefined;
|
|
2773
2772
|
base_amount?: number | null | undefined;
|
|
2774
2773
|
reference_no?: string | null | undefined;
|
|
2774
|
+
account?: string | null | undefined;
|
|
2775
2775
|
clearance_date?: string | null | undefined;
|
|
2776
2776
|
}[] | null | undefined;
|
|
2777
2777
|
base_change_amount?: number | null | undefined;
|
|
@@ -2995,12 +2995,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2995
2995
|
included_in_print_rate: 0 | 1;
|
|
2996
2996
|
account_head: string;
|
|
2997
2997
|
description?: string | undefined;
|
|
2998
|
+
account_currency?: string | undefined;
|
|
2998
2999
|
rate?: number | undefined;
|
|
2999
3000
|
cost_center?: string | undefined;
|
|
3000
3001
|
project?: string | undefined;
|
|
3001
3002
|
base_total?: number | undefined;
|
|
3002
3003
|
total?: number | undefined;
|
|
3003
|
-
account_currency?: string | undefined;
|
|
3004
3004
|
tax_amount?: number | undefined;
|
|
3005
3005
|
tax_amount_after_discount_amount?: number | undefined;
|
|
3006
3006
|
base_tax_amount?: number | undefined;
|
|
@@ -3038,9 +3038,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
3038
3038
|
payments?: {
|
|
3039
3039
|
amount: number;
|
|
3040
3040
|
mode_of_payment: string;
|
|
3041
|
-
account?: string | null | undefined;
|
|
3042
3041
|
base_amount?: number | null | undefined;
|
|
3043
3042
|
reference_no?: string | null | undefined;
|
|
3043
|
+
account?: string | null | undefined;
|
|
3044
3044
|
clearance_date?: string | null | undefined;
|
|
3045
3045
|
}[] | null | undefined;
|
|
3046
3046
|
base_change_amount?: number | null | undefined;
|
|
@@ -3265,12 +3265,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
3265
3265
|
included_in_print_rate: 0 | 1;
|
|
3266
3266
|
account_head: string;
|
|
3267
3267
|
description?: string | undefined;
|
|
3268
|
+
account_currency?: string | undefined;
|
|
3268
3269
|
rate?: number | undefined;
|
|
3269
3270
|
cost_center?: string | undefined;
|
|
3270
3271
|
project?: string | undefined;
|
|
3271
3272
|
base_total?: number | undefined;
|
|
3272
3273
|
total?: number | undefined;
|
|
3273
|
-
account_currency?: string | undefined;
|
|
3274
3274
|
tax_amount?: number | undefined;
|
|
3275
3275
|
tax_amount_after_discount_amount?: number | undefined;
|
|
3276
3276
|
base_tax_amount?: number | undefined;
|
|
@@ -3308,9 +3308,9 @@ export declare class ERPNextSalesInvoice {
|
|
|
3308
3308
|
payments?: {
|
|
3309
3309
|
amount: number;
|
|
3310
3310
|
mode_of_payment: string;
|
|
3311
|
-
account?: string | null | undefined;
|
|
3312
3311
|
base_amount?: number | null | undefined;
|
|
3313
3312
|
reference_no?: string | null | undefined;
|
|
3313
|
+
account?: string | null | undefined;
|
|
3314
3314
|
clearance_date?: string | null | undefined;
|
|
3315
3315
|
}[] | null | undefined;
|
|
3316
3316
|
base_change_amount?: number | null | undefined;
|
|
@@ -1,11 +1,108 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const Account: z.ZodObject<{
|
|
3
|
+
account_name: z.ZodString;
|
|
4
|
+
account_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
is_group: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
6
|
+
__optionalForInput: true;
|
|
7
|
+
};
|
|
3
8
|
company: z.ZodString;
|
|
4
|
-
|
|
9
|
+
root_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Asset", "Liability", "Income", "Expense", "Equity"]>>>;
|
|
10
|
+
report_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Balance Sheet", "Profit and Loss"]>>>;
|
|
11
|
+
account_currency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
parent_account: z.ZodString;
|
|
13
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Accumulated Depreciation", "Asset Received But Not Billed", "Bank", "Cash", "Chargeable", "Capital Work in Progress", "Cost of Goods Sold", "Current Asset", "Current Liability", "Depreciation", "Direct Expense", "Direct Income", "Equity", "Expense Account", "Expenses Included In Asset Valuation", "Expenses Included In Valuation", "Fixed Asset", "Income Account", "Indirect Expense", "Indirect Income", "Liability", "Payable", "Receivable", "Round Off", "Stock", "Stock Adjustment", "Stock Received But Not Billed", "Service Received But Not Billed", "Tax", "Temporary"]>>>;
|
|
14
|
+
tax_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
15
|
+
freeze_account: z.ZodNullable<z.ZodOptional<z.ZodEnum<["No", "Yes"]>>>;
|
|
16
|
+
balance_must_be: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Debit", "Credit"]>>>;
|
|
17
|
+
include_in_gross: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
18
|
+
__optionalForInput: true;
|
|
19
|
+
};
|
|
20
|
+
disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
21
|
+
__optionalForInput: true;
|
|
22
|
+
};
|
|
5
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
is_group: 0 | 1;
|
|
25
|
+
disabled: 0 | 1;
|
|
26
|
+
account_name: string;
|
|
6
27
|
company: string;
|
|
7
|
-
|
|
28
|
+
parent_account: string;
|
|
29
|
+
include_in_gross: 0 | 1;
|
|
30
|
+
account_number?: string | null | undefined;
|
|
31
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
32
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
33
|
+
account_currency?: string | null | undefined;
|
|
34
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
35
|
+
tax_rate?: number | null | undefined;
|
|
36
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
37
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
8
38
|
}, {
|
|
39
|
+
account_name: string;
|
|
9
40
|
company: string;
|
|
10
|
-
|
|
41
|
+
parent_account: string;
|
|
42
|
+
is_group?: unknown;
|
|
43
|
+
disabled?: unknown;
|
|
44
|
+
account_number?: string | null | undefined;
|
|
45
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
46
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
47
|
+
account_currency?: string | null | undefined;
|
|
48
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
49
|
+
tax_rate?: number | null | undefined;
|
|
50
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
51
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
52
|
+
include_in_gross?: unknown;
|
|
11
53
|
}>;
|
|
54
|
+
export type AccountType = z.infer<typeof Account>;
|
|
55
|
+
declare const AccountInput: import("../../utils/zodContextOptionals").ResourceInputType<z.ZodObject<{
|
|
56
|
+
account_name: z.ZodString;
|
|
57
|
+
account_number: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
58
|
+
is_group: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
59
|
+
__optionalForInput: true;
|
|
60
|
+
};
|
|
61
|
+
company: z.ZodString;
|
|
62
|
+
root_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Asset", "Liability", "Income", "Expense", "Equity"]>>>;
|
|
63
|
+
report_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Balance Sheet", "Profit and Loss"]>>>;
|
|
64
|
+
account_currency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
65
|
+
parent_account: z.ZodString;
|
|
66
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Accumulated Depreciation", "Asset Received But Not Billed", "Bank", "Cash", "Chargeable", "Capital Work in Progress", "Cost of Goods Sold", "Current Asset", "Current Liability", "Depreciation", "Direct Expense", "Direct Income", "Equity", "Expense Account", "Expenses Included In Asset Valuation", "Expenses Included In Valuation", "Fixed Asset", "Income Account", "Indirect Expense", "Indirect Income", "Liability", "Payable", "Receivable", "Round Off", "Stock", "Stock Adjustment", "Stock Received But Not Billed", "Service Received But Not Billed", "Tax", "Temporary"]>>>;
|
|
67
|
+
tax_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
68
|
+
freeze_account: z.ZodNullable<z.ZodOptional<z.ZodEnum<["No", "Yes"]>>>;
|
|
69
|
+
balance_must_be: z.ZodNullable<z.ZodOptional<z.ZodEnum<["Debit", "Credit"]>>>;
|
|
70
|
+
include_in_gross: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
71
|
+
__optionalForInput: true;
|
|
72
|
+
};
|
|
73
|
+
disabled: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
74
|
+
__optionalForInput: true;
|
|
75
|
+
};
|
|
76
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
77
|
+
is_group: 0 | 1;
|
|
78
|
+
disabled: 0 | 1;
|
|
79
|
+
account_name: string;
|
|
80
|
+
company: string;
|
|
81
|
+
parent_account: string;
|
|
82
|
+
include_in_gross: 0 | 1;
|
|
83
|
+
account_number?: string | null | undefined;
|
|
84
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
85
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
86
|
+
account_currency?: string | null | undefined;
|
|
87
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
88
|
+
tax_rate?: number | null | undefined;
|
|
89
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
90
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
account_name: string;
|
|
93
|
+
company: string;
|
|
94
|
+
parent_account: string;
|
|
95
|
+
is_group?: unknown;
|
|
96
|
+
disabled?: unknown;
|
|
97
|
+
account_number?: string | null | undefined;
|
|
98
|
+
root_type?: "Asset" | "Liability" | "Income" | "Expense" | "Equity" | null | undefined;
|
|
99
|
+
report_type?: "Balance Sheet" | "Profit and Loss" | null | undefined;
|
|
100
|
+
account_currency?: string | null | undefined;
|
|
101
|
+
account_type?: "Liability" | "Equity" | "Accumulated Depreciation" | "Asset Received But Not Billed" | "Bank" | "Cash" | "Chargeable" | "Capital Work in Progress" | "Cost of Goods Sold" | "Current Asset" | "Current Liability" | "Depreciation" | "Direct Expense" | "Direct Income" | "Expense Account" | "Expenses Included In Asset Valuation" | "Expenses Included In Valuation" | "Fixed Asset" | "Income Account" | "Indirect Expense" | "Indirect Income" | "Payable" | "Receivable" | "Round Off" | "Stock" | "Stock Adjustment" | "Stock Received But Not Billed" | "Service Received But Not Billed" | "Tax" | "Temporary" | null | undefined;
|
|
102
|
+
tax_rate?: number | null | undefined;
|
|
103
|
+
freeze_account?: "No" | "Yes" | null | undefined;
|
|
104
|
+
balance_must_be?: "Debit" | "Credit" | null | undefined;
|
|
105
|
+
include_in_gross?: unknown;
|
|
106
|
+
}>>;
|
|
107
|
+
export type AccountInputType = z.infer<typeof AccountInput>;
|
|
108
|
+
export {};
|
|
@@ -2,9 +2,75 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Account = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const Boolean_1 = require("./Boolean");
|
|
6
|
+
const zodContextOptionals_1 = require("../../utils/zodContextOptionals");
|
|
5
7
|
exports.Account = zod_1.z
|
|
6
8
|
.object({
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
account_name: zod_1.z.string().describe("Account Name"),
|
|
10
|
+
account_number: zod_1.z.string().optional().nullable().describe("Account Number"),
|
|
11
|
+
is_group: Boolean_1.ERPNextBoolean.describe("Is Group"),
|
|
12
|
+
company: zod_1.z.string().describe("Company"),
|
|
13
|
+
root_type: zod_1.z
|
|
14
|
+
.enum(["Asset", "Liability", "Income", "Expense", "Equity"])
|
|
15
|
+
.optional()
|
|
16
|
+
.nullable()
|
|
17
|
+
.describe("Root Type"),
|
|
18
|
+
report_type: zod_1.z
|
|
19
|
+
.enum(["Balance Sheet", "Profit and Loss"])
|
|
20
|
+
.optional()
|
|
21
|
+
.nullable()
|
|
22
|
+
.describe("Report Type"),
|
|
23
|
+
account_currency: zod_1.z.string().optional().nullable().describe("Currency"),
|
|
24
|
+
parent_account: zod_1.z.string().describe("Parent Account"),
|
|
25
|
+
account_type: zod_1.z
|
|
26
|
+
.enum([
|
|
27
|
+
"Accumulated Depreciation",
|
|
28
|
+
"Asset Received But Not Billed",
|
|
29
|
+
"Bank",
|
|
30
|
+
"Cash",
|
|
31
|
+
"Chargeable",
|
|
32
|
+
"Capital Work in Progress",
|
|
33
|
+
"Cost of Goods Sold",
|
|
34
|
+
"Current Asset",
|
|
35
|
+
"Current Liability",
|
|
36
|
+
"Depreciation",
|
|
37
|
+
"Direct Expense",
|
|
38
|
+
"Direct Income",
|
|
39
|
+
"Equity",
|
|
40
|
+
"Expense Account",
|
|
41
|
+
"Expenses Included In Asset Valuation",
|
|
42
|
+
"Expenses Included In Valuation",
|
|
43
|
+
"Fixed Asset",
|
|
44
|
+
"Income Account",
|
|
45
|
+
"Indirect Expense",
|
|
46
|
+
"Indirect Income",
|
|
47
|
+
"Liability",
|
|
48
|
+
"Payable",
|
|
49
|
+
"Receivable",
|
|
50
|
+
"Round Off",
|
|
51
|
+
"Stock",
|
|
52
|
+
"Stock Adjustment",
|
|
53
|
+
"Stock Received But Not Billed",
|
|
54
|
+
"Service Received But Not Billed",
|
|
55
|
+
"Tax",
|
|
56
|
+
"Temporary",
|
|
57
|
+
])
|
|
58
|
+
.optional()
|
|
59
|
+
.nullable()
|
|
60
|
+
.describe("Account Type"),
|
|
61
|
+
tax_rate: zod_1.z.number().optional().nullable().describe("Rate"),
|
|
62
|
+
freeze_account: zod_1.z
|
|
63
|
+
.enum(["No", "Yes"])
|
|
64
|
+
.optional()
|
|
65
|
+
.nullable()
|
|
66
|
+
.describe("Frozen"),
|
|
67
|
+
balance_must_be: zod_1.z
|
|
68
|
+
.enum(["Debit", "Credit"])
|
|
69
|
+
.optional()
|
|
70
|
+
.nullable()
|
|
71
|
+
.describe("Balance must be"),
|
|
72
|
+
include_in_gross: Boolean_1.ERPNextBoolean.describe("Include in gross"),
|
|
73
|
+
disabled: Boolean_1.ERPNextBoolean.describe("Disable"),
|
|
9
74
|
})
|
|
10
75
|
.describe("Account");
|
|
76
|
+
const AccountInput = (0, zodContextOptionals_1.ResourceInput)(exports.Account).describe("AccountInput");
|