erpnext-queue-client 2.5.0 → 2.5.2

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.
Files changed (34) hide show
  1. package/dist/client.js +1 -1
  2. package/dist/erpnext/doctypeResourceRequest.d.ts +12 -1
  3. package/dist/erpnext/doctypeResourceRequest.js +3 -3
  4. package/dist/erpnext/doctypes/address.d.ts +3 -233
  5. package/dist/erpnext/doctypes/address.js +5 -16
  6. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.d.ts +3 -486
  7. package/dist/erpnext/doctypes/consolidatedCustomsInvoice.js +4 -18
  8. package/dist/erpnext/doctypes/contact.d.ts +3 -358
  9. package/dist/erpnext/doctypes/contact.js +6 -17
  10. package/dist/erpnext/doctypes/deliveryNote.d.ts +1 -1575
  11. package/dist/erpnext/doctypes/deliveryNote.js +2 -19
  12. package/dist/erpnext/doctypes/item.d.ts +1 -1019
  13. package/dist/erpnext/doctypes/item.js +3 -16
  14. package/dist/erpnext/doctypes/paymentEntry.d.ts +1 -728
  15. package/dist/erpnext/doctypes/paymentEntry.js +4 -21
  16. package/dist/erpnext/doctypes/productBundle.d.ts +1 -143
  17. package/dist/erpnext/doctypes/productBundle.js +2 -13
  18. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +1 -1395
  19. package/dist/erpnext/doctypes/purchaseInvoice.js +4 -19
  20. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +1 -1204
  21. package/dist/erpnext/doctypes/purchaseReceipt.js +4 -19
  22. package/dist/erpnext/doctypes/salesInvoice.d.ts +1 -2517
  23. package/dist/erpnext/doctypes/salesInvoice.js +4 -21
  24. package/dist/erpnext/doctypes/servicecase.d.ts +24 -425
  25. package/dist/erpnext/doctypes/servicecase.js +14 -15
  26. package/dist/erpnext/doctypes/shipment.d.ts +3 -760
  27. package/dist/erpnext/doctypes/shipment.js +3 -20
  28. package/dist/erpnext/item.getList.alias-parsing.test.d.ts +1 -0
  29. package/dist/erpnext/item.getList.alias-parsing.test.js +66 -0
  30. package/dist/erpnext/model/Shipment.d.ts +4 -4
  31. package/dist/erpnext/model/Shipment.js +1 -1
  32. package/dist/index.test.js +3 -2
  33. package/dist/utils/zodUtils.js +14 -6
  34. package/package.json +1 -1
@@ -2,2524 +2,8 @@ import { TemporalClient } from "../../client";
2
2
  import { ERPNextDoctypeSubmittableResourceRequest } from "../doctypeSubmittableResourceRequest";
3
3
  import { ERPNextMethodRequest } from "../methodRequest";
4
4
  import { SalesInvoice } from "../model/SalesInvoice";
5
- export declare class ERPNextSalesInvoice {
6
- protected temporalClient: TemporalClient;
7
- protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof SalesInvoice>;
5
+ export declare class ERPNextSalesInvoice extends ERPNextDoctypeSubmittableResourceRequest<typeof SalesInvoice> {
8
6
  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" | "currency" | "conversion_rate" | "is_return" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "custom_tax_included_in_shipping_cost" | "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" | "posting_time" | "company_tax_id" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "dispatch_address" | "tax_id" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "shipping_rule" | "incoterm" | "custom_shipping_cost" | "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" | "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 ["*"] | readonly TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
10
- fields?: TSelectedFields;
11
- filters?: (string | string[])[][];
12
- skip?: number;
13
- limit?: number;
14
- priority?: number;
15
- asDict?: TAsDict;
16
- params?: Record<string, string>;
17
- }) => Promise<(TAsDict extends false ? string[][] : TSelectedFields extends undefined ? {
18
- name: string;
19
- }[] : TSelectedFields extends readonly ["*"] ? {
20
- 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";
21
- docstatus: number;
22
- name: string;
23
- owner: string;
24
- creation: string;
25
- modified: string;
26
- modified_by: string;
27
- idx: number;
28
- company: string;
29
- naming_series: "INV-.#" | "INV-.#-GS";
30
- customer: string;
31
- posting_date: string;
32
- set_posting_time: 0 | 1;
33
- currency: string;
34
- conversion_rate: number;
35
- is_return: 0 | 1;
36
- selling_price_list: string;
37
- plc_conversion_rate: number;
38
- ignore_pricing_rule: 0 | 1;
39
- custom_tax_included_in_shipping_cost: 0 | 1;
40
- apply_discount_on: "" | "Grand Total" | "Net Total";
41
- disable_rounded_total: 0 | 1;
42
- is_internal_customer: 0 | 1;
43
- group_same_items: 0 | 1;
44
- update_stock: 0 | 1;
45
- allocate_advances_automatically: 0 | 1;
46
- ignore_default_payment_terms_template: 0 | 1;
47
- is_opening: "No" | "Yes";
48
- custom_invoice_no: string;
49
- is_pos: 0 | 1;
50
- is_debit_note: 0 | 1;
51
- update_outstanding_for_self: 0 | 1;
52
- update_billed_amount_in_sales_order: 0 | 1;
53
- update_billed_amount_in_delivery_note: 0 | 1;
54
- is_consolidated: 0 | 1;
55
- use_company_roundoff_cost_center: 0 | 1;
56
- is_cash_or_non_trade_discount: 0 | 1;
57
- only_include_allocated_payments: 0 | 1;
58
- write_off_outstanding_amount_automatically: 0 | 1;
59
- redeem_loyalty_points: 0 | 1;
60
- dont_create_loyalty_points: 0 | 1;
61
- debit_to: string;
62
- is_discounted: 0 | 1;
63
- repost_required: 0 | 1;
64
- amended_from?: string | null | undefined;
65
- _user_tags?: string | null | undefined;
66
- tax_category?: string | null | undefined;
67
- language?: string | null | undefined;
68
- posting_time?: string | null | undefined;
69
- company_tax_id?: string | null | undefined;
70
- total_qty?: number | null | undefined;
71
- total_net_weight?: number | null | undefined;
72
- base_total?: number | null | undefined;
73
- base_net_total?: number | null | undefined;
74
- total?: number | null | undefined;
75
- net_total?: number | null | undefined;
76
- dispatch_address_name?: string | null | undefined;
77
- dispatch_address?: string | null | undefined;
78
- tax_id?: string | null | undefined;
79
- discount_amount?: number | null | undefined;
80
- pricing_rules?: any[] | null | undefined;
81
- cost_center?: string | null | undefined;
82
- project?: string | null | undefined;
83
- title?: string | null | undefined;
84
- customer_name?: string | null | undefined;
85
- return_against?: string | null | undefined;
86
- po_no?: string | null | undefined;
87
- po_date?: string | null | undefined;
88
- shipping_address_name?: string | null | undefined;
89
- shipping_address?: string | null | undefined;
90
- contact_person?: string | null | undefined;
91
- contact_display?: string | null | undefined;
92
- contact_mobile?: string | null | undefined;
93
- contact_email?: string | null | undefined;
94
- customer_address?: string | null | undefined;
95
- address_display?: string | null | undefined;
96
- company_address?: string | null | undefined;
97
- company_address_display?: string | null | undefined;
98
- price_list_currency?: string | null | undefined;
99
- set_warehouse?: string | null | undefined;
100
- set_target_warehouse?: string | null | undefined;
101
- scan_barcode?: string | null | undefined;
102
- shipping_rule?: string | null | undefined;
103
- incoterm?: string | null | undefined;
104
- custom_shipping_cost?: number | null | undefined;
105
- taxes_and_charges?: string | null | undefined;
106
- other_charges_calculation?: string | null | undefined;
107
- base_total_taxes_and_charges?: number | null | undefined;
108
- total_taxes_and_charges?: number | null | undefined;
109
- base_discount_amount?: number | null | undefined;
110
- additional_discount_percentage?: number | null | undefined;
111
- base_grand_total?: number | null | undefined;
112
- base_rounding_adjustment?: number | null | undefined;
113
- base_rounded_total?: number | null | undefined;
114
- base_in_words?: string | null | undefined;
115
- grand_total?: number | null | undefined;
116
- rounding_adjustment?: number | null | undefined;
117
- rounded_total?: number | null | undefined;
118
- in_words?: string | null | undefined;
119
- tc_name?: string | null | undefined;
120
- terms?: string | null | undefined;
121
- campaign?: string | null | undefined;
122
- source?: string | null | undefined;
123
- represents_company?: string | null | undefined;
124
- customer_group?: string | null | undefined;
125
- territory?: string | null | undefined;
126
- letter_head?: string | null | undefined;
127
- select_print_heading?: string | null | undefined;
128
- auto_repeat?: string | null | undefined;
129
- sales_partner?: string | null | undefined;
130
- amount_eligible_for_commission?: number | null | undefined;
131
- commission_rate?: number | null | undefined;
132
- total_commission?: number | null | undefined;
133
- packed_items?: any[] | null | undefined;
134
- taxes?: {
135
- docstatus: number;
136
- name: string;
137
- owner: string;
138
- creation: string;
139
- modified: string;
140
- modified_by: string;
141
- idx: number;
142
- doctype: string;
143
- parent: string;
144
- parenttype: string;
145
- parentfield: string;
146
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
147
- included_in_print_rate: 0 | 1;
148
- account_head: string;
149
- description?: string | undefined;
150
- _user_tags?: string | null | undefined;
151
- account_currency?: string | undefined;
152
- rate?: number | undefined;
153
- base_total?: number | undefined;
154
- total?: number | undefined;
155
- cost_center?: string | undefined;
156
- project?: string | undefined;
157
- tax_amount?: number | undefined;
158
- tax_amount_after_discount_amount?: number | undefined;
159
- base_tax_amount?: number | undefined;
160
- }[] | null | undefined;
161
- sales_team?: any[] | null | undefined;
162
- outstanding_amount?: number | null | undefined;
163
- paid_amount?: number | null | undefined;
164
- base_paid_amount?: number | null | undefined;
165
- remarks?: string | null | undefined;
166
- due_date?: string | null | undefined;
167
- total_advance?: number | null | undefined;
168
- write_off_amount?: number | null | undefined;
169
- base_write_off_amount?: number | null | undefined;
170
- payment_terms_template?: string | null | undefined;
171
- party_account_currency?: string | null | undefined;
172
- advances?: {
173
- docstatus: number;
174
- name: string;
175
- owner: string;
176
- creation: string;
177
- modified: string;
178
- modified_by: string;
179
- idx: number;
180
- doctype: "Sales Invoice Advance";
181
- parent: string;
182
- parenttype: string;
183
- parentfield: string;
184
- reference_name: string;
185
- reference_type: string;
186
- advance_amount: number;
187
- _user_tags?: string | null | undefined;
188
- allocated_amount?: number | null | undefined;
189
- remarks?: string | null | undefined;
190
- reference_row?: string | null | undefined;
191
- }[] | null | undefined;
192
- payment_schedule?: any[] | null | undefined;
193
- pos_profile?: string | null | undefined;
194
- named_place?: string | null | undefined;
195
- coupon_code?: string | null | undefined;
196
- additional_discount_account?: string | null | undefined;
197
- timesheets?: any[] | null | undefined;
198
- total_billing_hours?: number | null | undefined;
199
- total_billing_amount?: number | null | undefined;
200
- cash_bank_account?: string | null | undefined;
201
- payments?: {
202
- docstatus: number;
203
- name: string;
204
- owner: string;
205
- creation: string;
206
- modified: string;
207
- modified_by: string;
208
- idx: number;
209
- doctype: string;
210
- parent: string;
211
- parenttype: string;
212
- parentfield: string;
213
- amount: number;
214
- mode_of_payment: string;
215
- _user_tags?: string | null | undefined;
216
- base_amount?: number | null | undefined;
217
- account?: string | null | undefined;
218
- reference_no?: string | null | undefined;
219
- clearance_date?: string | null | undefined;
220
- }[] | null | undefined;
221
- base_change_amount?: number | null | undefined;
222
- change_amount?: number | null | undefined;
223
- account_for_change_amount?: string | null | undefined;
224
- write_off_account?: string | null | undefined;
225
- write_off_cost_center?: string | null | undefined;
226
- loyalty_points?: number | null | undefined;
227
- loyalty_amount?: number | null | undefined;
228
- loyalty_program?: string | null | undefined;
229
- loyalty_redemption_account?: string | null | undefined;
230
- loyalty_redemption_cost_center?: string | null | undefined;
231
- unrealized_profit_loss_account?: string | null | undefined;
232
- against_income_account?: string | null | undefined;
233
- subscription?: string | null | undefined;
234
- from_date?: string | null | undefined;
235
- to_date?: string | null | undefined;
236
- update_auto_repeat_reference?: string | null | undefined;
237
- inter_company_invoice_reference?: string | null | undefined;
238
- }[] : TSelectedFields extends readonly 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" | "currency" | "conversion_rate" | "is_return" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "custom_tax_included_in_shipping_cost" | "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" | "posting_time" | "company_tax_id" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "dispatch_address" | "tax_id" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "shipping_rule" | "incoterm" | "custom_shipping_cost" | "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" | "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") ? {
239
- 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";
240
- docstatus: number;
241
- name: string;
242
- owner: string;
243
- creation: string;
244
- modified: string;
245
- modified_by: string;
246
- idx: number;
247
- company: string;
248
- naming_series: "INV-.#" | "INV-.#-GS";
249
- customer: string;
250
- posting_date: string;
251
- set_posting_time: 0 | 1;
252
- currency: string;
253
- conversion_rate: number;
254
- is_return: 0 | 1;
255
- selling_price_list: string;
256
- plc_conversion_rate: number;
257
- ignore_pricing_rule: 0 | 1;
258
- custom_tax_included_in_shipping_cost: 0 | 1;
259
- apply_discount_on: "" | "Grand Total" | "Net Total";
260
- disable_rounded_total: 0 | 1;
261
- is_internal_customer: 0 | 1;
262
- group_same_items: 0 | 1;
263
- update_stock: 0 | 1;
264
- allocate_advances_automatically: 0 | 1;
265
- ignore_default_payment_terms_template: 0 | 1;
266
- is_opening: "No" | "Yes";
267
- custom_invoice_no: string;
268
- is_pos: 0 | 1;
269
- is_debit_note: 0 | 1;
270
- update_outstanding_for_self: 0 | 1;
271
- update_billed_amount_in_sales_order: 0 | 1;
272
- update_billed_amount_in_delivery_note: 0 | 1;
273
- is_consolidated: 0 | 1;
274
- use_company_roundoff_cost_center: 0 | 1;
275
- is_cash_or_non_trade_discount: 0 | 1;
276
- only_include_allocated_payments: 0 | 1;
277
- write_off_outstanding_amount_automatically: 0 | 1;
278
- redeem_loyalty_points: 0 | 1;
279
- dont_create_loyalty_points: 0 | 1;
280
- debit_to: string;
281
- is_discounted: 0 | 1;
282
- repost_required: 0 | 1;
283
- amended_from?: string | null | undefined;
284
- _user_tags?: string | null | undefined;
285
- tax_category?: string | null | undefined;
286
- language?: string | null | undefined;
287
- posting_time?: string | null | undefined;
288
- company_tax_id?: string | null | undefined;
289
- total_qty?: number | null | undefined;
290
- total_net_weight?: number | null | undefined;
291
- base_total?: number | null | undefined;
292
- base_net_total?: number | null | undefined;
293
- total?: number | null | undefined;
294
- net_total?: number | null | undefined;
295
- dispatch_address_name?: string | null | undefined;
296
- dispatch_address?: string | null | undefined;
297
- tax_id?: string | null | undefined;
298
- discount_amount?: number | null | undefined;
299
- pricing_rules?: any[] | null | undefined;
300
- cost_center?: string | null | undefined;
301
- project?: string | null | undefined;
302
- title?: string | null | undefined;
303
- customer_name?: string | null | undefined;
304
- return_against?: string | null | undefined;
305
- po_no?: string | null | undefined;
306
- po_date?: string | null | undefined;
307
- shipping_address_name?: string | null | undefined;
308
- shipping_address?: string | null | undefined;
309
- contact_person?: string | null | undefined;
310
- contact_display?: string | null | undefined;
311
- contact_mobile?: string | null | undefined;
312
- contact_email?: string | null | undefined;
313
- customer_address?: string | null | undefined;
314
- address_display?: string | null | undefined;
315
- company_address?: string | null | undefined;
316
- company_address_display?: string | null | undefined;
317
- price_list_currency?: string | null | undefined;
318
- set_warehouse?: string | null | undefined;
319
- set_target_warehouse?: string | null | undefined;
320
- scan_barcode?: string | null | undefined;
321
- shipping_rule?: string | null | undefined;
322
- incoterm?: string | null | undefined;
323
- custom_shipping_cost?: number | null | undefined;
324
- taxes_and_charges?: string | null | undefined;
325
- other_charges_calculation?: string | null | undefined;
326
- base_total_taxes_and_charges?: number | null | undefined;
327
- total_taxes_and_charges?: number | null | undefined;
328
- base_discount_amount?: number | null | undefined;
329
- additional_discount_percentage?: number | null | undefined;
330
- base_grand_total?: number | null | undefined;
331
- base_rounding_adjustment?: number | null | undefined;
332
- base_rounded_total?: number | null | undefined;
333
- base_in_words?: string | null | undefined;
334
- grand_total?: number | null | undefined;
335
- rounding_adjustment?: number | null | undefined;
336
- rounded_total?: number | null | undefined;
337
- in_words?: string | null | undefined;
338
- tc_name?: string | null | undefined;
339
- terms?: string | null | undefined;
340
- campaign?: string | null | undefined;
341
- source?: string | null | undefined;
342
- represents_company?: string | null | undefined;
343
- customer_group?: string | null | undefined;
344
- territory?: string | null | undefined;
345
- letter_head?: string | null | undefined;
346
- select_print_heading?: string | null | undefined;
347
- auto_repeat?: string | null | undefined;
348
- sales_partner?: string | null | undefined;
349
- amount_eligible_for_commission?: number | null | undefined;
350
- commission_rate?: number | null | undefined;
351
- total_commission?: number | null | undefined;
352
- packed_items?: any[] | null | undefined;
353
- taxes?: {
354
- docstatus: number;
355
- name: string;
356
- owner: string;
357
- creation: string;
358
- modified: string;
359
- modified_by: string;
360
- idx: number;
361
- doctype: string;
362
- parent: string;
363
- parenttype: string;
364
- parentfield: string;
365
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
366
- included_in_print_rate: 0 | 1;
367
- account_head: string;
368
- description?: string | undefined;
369
- _user_tags?: string | null | undefined;
370
- account_currency?: string | undefined;
371
- rate?: number | undefined;
372
- base_total?: number | undefined;
373
- total?: number | undefined;
374
- cost_center?: string | undefined;
375
- project?: string | undefined;
376
- tax_amount?: number | undefined;
377
- tax_amount_after_discount_amount?: number | undefined;
378
- base_tax_amount?: number | undefined;
379
- }[] | null | undefined;
380
- sales_team?: any[] | null | undefined;
381
- outstanding_amount?: number | null | undefined;
382
- paid_amount?: number | null | undefined;
383
- base_paid_amount?: number | null | undefined;
384
- remarks?: string | null | undefined;
385
- due_date?: string | null | undefined;
386
- total_advance?: number | null | undefined;
387
- write_off_amount?: number | null | undefined;
388
- base_write_off_amount?: number | null | undefined;
389
- payment_terms_template?: string | null | undefined;
390
- party_account_currency?: string | null | undefined;
391
- advances?: {
392
- docstatus: number;
393
- name: string;
394
- owner: string;
395
- creation: string;
396
- modified: string;
397
- modified_by: string;
398
- idx: number;
399
- doctype: "Sales Invoice Advance";
400
- parent: string;
401
- parenttype: string;
402
- parentfield: string;
403
- reference_name: string;
404
- reference_type: string;
405
- advance_amount: number;
406
- _user_tags?: string | null | undefined;
407
- allocated_amount?: number | null | undefined;
408
- remarks?: string | null | undefined;
409
- reference_row?: string | null | undefined;
410
- }[] | null | undefined;
411
- payment_schedule?: any[] | null | undefined;
412
- pos_profile?: string | null | undefined;
413
- named_place?: string | null | undefined;
414
- coupon_code?: string | null | undefined;
415
- additional_discount_account?: string | null | undefined;
416
- timesheets?: any[] | null | undefined;
417
- total_billing_hours?: number | null | undefined;
418
- total_billing_amount?: number | null | undefined;
419
- cash_bank_account?: string | null | undefined;
420
- payments?: {
421
- docstatus: number;
422
- name: string;
423
- owner: string;
424
- creation: string;
425
- modified: string;
426
- modified_by: string;
427
- idx: number;
428
- doctype: string;
429
- parent: string;
430
- parenttype: string;
431
- parentfield: string;
432
- amount: number;
433
- mode_of_payment: string;
434
- _user_tags?: string | null | undefined;
435
- base_amount?: number | null | undefined;
436
- account?: string | null | undefined;
437
- reference_no?: string | null | undefined;
438
- clearance_date?: string | null | undefined;
439
- }[] | null | undefined;
440
- base_change_amount?: number | null | undefined;
441
- change_amount?: number | null | undefined;
442
- account_for_change_amount?: string | null | undefined;
443
- write_off_account?: string | null | undefined;
444
- write_off_cost_center?: string | null | undefined;
445
- loyalty_points?: number | null | undefined;
446
- loyalty_amount?: number | null | undefined;
447
- loyalty_program?: string | null | undefined;
448
- loyalty_redemption_account?: string | null | undefined;
449
- loyalty_redemption_cost_center?: string | null | undefined;
450
- unrealized_profit_loss_account?: string | null | undefined;
451
- against_income_account?: string | null | undefined;
452
- subscription?: string | null | undefined;
453
- from_date?: string | null | undefined;
454
- to_date?: string | null | undefined;
455
- update_auto_repeat_reference?: string | null | undefined;
456
- inter_company_invoice_reference?: string | null | undefined;
457
- }[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "currency" | "conversion_rate" | "is_return" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "custom_tax_included_in_shipping_cost" | "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" | "posting_time" | "company_tax_id" | "total_qty" | "total_net_weight" | "base_total" | "base_net_total" | "total" | "net_total" | "dispatch_address_name" | "dispatch_address" | "tax_id" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "shipping_rule" | "incoterm" | "custom_shipping_cost" | "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" | "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>;
458
- getById: ({ resourceId, priority, }: {
459
- resourceId: string;
460
- priority?: number;
461
- }) => Promise<{
462
- 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";
463
- docstatus: number;
464
- name: string;
465
- owner: string;
466
- creation: string;
467
- modified: string;
468
- modified_by: string;
469
- idx: number;
470
- doctype: string;
471
- company: string;
472
- naming_series: "INV-.#" | "INV-.#-GS";
473
- customer: string;
474
- posting_date: string;
475
- set_posting_time: 0 | 1;
476
- currency: string;
477
- conversion_rate: number;
478
- items: {
479
- docstatus: number;
480
- name: string;
481
- owner: string;
482
- creation: string;
483
- modified: string;
484
- modified_by: string;
485
- idx: number;
486
- doctype: string;
487
- parent: string;
488
- parenttype: string;
489
- parentfield: string;
490
- item_code: string;
491
- qty: number;
492
- rate: number;
493
- delivered_by_supplier: 0 | 1;
494
- item_name: string;
495
- uom: string;
496
- is_free_item: 0 | 1;
497
- grant_commission: 0 | 1;
498
- allow_zero_valuation_rate: 0 | 1;
499
- page_break: 0 | 1;
500
- is_fixed_asset: 0 | 1;
501
- enable_deferred_revenue: 0 | 1;
502
- has_item_scanned: 0 | 1;
503
- income_account: string;
504
- use_serial_batch_fields: 0 | 1;
505
- description?: string | null | undefined;
506
- brand?: string | null | undefined;
507
- _user_tags?: string | null | undefined;
508
- image?: string | null | undefined;
509
- item_tax_template?: string | null | undefined;
510
- amount?: number | null | undefined;
511
- base_rate?: number | null | undefined;
512
- base_amount?: number | null | undefined;
513
- net_rate?: number | null | undefined;
514
- net_amount?: number | null | undefined;
515
- base_net_rate?: number | null | undefined;
516
- base_net_amount?: number | null | undefined;
517
- weight_per_unit?: number | null | undefined;
518
- total_weight?: number | null | undefined;
519
- weight_uom?: string | null | undefined;
520
- sales_order?: string | null | undefined;
521
- so_detail?: string | null | undefined;
522
- sales_invoice_item?: string | null | undefined;
523
- delivery_note?: string | null | undefined;
524
- dn_detail?: string | null | undefined;
525
- barcode?: string | null | undefined;
526
- customer_item_code?: string | null | undefined;
527
- item_group?: string | null | undefined;
528
- stock_uom?: string | null | undefined;
529
- conversion_factor?: number | null | undefined;
530
- stock_qty?: number | null | undefined;
531
- price_list_rate?: number | null | undefined;
532
- base_price_list_rate?: number | null | undefined;
533
- margin_type?: "" | "Percentage" | "Amount" | null | undefined;
534
- margin_rate_or_amount?: number | null | undefined;
535
- rate_with_margin?: number | null | undefined;
536
- discount_percentage?: number | null | undefined;
537
- discount_amount?: number | null | undefined;
538
- base_rate_with_margin?: number | null | undefined;
539
- pricing_rules?: string | null | undefined;
540
- stock_uom_rate?: number | null | undefined;
541
- incoming_rate?: number | null | undefined;
542
- warehouse?: string | null | undefined;
543
- target_warehouse?: string | null | undefined;
544
- quality_inspection?: string | null | undefined;
545
- batch_no?: string | null | undefined;
546
- serial_no?: string | null | undefined;
547
- actual_batch_qty?: number | null | undefined;
548
- actual_qty?: number | null | undefined;
549
- item_tax_rate?: string | null | undefined;
550
- expense_account?: string | null | undefined;
551
- cost_center?: string | null | undefined;
552
- project?: string | null | undefined;
553
- purchase_order?: string | null | undefined;
554
- purchase_order_item?: string | null | undefined;
555
- delivered_qty?: number | null | undefined;
556
- discount_account?: string | null | undefined;
557
- deferred_revenue_account?: string | null | undefined;
558
- service_start_date?: string | null | undefined;
559
- service_stop_date?: string | null | undefined;
560
- service_end_date?: string | null | undefined;
561
- asset?: string | null | undefined;
562
- finance_book?: string | null | undefined;
563
- serial_and_batch_bundle?: string | null | undefined;
564
- }[];
565
- is_return: 0 | 1;
566
- selling_price_list: string;
567
- plc_conversion_rate: number;
568
- ignore_pricing_rule: 0 | 1;
569
- custom_tax_included_in_shipping_cost: 0 | 1;
570
- apply_discount_on: "" | "Grand Total" | "Net Total";
571
- disable_rounded_total: 0 | 1;
572
- is_internal_customer: 0 | 1;
573
- group_same_items: 0 | 1;
574
- update_stock: 0 | 1;
575
- allocate_advances_automatically: 0 | 1;
576
- ignore_default_payment_terms_template: 0 | 1;
577
- is_opening: "No" | "Yes";
578
- custom_invoice_no: string;
579
- is_pos: 0 | 1;
580
- is_debit_note: 0 | 1;
581
- update_outstanding_for_self: 0 | 1;
582
- update_billed_amount_in_sales_order: 0 | 1;
583
- update_billed_amount_in_delivery_note: 0 | 1;
584
- is_consolidated: 0 | 1;
585
- use_company_roundoff_cost_center: 0 | 1;
586
- is_cash_or_non_trade_discount: 0 | 1;
587
- only_include_allocated_payments: 0 | 1;
588
- write_off_outstanding_amount_automatically: 0 | 1;
589
- redeem_loyalty_points: 0 | 1;
590
- dont_create_loyalty_points: 0 | 1;
591
- debit_to: string;
592
- is_discounted: 0 | 1;
593
- repost_required: 0 | 1;
594
- amended_from?: string | null | undefined;
595
- _user_tags?: string | null | undefined;
596
- tax_category?: string | null | undefined;
597
- language?: string | null | undefined;
598
- posting_time?: string | null | undefined;
599
- company_tax_id?: string | null | undefined;
600
- total_qty?: number | null | undefined;
601
- total_net_weight?: number | null | undefined;
602
- base_total?: number | null | undefined;
603
- base_net_total?: number | null | undefined;
604
- total?: number | null | undefined;
605
- net_total?: number | null | undefined;
606
- dispatch_address_name?: string | null | undefined;
607
- dispatch_address?: string | null | undefined;
608
- tax_id?: string | null | undefined;
609
- discount_amount?: number | null | undefined;
610
- pricing_rules?: any[] | null | undefined;
611
- cost_center?: string | null | undefined;
612
- project?: string | null | undefined;
613
- title?: string | null | undefined;
614
- customer_name?: string | null | undefined;
615
- return_against?: string | null | undefined;
616
- po_no?: string | null | undefined;
617
- po_date?: string | null | undefined;
618
- shipping_address_name?: string | null | undefined;
619
- shipping_address?: string | null | undefined;
620
- contact_person?: string | null | undefined;
621
- contact_display?: string | null | undefined;
622
- contact_mobile?: string | null | undefined;
623
- contact_email?: string | null | undefined;
624
- customer_address?: string | null | undefined;
625
- address_display?: string | null | undefined;
626
- company_address?: string | null | undefined;
627
- company_address_display?: string | null | undefined;
628
- price_list_currency?: string | null | undefined;
629
- set_warehouse?: string | null | undefined;
630
- set_target_warehouse?: string | null | undefined;
631
- scan_barcode?: string | null | undefined;
632
- shipping_rule?: string | null | undefined;
633
- incoterm?: string | null | undefined;
634
- custom_shipping_cost?: number | null | undefined;
635
- taxes_and_charges?: string | null | undefined;
636
- other_charges_calculation?: string | null | undefined;
637
- base_total_taxes_and_charges?: number | null | undefined;
638
- total_taxes_and_charges?: number | null | undefined;
639
- base_discount_amount?: number | null | undefined;
640
- additional_discount_percentage?: number | null | undefined;
641
- base_grand_total?: number | null | undefined;
642
- base_rounding_adjustment?: number | null | undefined;
643
- base_rounded_total?: number | null | undefined;
644
- base_in_words?: string | null | undefined;
645
- grand_total?: number | null | undefined;
646
- rounding_adjustment?: number | null | undefined;
647
- rounded_total?: number | null | undefined;
648
- in_words?: string | null | undefined;
649
- tc_name?: string | null | undefined;
650
- terms?: string | null | undefined;
651
- campaign?: string | null | undefined;
652
- source?: string | null | undefined;
653
- represents_company?: string | null | undefined;
654
- customer_group?: string | null | undefined;
655
- territory?: string | null | undefined;
656
- letter_head?: string | null | undefined;
657
- select_print_heading?: string | null | undefined;
658
- auto_repeat?: string | null | undefined;
659
- sales_partner?: string | null | undefined;
660
- amount_eligible_for_commission?: number | null | undefined;
661
- commission_rate?: number | null | undefined;
662
- total_commission?: number | null | undefined;
663
- packed_items?: any[] | null | undefined;
664
- taxes?: {
665
- docstatus: number;
666
- name: string;
667
- owner: string;
668
- creation: string;
669
- modified: string;
670
- modified_by: string;
671
- idx: number;
672
- doctype: string;
673
- parent: string;
674
- parenttype: string;
675
- parentfield: string;
676
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
677
- included_in_print_rate: 0 | 1;
678
- account_head: string;
679
- description?: string | undefined;
680
- _user_tags?: string | null | undefined;
681
- account_currency?: string | undefined;
682
- rate?: number | undefined;
683
- base_total?: number | undefined;
684
- total?: number | undefined;
685
- cost_center?: string | undefined;
686
- project?: string | undefined;
687
- tax_amount?: number | undefined;
688
- tax_amount_after_discount_amount?: number | undefined;
689
- base_tax_amount?: number | undefined;
690
- }[] | null | undefined;
691
- sales_team?: any[] | null | undefined;
692
- outstanding_amount?: number | null | undefined;
693
- paid_amount?: number | null | undefined;
694
- base_paid_amount?: number | null | undefined;
695
- remarks?: string | null | undefined;
696
- due_date?: string | null | undefined;
697
- total_advance?: number | null | undefined;
698
- write_off_amount?: number | null | undefined;
699
- base_write_off_amount?: number | null | undefined;
700
- payment_terms_template?: string | null | undefined;
701
- party_account_currency?: string | null | undefined;
702
- advances?: {
703
- docstatus: number;
704
- name: string;
705
- owner: string;
706
- creation: string;
707
- modified: string;
708
- modified_by: string;
709
- idx: number;
710
- doctype: "Sales Invoice Advance";
711
- parent: string;
712
- parenttype: string;
713
- parentfield: string;
714
- reference_name: string;
715
- reference_type: string;
716
- advance_amount: number;
717
- _user_tags?: string | null | undefined;
718
- allocated_amount?: number | null | undefined;
719
- remarks?: string | null | undefined;
720
- reference_row?: string | null | undefined;
721
- }[] | null | undefined;
722
- payment_schedule?: any[] | null | undefined;
723
- pos_profile?: string | null | undefined;
724
- named_place?: string | null | undefined;
725
- coupon_code?: string | null | undefined;
726
- additional_discount_account?: string | null | undefined;
727
- timesheets?: any[] | null | undefined;
728
- total_billing_hours?: number | null | undefined;
729
- total_billing_amount?: number | null | undefined;
730
- cash_bank_account?: string | null | undefined;
731
- payments?: {
732
- docstatus: number;
733
- name: string;
734
- owner: string;
735
- creation: string;
736
- modified: string;
737
- modified_by: string;
738
- idx: number;
739
- doctype: string;
740
- parent: string;
741
- parenttype: string;
742
- parentfield: string;
743
- amount: number;
744
- mode_of_payment: string;
745
- _user_tags?: string | null | undefined;
746
- base_amount?: number | null | undefined;
747
- account?: string | null | undefined;
748
- reference_no?: string | null | undefined;
749
- clearance_date?: string | null | undefined;
750
- }[] | null | undefined;
751
- base_change_amount?: number | null | undefined;
752
- change_amount?: number | null | undefined;
753
- account_for_change_amount?: string | null | undefined;
754
- write_off_account?: string | null | undefined;
755
- write_off_cost_center?: string | null | undefined;
756
- loyalty_points?: number | null | undefined;
757
- loyalty_amount?: number | null | undefined;
758
- loyalty_program?: string | null | undefined;
759
- loyalty_redemption_account?: string | null | undefined;
760
- loyalty_redemption_cost_center?: string | null | undefined;
761
- unrealized_profit_loss_account?: string | null | undefined;
762
- against_income_account?: string | null | undefined;
763
- subscription?: string | null | undefined;
764
- from_date?: string | null | undefined;
765
- to_date?: string | null | undefined;
766
- update_auto_repeat_reference?: string | null | undefined;
767
- inter_company_invoice_reference?: string | null | undefined;
768
- } | undefined>;
769
- create: <TInput extends TInputModel extends undefined ? {
770
- company: string;
771
- customer: string;
772
- posting_date: string;
773
- currency: string;
774
- items: {
775
- item_code: string;
776
- qty: number;
777
- rate: number;
778
- uom: string;
779
- description?: string | null | undefined;
780
- brand?: string | null | undefined;
781
- image?: string | null | undefined;
782
- item_tax_template?: string | null | undefined;
783
- amount?: number | null | undefined;
784
- base_rate?: number | null | undefined;
785
- base_amount?: number | null | undefined;
786
- net_rate?: number | null | undefined;
787
- net_amount?: number | null | undefined;
788
- base_net_rate?: number | null | undefined;
789
- base_net_amount?: number | null | undefined;
790
- delivered_by_supplier?: 0 | 1 | undefined;
791
- weight_per_unit?: number | null | undefined;
792
- total_weight?: number | null | undefined;
793
- weight_uom?: string | null | undefined;
794
- sales_order?: string | null | undefined;
795
- so_detail?: string | null | undefined;
796
- sales_invoice_item?: string | null | undefined;
797
- delivery_note?: string | null | undefined;
798
- dn_detail?: string | null | undefined;
799
- barcode?: string | null | undefined;
800
- item_name?: string | undefined;
801
- customer_item_code?: string | null | undefined;
802
- item_group?: string | null | undefined;
803
- stock_uom?: string | null | undefined;
804
- conversion_factor?: number | null | undefined;
805
- stock_qty?: number | null | undefined;
806
- price_list_rate?: number | null | undefined;
807
- base_price_list_rate?: number | null | undefined;
808
- margin_type?: "" | "Percentage" | "Amount" | null | undefined;
809
- margin_rate_or_amount?: number | null | undefined;
810
- rate_with_margin?: number | null | undefined;
811
- discount_percentage?: number | null | undefined;
812
- discount_amount?: number | null | undefined;
813
- base_rate_with_margin?: number | null | undefined;
814
- pricing_rules?: string | null | undefined;
815
- stock_uom_rate?: number | null | undefined;
816
- is_free_item?: 0 | 1 | undefined;
817
- grant_commission?: 0 | 1 | undefined;
818
- incoming_rate?: number | null | undefined;
819
- warehouse?: string | null | undefined;
820
- target_warehouse?: string | null | undefined;
821
- quality_inspection?: string | null | undefined;
822
- batch_no?: string | null | undefined;
823
- serial_no?: string | null | undefined;
824
- actual_batch_qty?: number | null | undefined;
825
- actual_qty?: number | null | undefined;
826
- item_tax_rate?: string | null | undefined;
827
- expense_account?: string | null | undefined;
828
- allow_zero_valuation_rate?: 0 | 1 | undefined;
829
- cost_center?: string | null | undefined;
830
- project?: string | null | undefined;
831
- page_break?: 0 | 1 | undefined;
832
- is_fixed_asset?: 0 | 1 | undefined;
833
- enable_deferred_revenue?: 0 | 1 | undefined;
834
- purchase_order?: string | null | undefined;
835
- purchase_order_item?: string | null | undefined;
836
- has_item_scanned?: 0 | 1 | undefined;
837
- delivered_qty?: number | null | undefined;
838
- income_account?: string | undefined;
839
- discount_account?: string | null | undefined;
840
- deferred_revenue_account?: string | null | undefined;
841
- service_start_date?: string | null | undefined;
842
- service_stop_date?: string | null | undefined;
843
- service_end_date?: string | null | undefined;
844
- asset?: string | null | undefined;
845
- finance_book?: string | null | undefined;
846
- use_serial_batch_fields?: 0 | 1 | undefined;
847
- serial_and_batch_bundle?: string | null | undefined;
848
- }[];
849
- selling_price_list: string;
850
- custom_invoice_no: string;
851
- debit_to: string;
852
- 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;
853
- docstatus?: number | undefined;
854
- amended_from?: string | null | undefined;
855
- tax_category?: string | null | undefined;
856
- naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
857
- language?: string | null | undefined;
858
- posting_time?: string | null | undefined;
859
- set_posting_time?: 0 | 1 | undefined;
860
- company_tax_id?: string | null | undefined;
861
- conversion_rate?: number | undefined;
862
- total_qty?: number | null | undefined;
863
- total_net_weight?: number | null | undefined;
864
- base_total?: number | null | undefined;
865
- base_net_total?: number | null | undefined;
866
- total?: number | null | undefined;
867
- net_total?: number | null | undefined;
868
- dispatch_address_name?: string | null | undefined;
869
- dispatch_address?: string | null | undefined;
870
- tax_id?: string | null | undefined;
871
- discount_amount?: number | null | undefined;
872
- pricing_rules?: any[] | null | undefined;
873
- cost_center?: string | null | undefined;
874
- project?: string | null | undefined;
875
- title?: string | null | undefined;
876
- customer_name?: string | null | undefined;
877
- is_return?: 0 | 1 | undefined;
878
- return_against?: string | null | undefined;
879
- po_no?: string | null | undefined;
880
- po_date?: string | null | undefined;
881
- shipping_address_name?: string | null | undefined;
882
- shipping_address?: string | null | undefined;
883
- contact_person?: string | null | undefined;
884
- contact_display?: string | null | undefined;
885
- contact_mobile?: string | null | undefined;
886
- contact_email?: string | null | undefined;
887
- customer_address?: string | null | undefined;
888
- address_display?: string | null | undefined;
889
- company_address?: string | null | undefined;
890
- company_address_display?: string | null | undefined;
891
- price_list_currency?: string | null | undefined;
892
- plc_conversion_rate?: number | undefined;
893
- ignore_pricing_rule?: 0 | 1 | undefined;
894
- set_warehouse?: string | null | undefined;
895
- set_target_warehouse?: string | null | undefined;
896
- scan_barcode?: string | null | undefined;
897
- shipping_rule?: string | null | undefined;
898
- incoterm?: string | null | undefined;
899
- custom_shipping_cost?: number | null | undefined;
900
- custom_tax_included_in_shipping_cost?: 0 | 1 | undefined;
901
- taxes_and_charges?: string | null | undefined;
902
- other_charges_calculation?: string | null | undefined;
903
- base_total_taxes_and_charges?: number | null | undefined;
904
- total_taxes_and_charges?: number | null | undefined;
905
- apply_discount_on?: "" | "Grand Total" | "Net Total" | undefined;
906
- base_discount_amount?: number | null | undefined;
907
- additional_discount_percentage?: number | null | undefined;
908
- base_grand_total?: number | null | undefined;
909
- base_rounding_adjustment?: number | null | undefined;
910
- base_rounded_total?: number | null | undefined;
911
- base_in_words?: string | null | undefined;
912
- grand_total?: number | null | undefined;
913
- rounding_adjustment?: number | null | undefined;
914
- rounded_total?: number | null | undefined;
915
- in_words?: string | null | undefined;
916
- disable_rounded_total?: 0 | 1 | undefined;
917
- tc_name?: string | null | undefined;
918
- terms?: string | null | undefined;
919
- campaign?: string | null | undefined;
920
- source?: string | null | undefined;
921
- is_internal_customer?: 0 | 1 | undefined;
922
- represents_company?: string | null | undefined;
923
- customer_group?: string | null | undefined;
924
- territory?: string | null | undefined;
925
- letter_head?: string | null | undefined;
926
- select_print_heading?: string | null | undefined;
927
- group_same_items?: 0 | 1 | undefined;
928
- auto_repeat?: string | null | undefined;
929
- sales_partner?: string | null | undefined;
930
- amount_eligible_for_commission?: number | null | undefined;
931
- commission_rate?: number | null | undefined;
932
- total_commission?: number | null | undefined;
933
- packed_items?: any[] | null | undefined;
934
- taxes?: {
935
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
936
- included_in_print_rate: 0 | 1;
937
- account_head: string;
938
- description?: string | undefined;
939
- account_currency?: string | undefined;
940
- rate?: number | undefined;
941
- base_total?: number | undefined;
942
- total?: number | undefined;
943
- cost_center?: string | undefined;
944
- project?: string | undefined;
945
- tax_amount?: number | undefined;
946
- tax_amount_after_discount_amount?: number | undefined;
947
- base_tax_amount?: number | undefined;
948
- }[] | null | undefined;
949
- sales_team?: any[] | null | undefined;
950
- outstanding_amount?: number | null | undefined;
951
- paid_amount?: number | null | undefined;
952
- base_paid_amount?: number | null | undefined;
953
- remarks?: string | null | undefined;
954
- due_date?: string | null | undefined;
955
- update_stock?: 0 | 1 | undefined;
956
- total_advance?: number | null | undefined;
957
- write_off_amount?: number | null | undefined;
958
- base_write_off_amount?: number | null | undefined;
959
- allocate_advances_automatically?: 0 | 1 | undefined;
960
- payment_terms_template?: string | null | undefined;
961
- ignore_default_payment_terms_template?: 0 | 1 | undefined;
962
- party_account_currency?: string | null | undefined;
963
- is_opening?: "No" | "Yes" | undefined;
964
- advances?: {
965
- doctype: "Sales Invoice Advance";
966
- reference_name: string;
967
- reference_type: string;
968
- advance_amount: number;
969
- allocated_amount?: number | null | undefined;
970
- remarks?: string | null | undefined;
971
- reference_row?: string | null | undefined;
972
- }[] | null | undefined;
973
- payment_schedule?: any[] | null | undefined;
974
- is_pos?: 0 | 1 | undefined;
975
- pos_profile?: string | null | undefined;
976
- is_debit_note?: 0 | 1 | undefined;
977
- update_outstanding_for_self?: 0 | 1 | undefined;
978
- update_billed_amount_in_sales_order?: 0 | 1 | undefined;
979
- update_billed_amount_in_delivery_note?: 0 | 1 | undefined;
980
- is_consolidated?: 0 | 1 | undefined;
981
- named_place?: string | null | undefined;
982
- use_company_roundoff_cost_center?: 0 | 1 | undefined;
983
- coupon_code?: string | null | undefined;
984
- is_cash_or_non_trade_discount?: 0 | 1 | undefined;
985
- additional_discount_account?: string | null | undefined;
986
- timesheets?: any[] | null | undefined;
987
- total_billing_hours?: number | null | undefined;
988
- total_billing_amount?: number | null | undefined;
989
- cash_bank_account?: string | null | undefined;
990
- payments?: {
991
- amount: number;
992
- mode_of_payment: string;
993
- base_amount?: number | null | undefined;
994
- account?: string | null | undefined;
995
- reference_no?: string | null | undefined;
996
- clearance_date?: string | null | undefined;
997
- }[] | null | undefined;
998
- base_change_amount?: number | null | undefined;
999
- change_amount?: number | null | undefined;
1000
- account_for_change_amount?: string | null | undefined;
1001
- only_include_allocated_payments?: 0 | 1 | undefined;
1002
- write_off_outstanding_amount_automatically?: 0 | 1 | undefined;
1003
- write_off_account?: string | null | undefined;
1004
- write_off_cost_center?: string | null | undefined;
1005
- redeem_loyalty_points?: 0 | 1 | undefined;
1006
- loyalty_points?: number | null | undefined;
1007
- loyalty_amount?: number | null | undefined;
1008
- loyalty_program?: string | null | undefined;
1009
- dont_create_loyalty_points?: 0 | 1 | undefined;
1010
- loyalty_redemption_account?: string | null | undefined;
1011
- loyalty_redemption_cost_center?: string | null | undefined;
1012
- unrealized_profit_loss_account?: string | null | undefined;
1013
- against_income_account?: string | null | undefined;
1014
- subscription?: string | null | undefined;
1015
- from_date?: string | null | undefined;
1016
- to_date?: string | null | undefined;
1017
- update_auto_repeat_reference?: string | null | undefined;
1018
- is_discounted?: 0 | 1 | undefined;
1019
- inter_company_invoice_reference?: string | null | undefined;
1020
- repost_required?: 0 | 1 | undefined;
1021
- } : TInputModel extends import("zod").ZodTypeAny ? import("zod").TypeOf<TInputModel> : any, TInputModel extends import("zod").ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
1022
- inputValidationModel?: TInputModel;
1023
- body: TInput;
1024
- params?: Record<string, string>;
1025
- priority?: number;
1026
- }) => Promise<{
1027
- 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";
1028
- docstatus: number;
1029
- name: string;
1030
- owner: string;
1031
- creation: string;
1032
- modified: string;
1033
- modified_by: string;
1034
- idx: number;
1035
- doctype: string;
1036
- company: string;
1037
- naming_series: "INV-.#" | "INV-.#-GS";
1038
- customer: string;
1039
- posting_date: string;
1040
- set_posting_time: 0 | 1;
1041
- currency: string;
1042
- conversion_rate: number;
1043
- items: {
1044
- docstatus: number;
1045
- name: string;
1046
- owner: string;
1047
- creation: string;
1048
- modified: string;
1049
- modified_by: string;
1050
- idx: number;
1051
- doctype: string;
1052
- parent: string;
1053
- parenttype: string;
1054
- parentfield: string;
1055
- item_code: string;
1056
- qty: number;
1057
- rate: number;
1058
- delivered_by_supplier: 0 | 1;
1059
- item_name: string;
1060
- uom: string;
1061
- is_free_item: 0 | 1;
1062
- grant_commission: 0 | 1;
1063
- allow_zero_valuation_rate: 0 | 1;
1064
- page_break: 0 | 1;
1065
- is_fixed_asset: 0 | 1;
1066
- enable_deferred_revenue: 0 | 1;
1067
- has_item_scanned: 0 | 1;
1068
- income_account: string;
1069
- use_serial_batch_fields: 0 | 1;
1070
- description?: string | null | undefined;
1071
- brand?: string | null | undefined;
1072
- _user_tags?: string | null | undefined;
1073
- image?: string | null | undefined;
1074
- item_tax_template?: string | null | undefined;
1075
- amount?: number | null | undefined;
1076
- base_rate?: number | null | undefined;
1077
- base_amount?: number | null | undefined;
1078
- net_rate?: number | null | undefined;
1079
- net_amount?: number | null | undefined;
1080
- base_net_rate?: number | null | undefined;
1081
- base_net_amount?: number | null | undefined;
1082
- weight_per_unit?: number | null | undefined;
1083
- total_weight?: number | null | undefined;
1084
- weight_uom?: string | null | undefined;
1085
- sales_order?: string | null | undefined;
1086
- so_detail?: string | null | undefined;
1087
- sales_invoice_item?: string | null | undefined;
1088
- delivery_note?: string | null | undefined;
1089
- dn_detail?: string | null | undefined;
1090
- barcode?: string | null | undefined;
1091
- customer_item_code?: string | null | undefined;
1092
- item_group?: string | null | undefined;
1093
- stock_uom?: string | null | undefined;
1094
- conversion_factor?: number | null | undefined;
1095
- stock_qty?: number | null | undefined;
1096
- price_list_rate?: number | null | undefined;
1097
- base_price_list_rate?: number | null | undefined;
1098
- margin_type?: "" | "Percentage" | "Amount" | null | undefined;
1099
- margin_rate_or_amount?: number | null | undefined;
1100
- rate_with_margin?: number | null | undefined;
1101
- discount_percentage?: number | null | undefined;
1102
- discount_amount?: number | null | undefined;
1103
- base_rate_with_margin?: number | null | undefined;
1104
- pricing_rules?: string | null | undefined;
1105
- stock_uom_rate?: number | null | undefined;
1106
- incoming_rate?: number | null | undefined;
1107
- warehouse?: string | null | undefined;
1108
- target_warehouse?: string | null | undefined;
1109
- quality_inspection?: string | null | undefined;
1110
- batch_no?: string | null | undefined;
1111
- serial_no?: string | null | undefined;
1112
- actual_batch_qty?: number | null | undefined;
1113
- actual_qty?: number | null | undefined;
1114
- item_tax_rate?: string | null | undefined;
1115
- expense_account?: string | null | undefined;
1116
- cost_center?: string | null | undefined;
1117
- project?: string | null | undefined;
1118
- purchase_order?: string | null | undefined;
1119
- purchase_order_item?: string | null | undefined;
1120
- delivered_qty?: number | null | undefined;
1121
- discount_account?: string | null | undefined;
1122
- deferred_revenue_account?: string | null | undefined;
1123
- service_start_date?: string | null | undefined;
1124
- service_stop_date?: string | null | undefined;
1125
- service_end_date?: string | null | undefined;
1126
- asset?: string | null | undefined;
1127
- finance_book?: string | null | undefined;
1128
- serial_and_batch_bundle?: string | null | undefined;
1129
- }[];
1130
- is_return: 0 | 1;
1131
- selling_price_list: string;
1132
- plc_conversion_rate: number;
1133
- ignore_pricing_rule: 0 | 1;
1134
- custom_tax_included_in_shipping_cost: 0 | 1;
1135
- apply_discount_on: "" | "Grand Total" | "Net Total";
1136
- disable_rounded_total: 0 | 1;
1137
- is_internal_customer: 0 | 1;
1138
- group_same_items: 0 | 1;
1139
- update_stock: 0 | 1;
1140
- allocate_advances_automatically: 0 | 1;
1141
- ignore_default_payment_terms_template: 0 | 1;
1142
- is_opening: "No" | "Yes";
1143
- custom_invoice_no: string;
1144
- is_pos: 0 | 1;
1145
- is_debit_note: 0 | 1;
1146
- update_outstanding_for_self: 0 | 1;
1147
- update_billed_amount_in_sales_order: 0 | 1;
1148
- update_billed_amount_in_delivery_note: 0 | 1;
1149
- is_consolidated: 0 | 1;
1150
- use_company_roundoff_cost_center: 0 | 1;
1151
- is_cash_or_non_trade_discount: 0 | 1;
1152
- only_include_allocated_payments: 0 | 1;
1153
- write_off_outstanding_amount_automatically: 0 | 1;
1154
- redeem_loyalty_points: 0 | 1;
1155
- dont_create_loyalty_points: 0 | 1;
1156
- debit_to: string;
1157
- is_discounted: 0 | 1;
1158
- repost_required: 0 | 1;
1159
- amended_from?: string | null | undefined;
1160
- _user_tags?: string | null | undefined;
1161
- tax_category?: string | null | undefined;
1162
- language?: string | null | undefined;
1163
- posting_time?: string | null | undefined;
1164
- company_tax_id?: string | null | undefined;
1165
- total_qty?: number | null | undefined;
1166
- total_net_weight?: number | null | undefined;
1167
- base_total?: number | null | undefined;
1168
- base_net_total?: number | null | undefined;
1169
- total?: number | null | undefined;
1170
- net_total?: number | null | undefined;
1171
- dispatch_address_name?: string | null | undefined;
1172
- dispatch_address?: string | null | undefined;
1173
- tax_id?: string | null | undefined;
1174
- discount_amount?: number | null | undefined;
1175
- pricing_rules?: any[] | null | undefined;
1176
- cost_center?: string | null | undefined;
1177
- project?: string | null | undefined;
1178
- title?: string | null | undefined;
1179
- customer_name?: string | null | undefined;
1180
- return_against?: string | null | undefined;
1181
- po_no?: string | null | undefined;
1182
- po_date?: string | null | undefined;
1183
- shipping_address_name?: string | null | undefined;
1184
- shipping_address?: string | null | undefined;
1185
- contact_person?: string | null | undefined;
1186
- contact_display?: string | null | undefined;
1187
- contact_mobile?: string | null | undefined;
1188
- contact_email?: string | null | undefined;
1189
- customer_address?: string | null | undefined;
1190
- address_display?: string | null | undefined;
1191
- company_address?: string | null | undefined;
1192
- company_address_display?: string | null | undefined;
1193
- price_list_currency?: string | null | undefined;
1194
- set_warehouse?: string | null | undefined;
1195
- set_target_warehouse?: string | null | undefined;
1196
- scan_barcode?: string | null | undefined;
1197
- shipping_rule?: string | null | undefined;
1198
- incoterm?: string | null | undefined;
1199
- custom_shipping_cost?: number | null | undefined;
1200
- taxes_and_charges?: string | null | undefined;
1201
- other_charges_calculation?: string | null | undefined;
1202
- base_total_taxes_and_charges?: number | null | undefined;
1203
- total_taxes_and_charges?: number | null | undefined;
1204
- base_discount_amount?: number | null | undefined;
1205
- additional_discount_percentage?: number | null | undefined;
1206
- base_grand_total?: number | null | undefined;
1207
- base_rounding_adjustment?: number | null | undefined;
1208
- base_rounded_total?: number | null | undefined;
1209
- base_in_words?: string | null | undefined;
1210
- grand_total?: number | null | undefined;
1211
- rounding_adjustment?: number | null | undefined;
1212
- rounded_total?: number | null | undefined;
1213
- in_words?: string | null | undefined;
1214
- tc_name?: string | null | undefined;
1215
- terms?: string | null | undefined;
1216
- campaign?: string | null | undefined;
1217
- source?: string | null | undefined;
1218
- represents_company?: string | null | undefined;
1219
- customer_group?: string | null | undefined;
1220
- territory?: string | null | undefined;
1221
- letter_head?: string | null | undefined;
1222
- select_print_heading?: string | null | undefined;
1223
- auto_repeat?: string | null | undefined;
1224
- sales_partner?: string | null | undefined;
1225
- amount_eligible_for_commission?: number | null | undefined;
1226
- commission_rate?: number | null | undefined;
1227
- total_commission?: number | null | undefined;
1228
- packed_items?: any[] | null | undefined;
1229
- taxes?: {
1230
- docstatus: number;
1231
- name: string;
1232
- owner: string;
1233
- creation: string;
1234
- modified: string;
1235
- modified_by: string;
1236
- idx: number;
1237
- doctype: string;
1238
- parent: string;
1239
- parenttype: string;
1240
- parentfield: string;
1241
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1242
- included_in_print_rate: 0 | 1;
1243
- account_head: string;
1244
- description?: string | undefined;
1245
- _user_tags?: string | null | undefined;
1246
- account_currency?: string | undefined;
1247
- rate?: number | undefined;
1248
- base_total?: number | undefined;
1249
- total?: number | undefined;
1250
- cost_center?: string | undefined;
1251
- project?: string | undefined;
1252
- tax_amount?: number | undefined;
1253
- tax_amount_after_discount_amount?: number | undefined;
1254
- base_tax_amount?: number | undefined;
1255
- }[] | null | undefined;
1256
- sales_team?: any[] | null | undefined;
1257
- outstanding_amount?: number | null | undefined;
1258
- paid_amount?: number | null | undefined;
1259
- base_paid_amount?: number | null | undefined;
1260
- remarks?: string | null | undefined;
1261
- due_date?: string | null | undefined;
1262
- total_advance?: number | null | undefined;
1263
- write_off_amount?: number | null | undefined;
1264
- base_write_off_amount?: number | null | undefined;
1265
- payment_terms_template?: string | null | undefined;
1266
- party_account_currency?: string | null | undefined;
1267
- advances?: {
1268
- docstatus: number;
1269
- name: string;
1270
- owner: string;
1271
- creation: string;
1272
- modified: string;
1273
- modified_by: string;
1274
- idx: number;
1275
- doctype: "Sales Invoice Advance";
1276
- parent: string;
1277
- parenttype: string;
1278
- parentfield: string;
1279
- reference_name: string;
1280
- reference_type: string;
1281
- advance_amount: number;
1282
- _user_tags?: string | null | undefined;
1283
- allocated_amount?: number | null | undefined;
1284
- remarks?: string | null | undefined;
1285
- reference_row?: string | null | undefined;
1286
- }[] | null | undefined;
1287
- payment_schedule?: any[] | null | undefined;
1288
- pos_profile?: string | null | undefined;
1289
- named_place?: string | null | undefined;
1290
- coupon_code?: string | null | undefined;
1291
- additional_discount_account?: string | null | undefined;
1292
- timesheets?: any[] | null | undefined;
1293
- total_billing_hours?: number | null | undefined;
1294
- total_billing_amount?: number | null | undefined;
1295
- cash_bank_account?: string | null | undefined;
1296
- payments?: {
1297
- docstatus: number;
1298
- name: string;
1299
- owner: string;
1300
- creation: string;
1301
- modified: string;
1302
- modified_by: string;
1303
- idx: number;
1304
- doctype: string;
1305
- parent: string;
1306
- parenttype: string;
1307
- parentfield: string;
1308
- amount: number;
1309
- mode_of_payment: string;
1310
- _user_tags?: string | null | undefined;
1311
- base_amount?: number | null | undefined;
1312
- account?: string | null | undefined;
1313
- reference_no?: string | null | undefined;
1314
- clearance_date?: string | null | undefined;
1315
- }[] | null | undefined;
1316
- base_change_amount?: number | null | undefined;
1317
- change_amount?: number | null | undefined;
1318
- account_for_change_amount?: string | null | undefined;
1319
- write_off_account?: string | null | undefined;
1320
- write_off_cost_center?: string | null | undefined;
1321
- loyalty_points?: number | null | undefined;
1322
- loyalty_amount?: number | null | undefined;
1323
- loyalty_program?: string | null | undefined;
1324
- loyalty_redemption_account?: string | null | undefined;
1325
- loyalty_redemption_cost_center?: string | null | undefined;
1326
- unrealized_profit_loss_account?: string | null | undefined;
1327
- against_income_account?: string | null | undefined;
1328
- subscription?: string | null | undefined;
1329
- from_date?: string | null | undefined;
1330
- to_date?: string | null | undefined;
1331
- update_auto_repeat_reference?: string | null | undefined;
1332
- inter_company_invoice_reference?: string | null | undefined;
1333
- }>;
1334
- updateById: <TInput extends TInputModel extends undefined ? Partial<{
1335
- company: string;
1336
- customer: string;
1337
- posting_date: string;
1338
- currency: string;
1339
- items: {
1340
- item_code: string;
1341
- qty: number;
1342
- rate: number;
1343
- uom: string;
1344
- description?: string | null | undefined;
1345
- brand?: string | null | undefined;
1346
- image?: string | null | undefined;
1347
- item_tax_template?: string | null | undefined;
1348
- amount?: number | null | undefined;
1349
- base_rate?: number | null | undefined;
1350
- base_amount?: number | null | undefined;
1351
- net_rate?: number | null | undefined;
1352
- net_amount?: number | null | undefined;
1353
- base_net_rate?: number | null | undefined;
1354
- base_net_amount?: number | null | undefined;
1355
- delivered_by_supplier?: 0 | 1 | undefined;
1356
- weight_per_unit?: number | null | undefined;
1357
- total_weight?: number | null | undefined;
1358
- weight_uom?: string | null | undefined;
1359
- sales_order?: string | null | undefined;
1360
- so_detail?: string | null | undefined;
1361
- sales_invoice_item?: string | null | undefined;
1362
- delivery_note?: string | null | undefined;
1363
- dn_detail?: string | null | undefined;
1364
- barcode?: string | null | undefined;
1365
- item_name?: string | undefined;
1366
- customer_item_code?: string | null | undefined;
1367
- item_group?: string | null | undefined;
1368
- stock_uom?: string | null | undefined;
1369
- conversion_factor?: number | null | undefined;
1370
- stock_qty?: number | null | undefined;
1371
- price_list_rate?: number | null | undefined;
1372
- base_price_list_rate?: number | null | undefined;
1373
- margin_type?: "" | "Percentage" | "Amount" | null | undefined;
1374
- margin_rate_or_amount?: number | null | undefined;
1375
- rate_with_margin?: number | null | undefined;
1376
- discount_percentage?: number | null | undefined;
1377
- discount_amount?: number | null | undefined;
1378
- base_rate_with_margin?: number | null | undefined;
1379
- pricing_rules?: string | null | undefined;
1380
- stock_uom_rate?: number | null | undefined;
1381
- is_free_item?: 0 | 1 | undefined;
1382
- grant_commission?: 0 | 1 | undefined;
1383
- incoming_rate?: number | null | undefined;
1384
- warehouse?: string | null | undefined;
1385
- target_warehouse?: string | null | undefined;
1386
- quality_inspection?: string | null | undefined;
1387
- batch_no?: string | null | undefined;
1388
- serial_no?: string | null | undefined;
1389
- actual_batch_qty?: number | null | undefined;
1390
- actual_qty?: number | null | undefined;
1391
- item_tax_rate?: string | null | undefined;
1392
- expense_account?: string | null | undefined;
1393
- allow_zero_valuation_rate?: 0 | 1 | undefined;
1394
- cost_center?: string | null | undefined;
1395
- project?: string | null | undefined;
1396
- page_break?: 0 | 1 | undefined;
1397
- is_fixed_asset?: 0 | 1 | undefined;
1398
- enable_deferred_revenue?: 0 | 1 | undefined;
1399
- purchase_order?: string | null | undefined;
1400
- purchase_order_item?: string | null | undefined;
1401
- has_item_scanned?: 0 | 1 | undefined;
1402
- delivered_qty?: number | null | undefined;
1403
- income_account?: string | undefined;
1404
- discount_account?: string | null | undefined;
1405
- deferred_revenue_account?: string | null | undefined;
1406
- service_start_date?: string | null | undefined;
1407
- service_stop_date?: string | null | undefined;
1408
- service_end_date?: string | null | undefined;
1409
- asset?: string | null | undefined;
1410
- finance_book?: string | null | undefined;
1411
- use_serial_batch_fields?: 0 | 1 | undefined;
1412
- serial_and_batch_bundle?: string | null | undefined;
1413
- }[];
1414
- selling_price_list: string;
1415
- custom_invoice_no: string;
1416
- debit_to: string;
1417
- 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;
1418
- docstatus?: number | undefined;
1419
- amended_from?: string | null | undefined;
1420
- tax_category?: string | null | undefined;
1421
- naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
1422
- language?: string | null | undefined;
1423
- posting_time?: string | null | undefined;
1424
- set_posting_time?: 0 | 1 | undefined;
1425
- company_tax_id?: string | null | undefined;
1426
- conversion_rate?: number | undefined;
1427
- total_qty?: number | null | undefined;
1428
- total_net_weight?: number | null | undefined;
1429
- base_total?: number | null | undefined;
1430
- base_net_total?: number | null | undefined;
1431
- total?: number | null | undefined;
1432
- net_total?: number | null | undefined;
1433
- dispatch_address_name?: string | null | undefined;
1434
- dispatch_address?: string | null | undefined;
1435
- tax_id?: string | null | undefined;
1436
- discount_amount?: number | null | undefined;
1437
- pricing_rules?: any[] | null | undefined;
1438
- cost_center?: string | null | undefined;
1439
- project?: string | null | undefined;
1440
- title?: string | null | undefined;
1441
- customer_name?: string | null | undefined;
1442
- is_return?: 0 | 1 | undefined;
1443
- return_against?: string | null | undefined;
1444
- po_no?: string | null | undefined;
1445
- po_date?: string | null | undefined;
1446
- shipping_address_name?: string | null | undefined;
1447
- shipping_address?: string | null | undefined;
1448
- contact_person?: string | null | undefined;
1449
- contact_display?: string | null | undefined;
1450
- contact_mobile?: string | null | undefined;
1451
- contact_email?: string | null | undefined;
1452
- customer_address?: string | null | undefined;
1453
- address_display?: string | null | undefined;
1454
- company_address?: string | null | undefined;
1455
- company_address_display?: string | null | undefined;
1456
- price_list_currency?: string | null | undefined;
1457
- plc_conversion_rate?: number | undefined;
1458
- ignore_pricing_rule?: 0 | 1 | undefined;
1459
- set_warehouse?: string | null | undefined;
1460
- set_target_warehouse?: string | null | undefined;
1461
- scan_barcode?: string | null | undefined;
1462
- shipping_rule?: string | null | undefined;
1463
- incoterm?: string | null | undefined;
1464
- custom_shipping_cost?: number | null | undefined;
1465
- custom_tax_included_in_shipping_cost?: 0 | 1 | undefined;
1466
- taxes_and_charges?: string | null | undefined;
1467
- other_charges_calculation?: string | null | undefined;
1468
- base_total_taxes_and_charges?: number | null | undefined;
1469
- total_taxes_and_charges?: number | null | undefined;
1470
- apply_discount_on?: "" | "Grand Total" | "Net Total" | undefined;
1471
- base_discount_amount?: number | null | undefined;
1472
- additional_discount_percentage?: number | null | undefined;
1473
- base_grand_total?: number | null | undefined;
1474
- base_rounding_adjustment?: number | null | undefined;
1475
- base_rounded_total?: number | null | undefined;
1476
- base_in_words?: string | null | undefined;
1477
- grand_total?: number | null | undefined;
1478
- rounding_adjustment?: number | null | undefined;
1479
- rounded_total?: number | null | undefined;
1480
- in_words?: string | null | undefined;
1481
- disable_rounded_total?: 0 | 1 | undefined;
1482
- tc_name?: string | null | undefined;
1483
- terms?: string | null | undefined;
1484
- campaign?: string | null | undefined;
1485
- source?: string | null | undefined;
1486
- is_internal_customer?: 0 | 1 | undefined;
1487
- represents_company?: string | null | undefined;
1488
- customer_group?: string | null | undefined;
1489
- territory?: string | null | undefined;
1490
- letter_head?: string | null | undefined;
1491
- select_print_heading?: string | null | undefined;
1492
- group_same_items?: 0 | 1 | undefined;
1493
- auto_repeat?: string | null | undefined;
1494
- sales_partner?: string | null | undefined;
1495
- amount_eligible_for_commission?: number | null | undefined;
1496
- commission_rate?: number | null | undefined;
1497
- total_commission?: number | null | undefined;
1498
- packed_items?: any[] | null | undefined;
1499
- taxes?: {
1500
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1501
- included_in_print_rate: 0 | 1;
1502
- account_head: string;
1503
- description?: string | undefined;
1504
- account_currency?: string | undefined;
1505
- rate?: number | undefined;
1506
- base_total?: number | undefined;
1507
- total?: number | undefined;
1508
- cost_center?: string | undefined;
1509
- project?: string | undefined;
1510
- tax_amount?: number | undefined;
1511
- tax_amount_after_discount_amount?: number | undefined;
1512
- base_tax_amount?: number | undefined;
1513
- }[] | null | undefined;
1514
- sales_team?: any[] | null | undefined;
1515
- outstanding_amount?: number | null | undefined;
1516
- paid_amount?: number | null | undefined;
1517
- base_paid_amount?: number | null | undefined;
1518
- remarks?: string | null | undefined;
1519
- due_date?: string | null | undefined;
1520
- update_stock?: 0 | 1 | undefined;
1521
- total_advance?: number | null | undefined;
1522
- write_off_amount?: number | null | undefined;
1523
- base_write_off_amount?: number | null | undefined;
1524
- allocate_advances_automatically?: 0 | 1 | undefined;
1525
- payment_terms_template?: string | null | undefined;
1526
- ignore_default_payment_terms_template?: 0 | 1 | undefined;
1527
- party_account_currency?: string | null | undefined;
1528
- is_opening?: "No" | "Yes" | undefined;
1529
- advances?: {
1530
- doctype: "Sales Invoice Advance";
1531
- reference_name: string;
1532
- reference_type: string;
1533
- advance_amount: number;
1534
- allocated_amount?: number | null | undefined;
1535
- remarks?: string | null | undefined;
1536
- reference_row?: string | null | undefined;
1537
- }[] | null | undefined;
1538
- payment_schedule?: any[] | null | undefined;
1539
- is_pos?: 0 | 1 | undefined;
1540
- pos_profile?: string | null | undefined;
1541
- is_debit_note?: 0 | 1 | undefined;
1542
- update_outstanding_for_self?: 0 | 1 | undefined;
1543
- update_billed_amount_in_sales_order?: 0 | 1 | undefined;
1544
- update_billed_amount_in_delivery_note?: 0 | 1 | undefined;
1545
- is_consolidated?: 0 | 1 | undefined;
1546
- named_place?: string | null | undefined;
1547
- use_company_roundoff_cost_center?: 0 | 1 | undefined;
1548
- coupon_code?: string | null | undefined;
1549
- is_cash_or_non_trade_discount?: 0 | 1 | undefined;
1550
- additional_discount_account?: string | null | undefined;
1551
- timesheets?: any[] | null | undefined;
1552
- total_billing_hours?: number | null | undefined;
1553
- total_billing_amount?: number | null | undefined;
1554
- cash_bank_account?: string | null | undefined;
1555
- payments?: {
1556
- amount: number;
1557
- mode_of_payment: string;
1558
- base_amount?: number | null | undefined;
1559
- account?: string | null | undefined;
1560
- reference_no?: string | null | undefined;
1561
- clearance_date?: string | null | undefined;
1562
- }[] | null | undefined;
1563
- base_change_amount?: number | null | undefined;
1564
- change_amount?: number | null | undefined;
1565
- account_for_change_amount?: string | null | undefined;
1566
- only_include_allocated_payments?: 0 | 1 | undefined;
1567
- write_off_outstanding_amount_automatically?: 0 | 1 | undefined;
1568
- write_off_account?: string | null | undefined;
1569
- write_off_cost_center?: string | null | undefined;
1570
- redeem_loyalty_points?: 0 | 1 | undefined;
1571
- loyalty_points?: number | null | undefined;
1572
- loyalty_amount?: number | null | undefined;
1573
- loyalty_program?: string | null | undefined;
1574
- dont_create_loyalty_points?: 0 | 1 | undefined;
1575
- loyalty_redemption_account?: string | null | undefined;
1576
- loyalty_redemption_cost_center?: string | null | undefined;
1577
- unrealized_profit_loss_account?: string | null | undefined;
1578
- against_income_account?: string | null | undefined;
1579
- subscription?: string | null | undefined;
1580
- from_date?: string | null | undefined;
1581
- to_date?: string | null | undefined;
1582
- update_auto_repeat_reference?: string | null | undefined;
1583
- is_discounted?: 0 | 1 | undefined;
1584
- inter_company_invoice_reference?: string | null | undefined;
1585
- repost_required?: 0 | 1 | undefined;
1586
- }> : TInputModel extends import("zod").ZodTypeAny ? import("zod").TypeOf<TInputModel> : any, TInputModel extends import("zod").ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
1587
- resourceId: string;
1588
- inputValidationModel?: TInputModel;
1589
- priority?: number;
1590
- body: TInput;
1591
- }) => Promise<{
1592
- 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";
1593
- docstatus: number;
1594
- name: string;
1595
- owner: string;
1596
- creation: string;
1597
- modified: string;
1598
- modified_by: string;
1599
- idx: number;
1600
- doctype: string;
1601
- company: string;
1602
- naming_series: "INV-.#" | "INV-.#-GS";
1603
- customer: string;
1604
- posting_date: string;
1605
- set_posting_time: 0 | 1;
1606
- currency: string;
1607
- conversion_rate: number;
1608
- items: {
1609
- docstatus: number;
1610
- name: string;
1611
- owner: string;
1612
- creation: string;
1613
- modified: string;
1614
- modified_by: string;
1615
- idx: number;
1616
- doctype: string;
1617
- parent: string;
1618
- parenttype: string;
1619
- parentfield: string;
1620
- item_code: string;
1621
- qty: number;
1622
- rate: number;
1623
- delivered_by_supplier: 0 | 1;
1624
- item_name: string;
1625
- uom: string;
1626
- is_free_item: 0 | 1;
1627
- grant_commission: 0 | 1;
1628
- allow_zero_valuation_rate: 0 | 1;
1629
- page_break: 0 | 1;
1630
- is_fixed_asset: 0 | 1;
1631
- enable_deferred_revenue: 0 | 1;
1632
- has_item_scanned: 0 | 1;
1633
- income_account: string;
1634
- use_serial_batch_fields: 0 | 1;
1635
- description?: string | null | undefined;
1636
- brand?: string | null | undefined;
1637
- _user_tags?: string | null | undefined;
1638
- image?: string | null | undefined;
1639
- item_tax_template?: string | null | undefined;
1640
- amount?: number | null | undefined;
1641
- base_rate?: number | null | undefined;
1642
- base_amount?: number | null | undefined;
1643
- net_rate?: number | null | undefined;
1644
- net_amount?: number | null | undefined;
1645
- base_net_rate?: number | null | undefined;
1646
- base_net_amount?: number | null | undefined;
1647
- weight_per_unit?: number | null | undefined;
1648
- total_weight?: number | null | undefined;
1649
- weight_uom?: string | null | undefined;
1650
- sales_order?: string | null | undefined;
1651
- so_detail?: string | null | undefined;
1652
- sales_invoice_item?: string | null | undefined;
1653
- delivery_note?: string | null | undefined;
1654
- dn_detail?: string | null | undefined;
1655
- barcode?: string | null | undefined;
1656
- customer_item_code?: string | null | undefined;
1657
- item_group?: string | null | undefined;
1658
- stock_uom?: string | null | undefined;
1659
- conversion_factor?: number | null | undefined;
1660
- stock_qty?: number | null | undefined;
1661
- price_list_rate?: number | null | undefined;
1662
- base_price_list_rate?: number | null | undefined;
1663
- margin_type?: "" | "Percentage" | "Amount" | null | undefined;
1664
- margin_rate_or_amount?: number | null | undefined;
1665
- rate_with_margin?: number | null | undefined;
1666
- discount_percentage?: number | null | undefined;
1667
- discount_amount?: number | null | undefined;
1668
- base_rate_with_margin?: number | null | undefined;
1669
- pricing_rules?: string | null | undefined;
1670
- stock_uom_rate?: number | null | undefined;
1671
- incoming_rate?: number | null | undefined;
1672
- warehouse?: string | null | undefined;
1673
- target_warehouse?: string | null | undefined;
1674
- quality_inspection?: string | null | undefined;
1675
- batch_no?: string | null | undefined;
1676
- serial_no?: string | null | undefined;
1677
- actual_batch_qty?: number | null | undefined;
1678
- actual_qty?: number | null | undefined;
1679
- item_tax_rate?: string | null | undefined;
1680
- expense_account?: string | null | undefined;
1681
- cost_center?: string | null | undefined;
1682
- project?: string | null | undefined;
1683
- purchase_order?: string | null | undefined;
1684
- purchase_order_item?: string | null | undefined;
1685
- delivered_qty?: number | null | undefined;
1686
- discount_account?: string | null | undefined;
1687
- deferred_revenue_account?: string | null | undefined;
1688
- service_start_date?: string | null | undefined;
1689
- service_stop_date?: string | null | undefined;
1690
- service_end_date?: string | null | undefined;
1691
- asset?: string | null | undefined;
1692
- finance_book?: string | null | undefined;
1693
- serial_and_batch_bundle?: string | null | undefined;
1694
- }[];
1695
- is_return: 0 | 1;
1696
- selling_price_list: string;
1697
- plc_conversion_rate: number;
1698
- ignore_pricing_rule: 0 | 1;
1699
- custom_tax_included_in_shipping_cost: 0 | 1;
1700
- apply_discount_on: "" | "Grand Total" | "Net Total";
1701
- disable_rounded_total: 0 | 1;
1702
- is_internal_customer: 0 | 1;
1703
- group_same_items: 0 | 1;
1704
- update_stock: 0 | 1;
1705
- allocate_advances_automatically: 0 | 1;
1706
- ignore_default_payment_terms_template: 0 | 1;
1707
- is_opening: "No" | "Yes";
1708
- custom_invoice_no: string;
1709
- is_pos: 0 | 1;
1710
- is_debit_note: 0 | 1;
1711
- update_outstanding_for_self: 0 | 1;
1712
- update_billed_amount_in_sales_order: 0 | 1;
1713
- update_billed_amount_in_delivery_note: 0 | 1;
1714
- is_consolidated: 0 | 1;
1715
- use_company_roundoff_cost_center: 0 | 1;
1716
- is_cash_or_non_trade_discount: 0 | 1;
1717
- only_include_allocated_payments: 0 | 1;
1718
- write_off_outstanding_amount_automatically: 0 | 1;
1719
- redeem_loyalty_points: 0 | 1;
1720
- dont_create_loyalty_points: 0 | 1;
1721
- debit_to: string;
1722
- is_discounted: 0 | 1;
1723
- repost_required: 0 | 1;
1724
- amended_from?: string | null | undefined;
1725
- _user_tags?: string | null | undefined;
1726
- tax_category?: string | null | undefined;
1727
- language?: string | null | undefined;
1728
- posting_time?: string | null | undefined;
1729
- company_tax_id?: string | null | undefined;
1730
- total_qty?: number | null | undefined;
1731
- total_net_weight?: number | null | undefined;
1732
- base_total?: number | null | undefined;
1733
- base_net_total?: number | null | undefined;
1734
- total?: number | null | undefined;
1735
- net_total?: number | null | undefined;
1736
- dispatch_address_name?: string | null | undefined;
1737
- dispatch_address?: string | null | undefined;
1738
- tax_id?: string | null | undefined;
1739
- discount_amount?: number | null | undefined;
1740
- pricing_rules?: any[] | null | undefined;
1741
- cost_center?: string | null | undefined;
1742
- project?: string | null | undefined;
1743
- title?: string | null | undefined;
1744
- customer_name?: string | null | undefined;
1745
- return_against?: string | null | undefined;
1746
- po_no?: string | null | undefined;
1747
- po_date?: string | null | undefined;
1748
- shipping_address_name?: string | null | undefined;
1749
- shipping_address?: string | null | undefined;
1750
- contact_person?: string | null | undefined;
1751
- contact_display?: string | null | undefined;
1752
- contact_mobile?: string | null | undefined;
1753
- contact_email?: string | null | undefined;
1754
- customer_address?: string | null | undefined;
1755
- address_display?: string | null | undefined;
1756
- company_address?: string | null | undefined;
1757
- company_address_display?: string | null | undefined;
1758
- price_list_currency?: string | null | undefined;
1759
- set_warehouse?: string | null | undefined;
1760
- set_target_warehouse?: string | null | undefined;
1761
- scan_barcode?: string | null | undefined;
1762
- shipping_rule?: string | null | undefined;
1763
- incoterm?: string | null | undefined;
1764
- custom_shipping_cost?: number | null | undefined;
1765
- taxes_and_charges?: string | null | undefined;
1766
- other_charges_calculation?: string | null | undefined;
1767
- base_total_taxes_and_charges?: number | null | undefined;
1768
- total_taxes_and_charges?: number | null | undefined;
1769
- base_discount_amount?: number | null | undefined;
1770
- additional_discount_percentage?: number | null | undefined;
1771
- base_grand_total?: number | null | undefined;
1772
- base_rounding_adjustment?: number | null | undefined;
1773
- base_rounded_total?: number | null | undefined;
1774
- base_in_words?: string | null | undefined;
1775
- grand_total?: number | null | undefined;
1776
- rounding_adjustment?: number | null | undefined;
1777
- rounded_total?: number | null | undefined;
1778
- in_words?: string | null | undefined;
1779
- tc_name?: string | null | undefined;
1780
- terms?: string | null | undefined;
1781
- campaign?: string | null | undefined;
1782
- source?: string | null | undefined;
1783
- represents_company?: string | null | undefined;
1784
- customer_group?: string | null | undefined;
1785
- territory?: string | null | undefined;
1786
- letter_head?: string | null | undefined;
1787
- select_print_heading?: string | null | undefined;
1788
- auto_repeat?: string | null | undefined;
1789
- sales_partner?: string | null | undefined;
1790
- amount_eligible_for_commission?: number | null | undefined;
1791
- commission_rate?: number | null | undefined;
1792
- total_commission?: number | null | undefined;
1793
- packed_items?: any[] | null | undefined;
1794
- taxes?: {
1795
- docstatus: number;
1796
- name: string;
1797
- owner: string;
1798
- creation: string;
1799
- modified: string;
1800
- modified_by: string;
1801
- idx: number;
1802
- doctype: string;
1803
- parent: string;
1804
- parenttype: string;
1805
- parentfield: string;
1806
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1807
- included_in_print_rate: 0 | 1;
1808
- account_head: string;
1809
- description?: string | undefined;
1810
- _user_tags?: string | null | undefined;
1811
- account_currency?: string | undefined;
1812
- rate?: number | undefined;
1813
- base_total?: number | undefined;
1814
- total?: number | undefined;
1815
- cost_center?: string | undefined;
1816
- project?: string | undefined;
1817
- tax_amount?: number | undefined;
1818
- tax_amount_after_discount_amount?: number | undefined;
1819
- base_tax_amount?: number | undefined;
1820
- }[] | null | undefined;
1821
- sales_team?: any[] | null | undefined;
1822
- outstanding_amount?: number | null | undefined;
1823
- paid_amount?: number | null | undefined;
1824
- base_paid_amount?: number | null | undefined;
1825
- remarks?: string | null | undefined;
1826
- due_date?: string | null | undefined;
1827
- total_advance?: number | null | undefined;
1828
- write_off_amount?: number | null | undefined;
1829
- base_write_off_amount?: number | null | undefined;
1830
- payment_terms_template?: string | null | undefined;
1831
- party_account_currency?: string | null | undefined;
1832
- advances?: {
1833
- docstatus: number;
1834
- name: string;
1835
- owner: string;
1836
- creation: string;
1837
- modified: string;
1838
- modified_by: string;
1839
- idx: number;
1840
- doctype: "Sales Invoice Advance";
1841
- parent: string;
1842
- parenttype: string;
1843
- parentfield: string;
1844
- reference_name: string;
1845
- reference_type: string;
1846
- advance_amount: number;
1847
- _user_tags?: string | null | undefined;
1848
- allocated_amount?: number | null | undefined;
1849
- remarks?: string | null | undefined;
1850
- reference_row?: string | null | undefined;
1851
- }[] | null | undefined;
1852
- payment_schedule?: any[] | null | undefined;
1853
- pos_profile?: string | null | undefined;
1854
- named_place?: string | null | undefined;
1855
- coupon_code?: string | null | undefined;
1856
- additional_discount_account?: string | null | undefined;
1857
- timesheets?: any[] | null | undefined;
1858
- total_billing_hours?: number | null | undefined;
1859
- total_billing_amount?: number | null | undefined;
1860
- cash_bank_account?: string | null | undefined;
1861
- payments?: {
1862
- docstatus: number;
1863
- name: string;
1864
- owner: string;
1865
- creation: string;
1866
- modified: string;
1867
- modified_by: string;
1868
- idx: number;
1869
- doctype: string;
1870
- parent: string;
1871
- parenttype: string;
1872
- parentfield: string;
1873
- amount: number;
1874
- mode_of_payment: string;
1875
- _user_tags?: string | null | undefined;
1876
- base_amount?: number | null | undefined;
1877
- account?: string | null | undefined;
1878
- reference_no?: string | null | undefined;
1879
- clearance_date?: string | null | undefined;
1880
- }[] | null | undefined;
1881
- base_change_amount?: number | null | undefined;
1882
- change_amount?: number | null | undefined;
1883
- account_for_change_amount?: string | null | undefined;
1884
- write_off_account?: string | null | undefined;
1885
- write_off_cost_center?: string | null | undefined;
1886
- loyalty_points?: number | null | undefined;
1887
- loyalty_amount?: number | null | undefined;
1888
- loyalty_program?: string | null | undefined;
1889
- loyalty_redemption_account?: string | null | undefined;
1890
- loyalty_redemption_cost_center?: string | null | undefined;
1891
- unrealized_profit_loss_account?: string | null | undefined;
1892
- against_income_account?: string | null | undefined;
1893
- subscription?: string | null | undefined;
1894
- from_date?: string | null | undefined;
1895
- to_date?: string | null | undefined;
1896
- update_auto_repeat_reference?: string | null | undefined;
1897
- inter_company_invoice_reference?: string | null | undefined;
1898
- }>;
1899
- deleteById: ({ resourceId, priority, }: {
1900
- resourceId: string;
1901
- priority?: number;
1902
- }) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
1903
- cancel: ({ resourceId, }: {
1904
- resourceId: string;
1905
- }) => Promise<{
1906
- 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";
1907
- docstatus: number;
1908
- name: string;
1909
- owner: string;
1910
- creation: string;
1911
- modified: string;
1912
- modified_by: string;
1913
- idx: number;
1914
- doctype: string;
1915
- company: string;
1916
- naming_series: "INV-.#" | "INV-.#-GS";
1917
- customer: string;
1918
- posting_date: string;
1919
- set_posting_time: 0 | 1;
1920
- currency: string;
1921
- conversion_rate: number;
1922
- items: {
1923
- docstatus: number;
1924
- name: string;
1925
- owner: string;
1926
- creation: string;
1927
- modified: string;
1928
- modified_by: string;
1929
- idx: number;
1930
- doctype: string;
1931
- parent: string;
1932
- parenttype: string;
1933
- parentfield: string;
1934
- item_code: string;
1935
- qty: number;
1936
- rate: number;
1937
- delivered_by_supplier: 0 | 1;
1938
- item_name: string;
1939
- uom: string;
1940
- is_free_item: 0 | 1;
1941
- grant_commission: 0 | 1;
1942
- allow_zero_valuation_rate: 0 | 1;
1943
- page_break: 0 | 1;
1944
- is_fixed_asset: 0 | 1;
1945
- enable_deferred_revenue: 0 | 1;
1946
- has_item_scanned: 0 | 1;
1947
- income_account: string;
1948
- use_serial_batch_fields: 0 | 1;
1949
- description?: string | null | undefined;
1950
- brand?: string | null | undefined;
1951
- _user_tags?: string | null | undefined;
1952
- image?: string | null | undefined;
1953
- item_tax_template?: string | null | undefined;
1954
- amount?: number | null | undefined;
1955
- base_rate?: number | null | undefined;
1956
- base_amount?: number | null | undefined;
1957
- net_rate?: number | null | undefined;
1958
- net_amount?: number | null | undefined;
1959
- base_net_rate?: number | null | undefined;
1960
- base_net_amount?: number | null | undefined;
1961
- weight_per_unit?: number | null | undefined;
1962
- total_weight?: number | null | undefined;
1963
- weight_uom?: string | null | undefined;
1964
- sales_order?: string | null | undefined;
1965
- so_detail?: string | null | undefined;
1966
- sales_invoice_item?: string | null | undefined;
1967
- delivery_note?: string | null | undefined;
1968
- dn_detail?: string | null | undefined;
1969
- barcode?: string | null | undefined;
1970
- customer_item_code?: string | null | undefined;
1971
- item_group?: string | null | undefined;
1972
- stock_uom?: string | null | undefined;
1973
- conversion_factor?: number | null | undefined;
1974
- stock_qty?: number | null | undefined;
1975
- price_list_rate?: number | null | undefined;
1976
- base_price_list_rate?: number | null | undefined;
1977
- margin_type?: "" | "Percentage" | "Amount" | null | undefined;
1978
- margin_rate_or_amount?: number | null | undefined;
1979
- rate_with_margin?: number | null | undefined;
1980
- discount_percentage?: number | null | undefined;
1981
- discount_amount?: number | null | undefined;
1982
- base_rate_with_margin?: number | null | undefined;
1983
- pricing_rules?: string | null | undefined;
1984
- stock_uom_rate?: number | null | undefined;
1985
- incoming_rate?: number | null | undefined;
1986
- warehouse?: string | null | undefined;
1987
- target_warehouse?: string | null | undefined;
1988
- quality_inspection?: string | null | undefined;
1989
- batch_no?: string | null | undefined;
1990
- serial_no?: string | null | undefined;
1991
- actual_batch_qty?: number | null | undefined;
1992
- actual_qty?: number | null | undefined;
1993
- item_tax_rate?: string | null | undefined;
1994
- expense_account?: string | null | undefined;
1995
- cost_center?: string | null | undefined;
1996
- project?: string | null | undefined;
1997
- purchase_order?: string | null | undefined;
1998
- purchase_order_item?: string | null | undefined;
1999
- delivered_qty?: number | null | undefined;
2000
- discount_account?: string | null | undefined;
2001
- deferred_revenue_account?: string | null | undefined;
2002
- service_start_date?: string | null | undefined;
2003
- service_stop_date?: string | null | undefined;
2004
- service_end_date?: string | null | undefined;
2005
- asset?: string | null | undefined;
2006
- finance_book?: string | null | undefined;
2007
- serial_and_batch_bundle?: string | null | undefined;
2008
- }[];
2009
- is_return: 0 | 1;
2010
- selling_price_list: string;
2011
- plc_conversion_rate: number;
2012
- ignore_pricing_rule: 0 | 1;
2013
- custom_tax_included_in_shipping_cost: 0 | 1;
2014
- apply_discount_on: "" | "Grand Total" | "Net Total";
2015
- disable_rounded_total: 0 | 1;
2016
- is_internal_customer: 0 | 1;
2017
- group_same_items: 0 | 1;
2018
- update_stock: 0 | 1;
2019
- allocate_advances_automatically: 0 | 1;
2020
- ignore_default_payment_terms_template: 0 | 1;
2021
- is_opening: "No" | "Yes";
2022
- custom_invoice_no: string;
2023
- is_pos: 0 | 1;
2024
- is_debit_note: 0 | 1;
2025
- update_outstanding_for_self: 0 | 1;
2026
- update_billed_amount_in_sales_order: 0 | 1;
2027
- update_billed_amount_in_delivery_note: 0 | 1;
2028
- is_consolidated: 0 | 1;
2029
- use_company_roundoff_cost_center: 0 | 1;
2030
- is_cash_or_non_trade_discount: 0 | 1;
2031
- only_include_allocated_payments: 0 | 1;
2032
- write_off_outstanding_amount_automatically: 0 | 1;
2033
- redeem_loyalty_points: 0 | 1;
2034
- dont_create_loyalty_points: 0 | 1;
2035
- debit_to: string;
2036
- is_discounted: 0 | 1;
2037
- repost_required: 0 | 1;
2038
- amended_from?: string | null | undefined;
2039
- _user_tags?: string | null | undefined;
2040
- tax_category?: string | null | undefined;
2041
- language?: string | null | undefined;
2042
- posting_time?: string | null | undefined;
2043
- company_tax_id?: string | null | undefined;
2044
- total_qty?: number | null | undefined;
2045
- total_net_weight?: number | null | undefined;
2046
- base_total?: number | null | undefined;
2047
- base_net_total?: number | null | undefined;
2048
- total?: number | null | undefined;
2049
- net_total?: number | null | undefined;
2050
- dispatch_address_name?: string | null | undefined;
2051
- dispatch_address?: string | null | undefined;
2052
- tax_id?: string | null | undefined;
2053
- discount_amount?: number | null | undefined;
2054
- pricing_rules?: any[] | null | undefined;
2055
- cost_center?: string | null | undefined;
2056
- project?: string | null | undefined;
2057
- title?: string | null | undefined;
2058
- customer_name?: string | null | undefined;
2059
- return_against?: string | null | undefined;
2060
- po_no?: string | null | undefined;
2061
- po_date?: string | null | undefined;
2062
- shipping_address_name?: string | null | undefined;
2063
- shipping_address?: string | null | undefined;
2064
- contact_person?: string | null | undefined;
2065
- contact_display?: string | null | undefined;
2066
- contact_mobile?: string | null | undefined;
2067
- contact_email?: string | null | undefined;
2068
- customer_address?: string | null | undefined;
2069
- address_display?: string | null | undefined;
2070
- company_address?: string | null | undefined;
2071
- company_address_display?: string | null | undefined;
2072
- price_list_currency?: string | null | undefined;
2073
- set_warehouse?: string | null | undefined;
2074
- set_target_warehouse?: string | null | undefined;
2075
- scan_barcode?: string | null | undefined;
2076
- shipping_rule?: string | null | undefined;
2077
- incoterm?: string | null | undefined;
2078
- custom_shipping_cost?: number | null | undefined;
2079
- taxes_and_charges?: string | null | undefined;
2080
- other_charges_calculation?: string | null | undefined;
2081
- base_total_taxes_and_charges?: number | null | undefined;
2082
- total_taxes_and_charges?: number | null | undefined;
2083
- base_discount_amount?: number | null | undefined;
2084
- additional_discount_percentage?: number | null | undefined;
2085
- base_grand_total?: number | null | undefined;
2086
- base_rounding_adjustment?: number | null | undefined;
2087
- base_rounded_total?: number | null | undefined;
2088
- base_in_words?: string | null | undefined;
2089
- grand_total?: number | null | undefined;
2090
- rounding_adjustment?: number | null | undefined;
2091
- rounded_total?: number | null | undefined;
2092
- in_words?: string | null | undefined;
2093
- tc_name?: string | null | undefined;
2094
- terms?: string | null | undefined;
2095
- campaign?: string | null | undefined;
2096
- source?: string | null | undefined;
2097
- represents_company?: string | null | undefined;
2098
- customer_group?: string | null | undefined;
2099
- territory?: string | null | undefined;
2100
- letter_head?: string | null | undefined;
2101
- select_print_heading?: string | null | undefined;
2102
- auto_repeat?: string | null | undefined;
2103
- sales_partner?: string | null | undefined;
2104
- amount_eligible_for_commission?: number | null | undefined;
2105
- commission_rate?: number | null | undefined;
2106
- total_commission?: number | null | undefined;
2107
- packed_items?: any[] | null | undefined;
2108
- taxes?: {
2109
- docstatus: number;
2110
- name: string;
2111
- owner: string;
2112
- creation: string;
2113
- modified: string;
2114
- modified_by: string;
2115
- idx: number;
2116
- doctype: string;
2117
- parent: string;
2118
- parenttype: string;
2119
- parentfield: string;
2120
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2121
- included_in_print_rate: 0 | 1;
2122
- account_head: string;
2123
- description?: string | undefined;
2124
- _user_tags?: string | null | undefined;
2125
- account_currency?: string | undefined;
2126
- rate?: number | undefined;
2127
- base_total?: number | undefined;
2128
- total?: number | undefined;
2129
- cost_center?: string | undefined;
2130
- project?: string | undefined;
2131
- tax_amount?: number | undefined;
2132
- tax_amount_after_discount_amount?: number | undefined;
2133
- base_tax_amount?: number | undefined;
2134
- }[] | null | undefined;
2135
- sales_team?: any[] | null | undefined;
2136
- outstanding_amount?: number | null | undefined;
2137
- paid_amount?: number | null | undefined;
2138
- base_paid_amount?: number | null | undefined;
2139
- remarks?: string | null | undefined;
2140
- due_date?: string | null | undefined;
2141
- total_advance?: number | null | undefined;
2142
- write_off_amount?: number | null | undefined;
2143
- base_write_off_amount?: number | null | undefined;
2144
- payment_terms_template?: string | null | undefined;
2145
- party_account_currency?: string | null | undefined;
2146
- advances?: {
2147
- docstatus: number;
2148
- name: string;
2149
- owner: string;
2150
- creation: string;
2151
- modified: string;
2152
- modified_by: string;
2153
- idx: number;
2154
- doctype: "Sales Invoice Advance";
2155
- parent: string;
2156
- parenttype: string;
2157
- parentfield: string;
2158
- reference_name: string;
2159
- reference_type: string;
2160
- advance_amount: number;
2161
- _user_tags?: string | null | undefined;
2162
- allocated_amount?: number | null | undefined;
2163
- remarks?: string | null | undefined;
2164
- reference_row?: string | null | undefined;
2165
- }[] | null | undefined;
2166
- payment_schedule?: any[] | null | undefined;
2167
- pos_profile?: string | null | undefined;
2168
- named_place?: string | null | undefined;
2169
- coupon_code?: string | null | undefined;
2170
- additional_discount_account?: string | null | undefined;
2171
- timesheets?: any[] | null | undefined;
2172
- total_billing_hours?: number | null | undefined;
2173
- total_billing_amount?: number | null | undefined;
2174
- cash_bank_account?: string | null | undefined;
2175
- payments?: {
2176
- docstatus: number;
2177
- name: string;
2178
- owner: string;
2179
- creation: string;
2180
- modified: string;
2181
- modified_by: string;
2182
- idx: number;
2183
- doctype: string;
2184
- parent: string;
2185
- parenttype: string;
2186
- parentfield: string;
2187
- amount: number;
2188
- mode_of_payment: string;
2189
- _user_tags?: string | null | undefined;
2190
- base_amount?: number | null | undefined;
2191
- account?: string | null | undefined;
2192
- reference_no?: string | null | undefined;
2193
- clearance_date?: string | null | undefined;
2194
- }[] | null | undefined;
2195
- base_change_amount?: number | null | undefined;
2196
- change_amount?: number | null | undefined;
2197
- account_for_change_amount?: string | null | undefined;
2198
- write_off_account?: string | null | undefined;
2199
- write_off_cost_center?: string | null | undefined;
2200
- loyalty_points?: number | null | undefined;
2201
- loyalty_amount?: number | null | undefined;
2202
- loyalty_program?: string | null | undefined;
2203
- loyalty_redemption_account?: string | null | undefined;
2204
- loyalty_redemption_cost_center?: string | null | undefined;
2205
- unrealized_profit_loss_account?: string | null | undefined;
2206
- against_income_account?: string | null | undefined;
2207
- subscription?: string | null | undefined;
2208
- from_date?: string | null | undefined;
2209
- to_date?: string | null | undefined;
2210
- update_auto_repeat_reference?: string | null | undefined;
2211
- inter_company_invoice_reference?: string | null | undefined;
2212
- }>;
2213
- submit: ({ resourceId, }: {
2214
- resourceId: string;
2215
- }) => Promise<{
2216
- 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";
2217
- docstatus: number;
2218
- name: string;
2219
- owner: string;
2220
- creation: string;
2221
- modified: string;
2222
- modified_by: string;
2223
- idx: number;
2224
- doctype: string;
2225
- company: string;
2226
- naming_series: "INV-.#" | "INV-.#-GS";
2227
- customer: string;
2228
- posting_date: string;
2229
- set_posting_time: 0 | 1;
2230
- currency: string;
2231
- conversion_rate: number;
2232
- items: {
2233
- docstatus: number;
2234
- name: string;
2235
- owner: string;
2236
- creation: string;
2237
- modified: string;
2238
- modified_by: string;
2239
- idx: number;
2240
- doctype: string;
2241
- parent: string;
2242
- parenttype: string;
2243
- parentfield: string;
2244
- item_code: string;
2245
- qty: number;
2246
- rate: number;
2247
- delivered_by_supplier: 0 | 1;
2248
- item_name: string;
2249
- uom: string;
2250
- is_free_item: 0 | 1;
2251
- grant_commission: 0 | 1;
2252
- allow_zero_valuation_rate: 0 | 1;
2253
- page_break: 0 | 1;
2254
- is_fixed_asset: 0 | 1;
2255
- enable_deferred_revenue: 0 | 1;
2256
- has_item_scanned: 0 | 1;
2257
- income_account: string;
2258
- use_serial_batch_fields: 0 | 1;
2259
- description?: string | null | undefined;
2260
- brand?: string | null | undefined;
2261
- _user_tags?: string | null | undefined;
2262
- image?: string | null | undefined;
2263
- item_tax_template?: string | null | undefined;
2264
- amount?: number | null | undefined;
2265
- base_rate?: number | null | undefined;
2266
- base_amount?: number | null | undefined;
2267
- net_rate?: number | null | undefined;
2268
- net_amount?: number | null | undefined;
2269
- base_net_rate?: number | null | undefined;
2270
- base_net_amount?: number | null | undefined;
2271
- weight_per_unit?: number | null | undefined;
2272
- total_weight?: number | null | undefined;
2273
- weight_uom?: string | null | undefined;
2274
- sales_order?: string | null | undefined;
2275
- so_detail?: string | null | undefined;
2276
- sales_invoice_item?: string | null | undefined;
2277
- delivery_note?: string | null | undefined;
2278
- dn_detail?: string | null | undefined;
2279
- barcode?: string | null | undefined;
2280
- customer_item_code?: string | null | undefined;
2281
- item_group?: string | null | undefined;
2282
- stock_uom?: string | null | undefined;
2283
- conversion_factor?: number | null | undefined;
2284
- stock_qty?: number | null | undefined;
2285
- price_list_rate?: number | null | undefined;
2286
- base_price_list_rate?: number | null | undefined;
2287
- margin_type?: "" | "Percentage" | "Amount" | null | undefined;
2288
- margin_rate_or_amount?: number | null | undefined;
2289
- rate_with_margin?: number | null | undefined;
2290
- discount_percentage?: number | null | undefined;
2291
- discount_amount?: number | null | undefined;
2292
- base_rate_with_margin?: number | null | undefined;
2293
- pricing_rules?: string | null | undefined;
2294
- stock_uom_rate?: number | null | undefined;
2295
- incoming_rate?: number | null | undefined;
2296
- warehouse?: string | null | undefined;
2297
- target_warehouse?: string | null | undefined;
2298
- quality_inspection?: string | null | undefined;
2299
- batch_no?: string | null | undefined;
2300
- serial_no?: string | null | undefined;
2301
- actual_batch_qty?: number | null | undefined;
2302
- actual_qty?: number | null | undefined;
2303
- item_tax_rate?: string | null | undefined;
2304
- expense_account?: string | null | undefined;
2305
- cost_center?: string | null | undefined;
2306
- project?: string | null | undefined;
2307
- purchase_order?: string | null | undefined;
2308
- purchase_order_item?: string | null | undefined;
2309
- delivered_qty?: number | null | undefined;
2310
- discount_account?: string | null | undefined;
2311
- deferred_revenue_account?: string | null | undefined;
2312
- service_start_date?: string | null | undefined;
2313
- service_stop_date?: string | null | undefined;
2314
- service_end_date?: string | null | undefined;
2315
- asset?: string | null | undefined;
2316
- finance_book?: string | null | undefined;
2317
- serial_and_batch_bundle?: string | null | undefined;
2318
- }[];
2319
- is_return: 0 | 1;
2320
- selling_price_list: string;
2321
- plc_conversion_rate: number;
2322
- ignore_pricing_rule: 0 | 1;
2323
- custom_tax_included_in_shipping_cost: 0 | 1;
2324
- apply_discount_on: "" | "Grand Total" | "Net Total";
2325
- disable_rounded_total: 0 | 1;
2326
- is_internal_customer: 0 | 1;
2327
- group_same_items: 0 | 1;
2328
- update_stock: 0 | 1;
2329
- allocate_advances_automatically: 0 | 1;
2330
- ignore_default_payment_terms_template: 0 | 1;
2331
- is_opening: "No" | "Yes";
2332
- custom_invoice_no: string;
2333
- is_pos: 0 | 1;
2334
- is_debit_note: 0 | 1;
2335
- update_outstanding_for_self: 0 | 1;
2336
- update_billed_amount_in_sales_order: 0 | 1;
2337
- update_billed_amount_in_delivery_note: 0 | 1;
2338
- is_consolidated: 0 | 1;
2339
- use_company_roundoff_cost_center: 0 | 1;
2340
- is_cash_or_non_trade_discount: 0 | 1;
2341
- only_include_allocated_payments: 0 | 1;
2342
- write_off_outstanding_amount_automatically: 0 | 1;
2343
- redeem_loyalty_points: 0 | 1;
2344
- dont_create_loyalty_points: 0 | 1;
2345
- debit_to: string;
2346
- is_discounted: 0 | 1;
2347
- repost_required: 0 | 1;
2348
- amended_from?: string | null | undefined;
2349
- _user_tags?: string | null | undefined;
2350
- tax_category?: string | null | undefined;
2351
- language?: string | null | undefined;
2352
- posting_time?: string | null | undefined;
2353
- company_tax_id?: string | null | undefined;
2354
- total_qty?: number | null | undefined;
2355
- total_net_weight?: number | null | undefined;
2356
- base_total?: number | null | undefined;
2357
- base_net_total?: number | null | undefined;
2358
- total?: number | null | undefined;
2359
- net_total?: number | null | undefined;
2360
- dispatch_address_name?: string | null | undefined;
2361
- dispatch_address?: string | null | undefined;
2362
- tax_id?: string | null | undefined;
2363
- discount_amount?: number | null | undefined;
2364
- pricing_rules?: any[] | null | undefined;
2365
- cost_center?: string | null | undefined;
2366
- project?: string | null | undefined;
2367
- title?: string | null | undefined;
2368
- customer_name?: string | null | undefined;
2369
- return_against?: string | null | undefined;
2370
- po_no?: string | null | undefined;
2371
- po_date?: string | null | undefined;
2372
- shipping_address_name?: string | null | undefined;
2373
- shipping_address?: string | null | undefined;
2374
- contact_person?: string | null | undefined;
2375
- contact_display?: string | null | undefined;
2376
- contact_mobile?: string | null | undefined;
2377
- contact_email?: string | null | undefined;
2378
- customer_address?: string | null | undefined;
2379
- address_display?: string | null | undefined;
2380
- company_address?: string | null | undefined;
2381
- company_address_display?: string | null | undefined;
2382
- price_list_currency?: string | null | undefined;
2383
- set_warehouse?: string | null | undefined;
2384
- set_target_warehouse?: string | null | undefined;
2385
- scan_barcode?: string | null | undefined;
2386
- shipping_rule?: string | null | undefined;
2387
- incoterm?: string | null | undefined;
2388
- custom_shipping_cost?: number | null | undefined;
2389
- taxes_and_charges?: string | null | undefined;
2390
- other_charges_calculation?: string | null | undefined;
2391
- base_total_taxes_and_charges?: number | null | undefined;
2392
- total_taxes_and_charges?: number | null | undefined;
2393
- base_discount_amount?: number | null | undefined;
2394
- additional_discount_percentage?: number | null | undefined;
2395
- base_grand_total?: number | null | undefined;
2396
- base_rounding_adjustment?: number | null | undefined;
2397
- base_rounded_total?: number | null | undefined;
2398
- base_in_words?: string | null | undefined;
2399
- grand_total?: number | null | undefined;
2400
- rounding_adjustment?: number | null | undefined;
2401
- rounded_total?: number | null | undefined;
2402
- in_words?: string | null | undefined;
2403
- tc_name?: string | null | undefined;
2404
- terms?: string | null | undefined;
2405
- campaign?: string | null | undefined;
2406
- source?: string | null | undefined;
2407
- represents_company?: string | null | undefined;
2408
- customer_group?: string | null | undefined;
2409
- territory?: string | null | undefined;
2410
- letter_head?: string | null | undefined;
2411
- select_print_heading?: string | null | undefined;
2412
- auto_repeat?: string | null | undefined;
2413
- sales_partner?: string | null | undefined;
2414
- amount_eligible_for_commission?: number | null | undefined;
2415
- commission_rate?: number | null | undefined;
2416
- total_commission?: number | null | undefined;
2417
- packed_items?: any[] | null | undefined;
2418
- taxes?: {
2419
- docstatus: number;
2420
- name: string;
2421
- owner: string;
2422
- creation: string;
2423
- modified: string;
2424
- modified_by: string;
2425
- idx: number;
2426
- doctype: string;
2427
- parent: string;
2428
- parenttype: string;
2429
- parentfield: string;
2430
- charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2431
- included_in_print_rate: 0 | 1;
2432
- account_head: string;
2433
- description?: string | undefined;
2434
- _user_tags?: string | null | undefined;
2435
- account_currency?: string | undefined;
2436
- rate?: number | undefined;
2437
- base_total?: number | undefined;
2438
- total?: number | undefined;
2439
- cost_center?: string | undefined;
2440
- project?: string | undefined;
2441
- tax_amount?: number | undefined;
2442
- tax_amount_after_discount_amount?: number | undefined;
2443
- base_tax_amount?: number | undefined;
2444
- }[] | null | undefined;
2445
- sales_team?: any[] | null | undefined;
2446
- outstanding_amount?: number | null | undefined;
2447
- paid_amount?: number | null | undefined;
2448
- base_paid_amount?: number | null | undefined;
2449
- remarks?: string | null | undefined;
2450
- due_date?: string | null | undefined;
2451
- total_advance?: number | null | undefined;
2452
- write_off_amount?: number | null | undefined;
2453
- base_write_off_amount?: number | null | undefined;
2454
- payment_terms_template?: string | null | undefined;
2455
- party_account_currency?: string | null | undefined;
2456
- advances?: {
2457
- docstatus: number;
2458
- name: string;
2459
- owner: string;
2460
- creation: string;
2461
- modified: string;
2462
- modified_by: string;
2463
- idx: number;
2464
- doctype: "Sales Invoice Advance";
2465
- parent: string;
2466
- parenttype: string;
2467
- parentfield: string;
2468
- reference_name: string;
2469
- reference_type: string;
2470
- advance_amount: number;
2471
- _user_tags?: string | null | undefined;
2472
- allocated_amount?: number | null | undefined;
2473
- remarks?: string | null | undefined;
2474
- reference_row?: string | null | undefined;
2475
- }[] | null | undefined;
2476
- payment_schedule?: any[] | null | undefined;
2477
- pos_profile?: string | null | undefined;
2478
- named_place?: string | null | undefined;
2479
- coupon_code?: string | null | undefined;
2480
- additional_discount_account?: string | null | undefined;
2481
- timesheets?: any[] | null | undefined;
2482
- total_billing_hours?: number | null | undefined;
2483
- total_billing_amount?: number | null | undefined;
2484
- cash_bank_account?: string | null | undefined;
2485
- payments?: {
2486
- docstatus: number;
2487
- name: string;
2488
- owner: string;
2489
- creation: string;
2490
- modified: string;
2491
- modified_by: string;
2492
- idx: number;
2493
- doctype: string;
2494
- parent: string;
2495
- parenttype: string;
2496
- parentfield: string;
2497
- amount: number;
2498
- mode_of_payment: string;
2499
- _user_tags?: string | null | undefined;
2500
- base_amount?: number | null | undefined;
2501
- account?: string | null | undefined;
2502
- reference_no?: string | null | undefined;
2503
- clearance_date?: string | null | undefined;
2504
- }[] | null | undefined;
2505
- base_change_amount?: number | null | undefined;
2506
- change_amount?: number | null | undefined;
2507
- account_for_change_amount?: string | null | undefined;
2508
- write_off_account?: string | null | undefined;
2509
- write_off_cost_center?: string | null | undefined;
2510
- loyalty_points?: number | null | undefined;
2511
- loyalty_amount?: number | null | undefined;
2512
- loyalty_program?: string | null | undefined;
2513
- loyalty_redemption_account?: string | null | undefined;
2514
- loyalty_redemption_cost_center?: string | null | undefined;
2515
- unrealized_profit_loss_account?: string | null | undefined;
2516
- against_income_account?: string | null | undefined;
2517
- subscription?: string | null | undefined;
2518
- from_date?: string | null | undefined;
2519
- to_date?: string | null | undefined;
2520
- update_auto_repeat_reference?: string | null | undefined;
2521
- inter_company_invoice_reference?: string | null | undefined;
2522
- }>;
2523
7
  constructor(temporalClient: TemporalClient);
2524
8
  createInvoiceDraftFromSalesOrder(salesOrderName: string): Promise<{
2525
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";