erpnext-queue-client 2.9.1 → 2.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,52 +6,19 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
6
6
|
protected methodRequest: ERPNextMethodRequest;
|
|
7
7
|
constructor(temporalClient: TemporalClient);
|
|
8
8
|
createInvoiceDraftFromSalesOrder(salesOrderName: string): Promise<{
|
|
9
|
-
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";
|
|
10
|
-
docstatus: number;
|
|
11
|
-
owner: string;
|
|
12
|
-
creation: string;
|
|
13
|
-
modified: string;
|
|
14
|
-
modified_by: string;
|
|
15
|
-
idx: number;
|
|
16
|
-
doctype: string;
|
|
17
9
|
company: string;
|
|
18
|
-
naming_series: "INV-.#" | "INV-.#-GS";
|
|
19
10
|
customer: string;
|
|
20
11
|
posting_date: string;
|
|
21
|
-
set_posting_time: 0 | 1;
|
|
22
12
|
currency: string;
|
|
23
|
-
conversion_rate: number;
|
|
24
13
|
items: {
|
|
25
|
-
name: string;
|
|
26
|
-
docstatus: number;
|
|
27
|
-
owner: string;
|
|
28
|
-
creation: string;
|
|
29
|
-
modified: string;
|
|
30
|
-
modified_by: string;
|
|
31
|
-
idx: number;
|
|
32
|
-
doctype: string;
|
|
33
|
-
parent: string;
|
|
34
|
-
parenttype: string;
|
|
35
|
-
parentfield: string;
|
|
36
14
|
item_code: string;
|
|
37
|
-
item_name: string;
|
|
38
15
|
qty: number;
|
|
39
16
|
rate: number;
|
|
40
|
-
delivered_by_supplier: 0 | 1;
|
|
41
17
|
uom: string;
|
|
42
|
-
is_free_item: 0 | 1;
|
|
43
|
-
grant_commission: 0 | 1;
|
|
44
|
-
allow_zero_valuation_rate: 0 | 1;
|
|
45
|
-
page_break: 0 | 1;
|
|
46
|
-
is_fixed_asset: 0 | 1;
|
|
47
|
-
enable_deferred_revenue: 0 | 1;
|
|
48
|
-
has_item_scanned: 0 | 1;
|
|
49
|
-
income_account: string;
|
|
50
|
-
use_serial_batch_fields: 0 | 1;
|
|
51
18
|
description?: string | null | undefined;
|
|
52
19
|
brand?: string | null | undefined;
|
|
53
|
-
_user_tags?: string | null | undefined;
|
|
54
20
|
image?: string | null | undefined;
|
|
21
|
+
item_name?: string | undefined;
|
|
55
22
|
item_tax_template?: string | null | undefined;
|
|
56
23
|
amount?: number | null | undefined;
|
|
57
24
|
base_rate?: number | null | undefined;
|
|
@@ -60,6 +27,7 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
60
27
|
net_amount?: number | null | undefined;
|
|
61
28
|
base_net_rate?: number | null | undefined;
|
|
62
29
|
base_net_amount?: number | null | undefined;
|
|
30
|
+
delivered_by_supplier?: 0 | 1 | undefined;
|
|
63
31
|
weight_per_unit?: number | null | undefined;
|
|
64
32
|
total_weight?: number | null | undefined;
|
|
65
33
|
weight_uom?: string | null | undefined;
|
|
@@ -86,6 +54,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
86
54
|
base_rate_with_margin?: number | null | undefined;
|
|
87
55
|
pricing_rules?: string | null | undefined;
|
|
88
56
|
stock_uom_rate?: number | null | undefined;
|
|
57
|
+
is_free_item?: 0 | 1 | undefined;
|
|
58
|
+
grant_commission?: 0 | 1 | undefined;
|
|
89
59
|
incoming_rate?: number | null | undefined;
|
|
90
60
|
warehouse?: string | null | undefined;
|
|
91
61
|
target_warehouse?: string | null | undefined;
|
|
@@ -96,9 +66,15 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
96
66
|
actual_qty?: number | null | undefined;
|
|
97
67
|
item_tax_rate?: string | null | undefined;
|
|
98
68
|
expense_account?: string | null | undefined;
|
|
69
|
+
allow_zero_valuation_rate?: 0 | 1 | undefined;
|
|
70
|
+
page_break?: 0 | 1 | undefined;
|
|
71
|
+
is_fixed_asset?: 0 | 1 | undefined;
|
|
72
|
+
enable_deferred_revenue?: 0 | 1 | undefined;
|
|
99
73
|
purchase_order?: string | null | undefined;
|
|
100
74
|
purchase_order_item?: string | null | undefined;
|
|
75
|
+
has_item_scanned?: 0 | 1 | undefined;
|
|
101
76
|
delivered_qty?: number | null | undefined;
|
|
77
|
+
income_account?: string | undefined;
|
|
102
78
|
discount_account?: string | null | undefined;
|
|
103
79
|
deferred_revenue_account?: string | null | undefined;
|
|
104
80
|
service_start_date?: string | null | undefined;
|
|
@@ -106,43 +82,21 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
106
82
|
service_end_date?: string | null | undefined;
|
|
107
83
|
asset?: string | null | undefined;
|
|
108
84
|
finance_book?: string | null | undefined;
|
|
85
|
+
use_serial_batch_fields?: 0 | 1 | undefined;
|
|
109
86
|
serial_and_batch_bundle?: string | null | undefined;
|
|
110
87
|
}[];
|
|
111
|
-
is_return: 0 | 1;
|
|
112
88
|
selling_price_list: string;
|
|
113
|
-
plc_conversion_rate: number;
|
|
114
|
-
ignore_pricing_rule: 0 | 1;
|
|
115
|
-
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
116
|
-
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
117
|
-
disable_rounded_total: 0 | 1;
|
|
118
|
-
is_internal_customer: 0 | 1;
|
|
119
|
-
group_same_items: 0 | 1;
|
|
120
|
-
update_stock: 0 | 1;
|
|
121
|
-
allocate_advances_automatically: 0 | 1;
|
|
122
|
-
ignore_default_payment_terms_template: 0 | 1;
|
|
123
|
-
is_opening: "No" | "Yes";
|
|
124
|
-
custom_invoice_no: string;
|
|
125
|
-
is_pos: 0 | 1;
|
|
126
|
-
is_debit_note: 0 | 1;
|
|
127
|
-
update_outstanding_for_self: 0 | 1;
|
|
128
|
-
update_billed_amount_in_sales_order: 0 | 1;
|
|
129
|
-
update_billed_amount_in_delivery_note: 0 | 1;
|
|
130
|
-
is_consolidated: 0 | 1;
|
|
131
|
-
use_company_roundoff_cost_center: 0 | 1;
|
|
132
|
-
is_cash_or_non_trade_discount: 0 | 1;
|
|
133
|
-
only_include_allocated_payments: 0 | 1;
|
|
134
|
-
write_off_outstanding_amount_automatically: 0 | 1;
|
|
135
|
-
redeem_loyalty_points: 0 | 1;
|
|
136
|
-
dont_create_loyalty_points: 0 | 1;
|
|
137
89
|
debit_to: string;
|
|
138
|
-
|
|
139
|
-
|
|
90
|
+
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" | undefined;
|
|
91
|
+
docstatus?: number | undefined;
|
|
140
92
|
amended_from?: string | null | undefined;
|
|
141
|
-
_user_tags?: string | null | undefined;
|
|
142
93
|
tax_category?: string | null | undefined;
|
|
94
|
+
naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
|
|
143
95
|
language?: string | null | undefined;
|
|
144
96
|
posting_time?: string | null | undefined;
|
|
97
|
+
set_posting_time?: 0 | 1 | undefined;
|
|
145
98
|
company_tax_id?: string | null | undefined;
|
|
99
|
+
conversion_rate?: number | undefined;
|
|
146
100
|
total_qty?: number | null | undefined;
|
|
147
101
|
total_net_weight?: number | null | undefined;
|
|
148
102
|
base_total?: number | null | undefined;
|
|
@@ -158,6 +112,7 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
158
112
|
pricing_rules?: any[] | null | undefined;
|
|
159
113
|
title?: string | null | undefined;
|
|
160
114
|
customer_name?: string | null | undefined;
|
|
115
|
+
is_return?: 0 | 1 | undefined;
|
|
161
116
|
return_against?: string | null | undefined;
|
|
162
117
|
po_no?: string | null | undefined;
|
|
163
118
|
po_date?: string | null | undefined;
|
|
@@ -172,16 +127,20 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
172
127
|
company_address?: string | null | undefined;
|
|
173
128
|
company_address_display?: string | null | undefined;
|
|
174
129
|
price_list_currency?: string | null | undefined;
|
|
130
|
+
plc_conversion_rate?: number | undefined;
|
|
131
|
+
ignore_pricing_rule?: 0 | 1 | undefined;
|
|
175
132
|
set_warehouse?: string | null | undefined;
|
|
176
133
|
set_target_warehouse?: string | null | undefined;
|
|
177
134
|
scan_barcode?: string | null | undefined;
|
|
178
135
|
shipping_rule?: string | null | undefined;
|
|
179
136
|
incoterm?: string | null | undefined;
|
|
180
137
|
custom_shipping_cost?: number | null | undefined;
|
|
138
|
+
custom_tax_included_in_shipping_cost?: 0 | 1 | undefined;
|
|
181
139
|
taxes_and_charges?: string | null | undefined;
|
|
182
140
|
other_charges_calculation?: string | null | undefined;
|
|
183
141
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
184
142
|
total_taxes_and_charges?: number | null | undefined;
|
|
143
|
+
apply_discount_on?: "" | "Grand Total" | "Net Total" | undefined;
|
|
185
144
|
base_discount_amount?: number | null | undefined;
|
|
186
145
|
additional_discount_percentage?: number | null | undefined;
|
|
187
146
|
base_grand_total?: number | null | undefined;
|
|
@@ -192,15 +151,18 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
192
151
|
rounding_adjustment?: number | null | undefined;
|
|
193
152
|
rounded_total?: number | null | undefined;
|
|
194
153
|
in_words?: string | null | undefined;
|
|
154
|
+
disable_rounded_total?: 0 | 1 | undefined;
|
|
195
155
|
tc_name?: string | null | undefined;
|
|
196
156
|
terms?: string | null | undefined;
|
|
197
157
|
campaign?: string | null | undefined;
|
|
198
158
|
source?: string | null | undefined;
|
|
159
|
+
is_internal_customer?: 0 | 1 | undefined;
|
|
199
160
|
represents_company?: string | null | undefined;
|
|
200
161
|
customer_group?: string | null | undefined;
|
|
201
162
|
territory?: string | null | undefined;
|
|
202
163
|
letter_head?: string | null | undefined;
|
|
203
164
|
select_print_heading?: string | null | undefined;
|
|
165
|
+
group_same_items?: 0 | 1 | undefined;
|
|
204
166
|
auto_repeat?: string | null | undefined;
|
|
205
167
|
sales_partner?: string | null | undefined;
|
|
206
168
|
amount_eligible_for_commission?: number | null | undefined;
|
|
@@ -208,22 +170,10 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
208
170
|
total_commission?: number | null | undefined;
|
|
209
171
|
packed_items?: any[] | null | undefined;
|
|
210
172
|
taxes?: {
|
|
211
|
-
name: string;
|
|
212
|
-
docstatus: number;
|
|
213
|
-
owner: string;
|
|
214
|
-
creation: string;
|
|
215
|
-
modified: string;
|
|
216
|
-
modified_by: string;
|
|
217
|
-
idx: number;
|
|
218
|
-
doctype: string;
|
|
219
|
-
parent: string;
|
|
220
|
-
parenttype: string;
|
|
221
|
-
parentfield: string;
|
|
222
173
|
charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
|
|
223
174
|
account_head: string;
|
|
224
175
|
included_in_print_rate: 0 | 1;
|
|
225
176
|
description?: string | undefined;
|
|
226
|
-
_user_tags?: string | null | undefined;
|
|
227
177
|
account_currency?: string | undefined;
|
|
228
178
|
rate?: number | undefined;
|
|
229
179
|
base_total?: number | undefined;
|
|
@@ -240,55 +190,45 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
240
190
|
base_paid_amount?: number | null | undefined;
|
|
241
191
|
remarks?: string | null | undefined;
|
|
242
192
|
due_date?: string | null | undefined;
|
|
193
|
+
update_stock?: 0 | 1 | undefined;
|
|
243
194
|
total_advance?: number | null | undefined;
|
|
244
195
|
write_off_amount?: number | null | undefined;
|
|
245
196
|
base_write_off_amount?: number | null | undefined;
|
|
197
|
+
allocate_advances_automatically?: 0 | 1 | undefined;
|
|
246
198
|
payment_terms_template?: string | null | undefined;
|
|
199
|
+
ignore_default_payment_terms_template?: 0 | 1 | undefined;
|
|
247
200
|
party_account_currency?: string | null | undefined;
|
|
201
|
+
is_opening?: "No" | "Yes" | undefined;
|
|
248
202
|
advances?: {
|
|
249
|
-
name: string;
|
|
250
|
-
docstatus: number;
|
|
251
|
-
owner: string;
|
|
252
|
-
creation: string;
|
|
253
|
-
modified: string;
|
|
254
|
-
modified_by: string;
|
|
255
|
-
idx: number;
|
|
256
203
|
doctype: "Sales Invoice Advance";
|
|
257
|
-
parent: string;
|
|
258
|
-
parenttype: string;
|
|
259
|
-
parentfield: string;
|
|
260
204
|
reference_name: string;
|
|
261
205
|
reference_type: string;
|
|
262
206
|
advance_amount: number;
|
|
263
|
-
_user_tags?: string | null | undefined;
|
|
264
207
|
allocated_amount?: number | null | undefined;
|
|
265
208
|
remarks?: string | null | undefined;
|
|
266
209
|
reference_row?: string | null | undefined;
|
|
267
210
|
}[] | null | undefined;
|
|
268
211
|
payment_schedule?: any[] | null | undefined;
|
|
212
|
+
custom_invoice_no?: string | null | undefined;
|
|
213
|
+
is_pos?: 0 | 1 | undefined;
|
|
269
214
|
pos_profile?: string | null | undefined;
|
|
215
|
+
is_debit_note?: 0 | 1 | undefined;
|
|
216
|
+
update_outstanding_for_self?: 0 | 1 | undefined;
|
|
217
|
+
update_billed_amount_in_sales_order?: 0 | 1 | undefined;
|
|
218
|
+
update_billed_amount_in_delivery_note?: 0 | 1 | undefined;
|
|
219
|
+
is_consolidated?: 0 | 1 | undefined;
|
|
270
220
|
named_place?: string | null | undefined;
|
|
221
|
+
use_company_roundoff_cost_center?: 0 | 1 | undefined;
|
|
271
222
|
coupon_code?: string | null | undefined;
|
|
223
|
+
is_cash_or_non_trade_discount?: 0 | 1 | undefined;
|
|
272
224
|
additional_discount_account?: string | null | undefined;
|
|
273
225
|
timesheets?: any[] | null | undefined;
|
|
274
226
|
total_billing_hours?: number | null | undefined;
|
|
275
227
|
total_billing_amount?: number | null | undefined;
|
|
276
228
|
cash_bank_account?: string | null | undefined;
|
|
277
229
|
payments?: {
|
|
278
|
-
name: string;
|
|
279
|
-
docstatus: number;
|
|
280
|
-
owner: string;
|
|
281
|
-
creation: string;
|
|
282
|
-
modified: string;
|
|
283
|
-
modified_by: string;
|
|
284
|
-
idx: number;
|
|
285
|
-
doctype: string;
|
|
286
|
-
parent: string;
|
|
287
|
-
parenttype: string;
|
|
288
|
-
parentfield: string;
|
|
289
230
|
amount: number;
|
|
290
231
|
mode_of_payment: string;
|
|
291
|
-
_user_tags?: string | null | undefined;
|
|
292
232
|
base_amount?: number | null | undefined;
|
|
293
233
|
account?: string | null | undefined;
|
|
294
234
|
reference_no?: string | null | undefined;
|
|
@@ -297,11 +237,15 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
297
237
|
base_change_amount?: number | null | undefined;
|
|
298
238
|
change_amount?: number | null | undefined;
|
|
299
239
|
account_for_change_amount?: string | null | undefined;
|
|
240
|
+
only_include_allocated_payments?: 0 | 1 | undefined;
|
|
241
|
+
write_off_outstanding_amount_automatically?: 0 | 1 | undefined;
|
|
300
242
|
write_off_account?: string | null | undefined;
|
|
301
243
|
write_off_cost_center?: string | null | undefined;
|
|
244
|
+
redeem_loyalty_points?: 0 | 1 | undefined;
|
|
302
245
|
loyalty_points?: number | null | undefined;
|
|
303
246
|
loyalty_amount?: number | null | undefined;
|
|
304
247
|
loyalty_program?: string | null | undefined;
|
|
248
|
+
dont_create_loyalty_points?: 0 | 1 | undefined;
|
|
305
249
|
loyalty_redemption_account?: string | null | undefined;
|
|
306
250
|
loyalty_redemption_cost_center?: string | null | undefined;
|
|
307
251
|
unrealized_profit_loss_account?: string | null | undefined;
|
|
@@ -310,7 +254,9 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
310
254
|
from_date?: string | null | undefined;
|
|
311
255
|
to_date?: string | null | undefined;
|
|
312
256
|
update_auto_repeat_reference?: string | null | undefined;
|
|
257
|
+
is_discounted?: 0 | 1 | undefined;
|
|
313
258
|
inter_company_invoice_reference?: string | null | undefined;
|
|
259
|
+
repost_required?: 0 | 1 | undefined;
|
|
314
260
|
}>;
|
|
315
261
|
createFromSalesOrder(salesOrderName: string, submit?: boolean): Promise<{
|
|
316
262
|
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";
|
|
@@ -621,52 +567,19 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
621
567
|
inter_company_invoice_reference?: string | null | undefined;
|
|
622
568
|
}>;
|
|
623
569
|
createInvoiceDraftFromDeliveryNote(deliveryNoteName: string): Promise<{
|
|
624
|
-
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";
|
|
625
|
-
docstatus: number;
|
|
626
|
-
owner: string;
|
|
627
|
-
creation: string;
|
|
628
|
-
modified: string;
|
|
629
|
-
modified_by: string;
|
|
630
|
-
idx: number;
|
|
631
|
-
doctype: string;
|
|
632
570
|
company: string;
|
|
633
|
-
naming_series: "INV-.#" | "INV-.#-GS";
|
|
634
571
|
customer: string;
|
|
635
572
|
posting_date: string;
|
|
636
|
-
set_posting_time: 0 | 1;
|
|
637
573
|
currency: string;
|
|
638
|
-
conversion_rate: number;
|
|
639
574
|
items: {
|
|
640
|
-
name: string;
|
|
641
|
-
docstatus: number;
|
|
642
|
-
owner: string;
|
|
643
|
-
creation: string;
|
|
644
|
-
modified: string;
|
|
645
|
-
modified_by: string;
|
|
646
|
-
idx: number;
|
|
647
|
-
doctype: string;
|
|
648
|
-
parent: string;
|
|
649
|
-
parenttype: string;
|
|
650
|
-
parentfield: string;
|
|
651
575
|
item_code: string;
|
|
652
|
-
item_name: string;
|
|
653
576
|
qty: number;
|
|
654
577
|
rate: number;
|
|
655
|
-
delivered_by_supplier: 0 | 1;
|
|
656
578
|
uom: string;
|
|
657
|
-
is_free_item: 0 | 1;
|
|
658
|
-
grant_commission: 0 | 1;
|
|
659
|
-
allow_zero_valuation_rate: 0 | 1;
|
|
660
|
-
page_break: 0 | 1;
|
|
661
|
-
is_fixed_asset: 0 | 1;
|
|
662
|
-
enable_deferred_revenue: 0 | 1;
|
|
663
|
-
has_item_scanned: 0 | 1;
|
|
664
|
-
income_account: string;
|
|
665
|
-
use_serial_batch_fields: 0 | 1;
|
|
666
579
|
description?: string | null | undefined;
|
|
667
580
|
brand?: string | null | undefined;
|
|
668
|
-
_user_tags?: string | null | undefined;
|
|
669
581
|
image?: string | null | undefined;
|
|
582
|
+
item_name?: string | undefined;
|
|
670
583
|
item_tax_template?: string | null | undefined;
|
|
671
584
|
amount?: number | null | undefined;
|
|
672
585
|
base_rate?: number | null | undefined;
|
|
@@ -675,6 +588,7 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
675
588
|
net_amount?: number | null | undefined;
|
|
676
589
|
base_net_rate?: number | null | undefined;
|
|
677
590
|
base_net_amount?: number | null | undefined;
|
|
591
|
+
delivered_by_supplier?: 0 | 1 | undefined;
|
|
678
592
|
weight_per_unit?: number | null | undefined;
|
|
679
593
|
total_weight?: number | null | undefined;
|
|
680
594
|
weight_uom?: string | null | undefined;
|
|
@@ -701,6 +615,8 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
701
615
|
base_rate_with_margin?: number | null | undefined;
|
|
702
616
|
pricing_rules?: string | null | undefined;
|
|
703
617
|
stock_uom_rate?: number | null | undefined;
|
|
618
|
+
is_free_item?: 0 | 1 | undefined;
|
|
619
|
+
grant_commission?: 0 | 1 | undefined;
|
|
704
620
|
incoming_rate?: number | null | undefined;
|
|
705
621
|
warehouse?: string | null | undefined;
|
|
706
622
|
target_warehouse?: string | null | undefined;
|
|
@@ -711,9 +627,15 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
711
627
|
actual_qty?: number | null | undefined;
|
|
712
628
|
item_tax_rate?: string | null | undefined;
|
|
713
629
|
expense_account?: string | null | undefined;
|
|
630
|
+
allow_zero_valuation_rate?: 0 | 1 | undefined;
|
|
631
|
+
page_break?: 0 | 1 | undefined;
|
|
632
|
+
is_fixed_asset?: 0 | 1 | undefined;
|
|
633
|
+
enable_deferred_revenue?: 0 | 1 | undefined;
|
|
714
634
|
purchase_order?: string | null | undefined;
|
|
715
635
|
purchase_order_item?: string | null | undefined;
|
|
636
|
+
has_item_scanned?: 0 | 1 | undefined;
|
|
716
637
|
delivered_qty?: number | null | undefined;
|
|
638
|
+
income_account?: string | undefined;
|
|
717
639
|
discount_account?: string | null | undefined;
|
|
718
640
|
deferred_revenue_account?: string | null | undefined;
|
|
719
641
|
service_start_date?: string | null | undefined;
|
|
@@ -721,43 +643,21 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
721
643
|
service_end_date?: string | null | undefined;
|
|
722
644
|
asset?: string | null | undefined;
|
|
723
645
|
finance_book?: string | null | undefined;
|
|
646
|
+
use_serial_batch_fields?: 0 | 1 | undefined;
|
|
724
647
|
serial_and_batch_bundle?: string | null | undefined;
|
|
725
648
|
}[];
|
|
726
|
-
is_return: 0 | 1;
|
|
727
649
|
selling_price_list: string;
|
|
728
|
-
plc_conversion_rate: number;
|
|
729
|
-
ignore_pricing_rule: 0 | 1;
|
|
730
|
-
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
731
|
-
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
732
|
-
disable_rounded_total: 0 | 1;
|
|
733
|
-
is_internal_customer: 0 | 1;
|
|
734
|
-
group_same_items: 0 | 1;
|
|
735
|
-
update_stock: 0 | 1;
|
|
736
|
-
allocate_advances_automatically: 0 | 1;
|
|
737
|
-
ignore_default_payment_terms_template: 0 | 1;
|
|
738
|
-
is_opening: "No" | "Yes";
|
|
739
|
-
custom_invoice_no: string;
|
|
740
|
-
is_pos: 0 | 1;
|
|
741
|
-
is_debit_note: 0 | 1;
|
|
742
|
-
update_outstanding_for_self: 0 | 1;
|
|
743
|
-
update_billed_amount_in_sales_order: 0 | 1;
|
|
744
|
-
update_billed_amount_in_delivery_note: 0 | 1;
|
|
745
|
-
is_consolidated: 0 | 1;
|
|
746
|
-
use_company_roundoff_cost_center: 0 | 1;
|
|
747
|
-
is_cash_or_non_trade_discount: 0 | 1;
|
|
748
|
-
only_include_allocated_payments: 0 | 1;
|
|
749
|
-
write_off_outstanding_amount_automatically: 0 | 1;
|
|
750
|
-
redeem_loyalty_points: 0 | 1;
|
|
751
|
-
dont_create_loyalty_points: 0 | 1;
|
|
752
650
|
debit_to: string;
|
|
753
|
-
|
|
754
|
-
|
|
651
|
+
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" | undefined;
|
|
652
|
+
docstatus?: number | undefined;
|
|
755
653
|
amended_from?: string | null | undefined;
|
|
756
|
-
_user_tags?: string | null | undefined;
|
|
757
654
|
tax_category?: string | null | undefined;
|
|
655
|
+
naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
|
|
758
656
|
language?: string | null | undefined;
|
|
759
657
|
posting_time?: string | null | undefined;
|
|
658
|
+
set_posting_time?: 0 | 1 | undefined;
|
|
760
659
|
company_tax_id?: string | null | undefined;
|
|
660
|
+
conversion_rate?: number | undefined;
|
|
761
661
|
total_qty?: number | null | undefined;
|
|
762
662
|
total_net_weight?: number | null | undefined;
|
|
763
663
|
base_total?: number | null | undefined;
|
|
@@ -773,6 +673,7 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
773
673
|
pricing_rules?: any[] | null | undefined;
|
|
774
674
|
title?: string | null | undefined;
|
|
775
675
|
customer_name?: string | null | undefined;
|
|
676
|
+
is_return?: 0 | 1 | undefined;
|
|
776
677
|
return_against?: string | null | undefined;
|
|
777
678
|
po_no?: string | null | undefined;
|
|
778
679
|
po_date?: string | null | undefined;
|
|
@@ -787,16 +688,20 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
787
688
|
company_address?: string | null | undefined;
|
|
788
689
|
company_address_display?: string | null | undefined;
|
|
789
690
|
price_list_currency?: string | null | undefined;
|
|
691
|
+
plc_conversion_rate?: number | undefined;
|
|
692
|
+
ignore_pricing_rule?: 0 | 1 | undefined;
|
|
790
693
|
set_warehouse?: string | null | undefined;
|
|
791
694
|
set_target_warehouse?: string | null | undefined;
|
|
792
695
|
scan_barcode?: string | null | undefined;
|
|
793
696
|
shipping_rule?: string | null | undefined;
|
|
794
697
|
incoterm?: string | null | undefined;
|
|
795
698
|
custom_shipping_cost?: number | null | undefined;
|
|
699
|
+
custom_tax_included_in_shipping_cost?: 0 | 1 | undefined;
|
|
796
700
|
taxes_and_charges?: string | null | undefined;
|
|
797
701
|
other_charges_calculation?: string | null | undefined;
|
|
798
702
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
799
703
|
total_taxes_and_charges?: number | null | undefined;
|
|
704
|
+
apply_discount_on?: "" | "Grand Total" | "Net Total" | undefined;
|
|
800
705
|
base_discount_amount?: number | null | undefined;
|
|
801
706
|
additional_discount_percentage?: number | null | undefined;
|
|
802
707
|
base_grand_total?: number | null | undefined;
|
|
@@ -807,15 +712,18 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
807
712
|
rounding_adjustment?: number | null | undefined;
|
|
808
713
|
rounded_total?: number | null | undefined;
|
|
809
714
|
in_words?: string | null | undefined;
|
|
715
|
+
disable_rounded_total?: 0 | 1 | undefined;
|
|
810
716
|
tc_name?: string | null | undefined;
|
|
811
717
|
terms?: string | null | undefined;
|
|
812
718
|
campaign?: string | null | undefined;
|
|
813
719
|
source?: string | null | undefined;
|
|
720
|
+
is_internal_customer?: 0 | 1 | undefined;
|
|
814
721
|
represents_company?: string | null | undefined;
|
|
815
722
|
customer_group?: string | null | undefined;
|
|
816
723
|
territory?: string | null | undefined;
|
|
817
724
|
letter_head?: string | null | undefined;
|
|
818
725
|
select_print_heading?: string | null | undefined;
|
|
726
|
+
group_same_items?: 0 | 1 | undefined;
|
|
819
727
|
auto_repeat?: string | null | undefined;
|
|
820
728
|
sales_partner?: string | null | undefined;
|
|
821
729
|
amount_eligible_for_commission?: number | null | undefined;
|
|
@@ -823,22 +731,10 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
823
731
|
total_commission?: number | null | undefined;
|
|
824
732
|
packed_items?: any[] | null | undefined;
|
|
825
733
|
taxes?: {
|
|
826
|
-
name: string;
|
|
827
|
-
docstatus: number;
|
|
828
|
-
owner: string;
|
|
829
|
-
creation: string;
|
|
830
|
-
modified: string;
|
|
831
|
-
modified_by: string;
|
|
832
|
-
idx: number;
|
|
833
|
-
doctype: string;
|
|
834
|
-
parent: string;
|
|
835
|
-
parenttype: string;
|
|
836
|
-
parentfield: string;
|
|
837
734
|
charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
|
|
838
735
|
account_head: string;
|
|
839
736
|
included_in_print_rate: 0 | 1;
|
|
840
737
|
description?: string | undefined;
|
|
841
|
-
_user_tags?: string | null | undefined;
|
|
842
738
|
account_currency?: string | undefined;
|
|
843
739
|
rate?: number | undefined;
|
|
844
740
|
base_total?: number | undefined;
|
|
@@ -855,55 +751,45 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
855
751
|
base_paid_amount?: number | null | undefined;
|
|
856
752
|
remarks?: string | null | undefined;
|
|
857
753
|
due_date?: string | null | undefined;
|
|
754
|
+
update_stock?: 0 | 1 | undefined;
|
|
858
755
|
total_advance?: number | null | undefined;
|
|
859
756
|
write_off_amount?: number | null | undefined;
|
|
860
757
|
base_write_off_amount?: number | null | undefined;
|
|
758
|
+
allocate_advances_automatically?: 0 | 1 | undefined;
|
|
861
759
|
payment_terms_template?: string | null | undefined;
|
|
760
|
+
ignore_default_payment_terms_template?: 0 | 1 | undefined;
|
|
862
761
|
party_account_currency?: string | null | undefined;
|
|
762
|
+
is_opening?: "No" | "Yes" | undefined;
|
|
863
763
|
advances?: {
|
|
864
|
-
name: string;
|
|
865
|
-
docstatus: number;
|
|
866
|
-
owner: string;
|
|
867
|
-
creation: string;
|
|
868
|
-
modified: string;
|
|
869
|
-
modified_by: string;
|
|
870
|
-
idx: number;
|
|
871
764
|
doctype: "Sales Invoice Advance";
|
|
872
|
-
parent: string;
|
|
873
|
-
parenttype: string;
|
|
874
|
-
parentfield: string;
|
|
875
765
|
reference_name: string;
|
|
876
766
|
reference_type: string;
|
|
877
767
|
advance_amount: number;
|
|
878
|
-
_user_tags?: string | null | undefined;
|
|
879
768
|
allocated_amount?: number | null | undefined;
|
|
880
769
|
remarks?: string | null | undefined;
|
|
881
770
|
reference_row?: string | null | undefined;
|
|
882
771
|
}[] | null | undefined;
|
|
883
772
|
payment_schedule?: any[] | null | undefined;
|
|
773
|
+
custom_invoice_no?: string | null | undefined;
|
|
774
|
+
is_pos?: 0 | 1 | undefined;
|
|
884
775
|
pos_profile?: string | null | undefined;
|
|
776
|
+
is_debit_note?: 0 | 1 | undefined;
|
|
777
|
+
update_outstanding_for_self?: 0 | 1 | undefined;
|
|
778
|
+
update_billed_amount_in_sales_order?: 0 | 1 | undefined;
|
|
779
|
+
update_billed_amount_in_delivery_note?: 0 | 1 | undefined;
|
|
780
|
+
is_consolidated?: 0 | 1 | undefined;
|
|
885
781
|
named_place?: string | null | undefined;
|
|
782
|
+
use_company_roundoff_cost_center?: 0 | 1 | undefined;
|
|
886
783
|
coupon_code?: string | null | undefined;
|
|
784
|
+
is_cash_or_non_trade_discount?: 0 | 1 | undefined;
|
|
887
785
|
additional_discount_account?: string | null | undefined;
|
|
888
786
|
timesheets?: any[] | null | undefined;
|
|
889
787
|
total_billing_hours?: number | null | undefined;
|
|
890
788
|
total_billing_amount?: number | null | undefined;
|
|
891
789
|
cash_bank_account?: string | null | undefined;
|
|
892
790
|
payments?: {
|
|
893
|
-
name: string;
|
|
894
|
-
docstatus: number;
|
|
895
|
-
owner: string;
|
|
896
|
-
creation: string;
|
|
897
|
-
modified: string;
|
|
898
|
-
modified_by: string;
|
|
899
|
-
idx: number;
|
|
900
|
-
doctype: string;
|
|
901
|
-
parent: string;
|
|
902
|
-
parenttype: string;
|
|
903
|
-
parentfield: string;
|
|
904
791
|
amount: number;
|
|
905
792
|
mode_of_payment: string;
|
|
906
|
-
_user_tags?: string | null | undefined;
|
|
907
793
|
base_amount?: number | null | undefined;
|
|
908
794
|
account?: string | null | undefined;
|
|
909
795
|
reference_no?: string | null | undefined;
|
|
@@ -912,11 +798,15 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
912
798
|
base_change_amount?: number | null | undefined;
|
|
913
799
|
change_amount?: number | null | undefined;
|
|
914
800
|
account_for_change_amount?: string | null | undefined;
|
|
801
|
+
only_include_allocated_payments?: 0 | 1 | undefined;
|
|
802
|
+
write_off_outstanding_amount_automatically?: 0 | 1 | undefined;
|
|
915
803
|
write_off_account?: string | null | undefined;
|
|
916
804
|
write_off_cost_center?: string | null | undefined;
|
|
805
|
+
redeem_loyalty_points?: 0 | 1 | undefined;
|
|
917
806
|
loyalty_points?: number | null | undefined;
|
|
918
807
|
loyalty_amount?: number | null | undefined;
|
|
919
808
|
loyalty_program?: string | null | undefined;
|
|
809
|
+
dont_create_loyalty_points?: 0 | 1 | undefined;
|
|
920
810
|
loyalty_redemption_account?: string | null | undefined;
|
|
921
811
|
loyalty_redemption_cost_center?: string | null | undefined;
|
|
922
812
|
unrealized_profit_loss_account?: string | null | undefined;
|
|
@@ -925,7 +815,9 @@ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResour
|
|
|
925
815
|
from_date?: string | null | undefined;
|
|
926
816
|
to_date?: string | null | undefined;
|
|
927
817
|
update_auto_repeat_reference?: string | null | undefined;
|
|
818
|
+
is_discounted?: 0 | 1 | undefined;
|
|
928
819
|
inter_company_invoice_reference?: string | null | undefined;
|
|
820
|
+
repost_required?: 0 | 1 | undefined;
|
|
929
821
|
}>;
|
|
930
822
|
createFromDeliveryNote(deliveryNoteName: string, submit?: boolean): Promise<{
|
|
931
823
|
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";
|