erpnext-queue-client 1.38.0 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/dist/client.js +2 -2
  2. package/dist/constants.d.ts +1 -1
  3. package/dist/constants.js +16 -2
  4. package/dist/erpnext/doctypeResourceRequest.d.ts +12 -11
  5. package/dist/erpnext/doctypeResourceRequest.js +3 -2
  6. package/dist/erpnext/doctypeSubmittableResourceRequest.d.ts +121 -4
  7. package/dist/erpnext/doctypeSubmittableResourceRequest.js +14 -1
  8. package/dist/erpnext/doctypes/address.d.ts +154 -219
  9. package/dist/erpnext/doctypes/address.js +0 -2
  10. package/dist/erpnext/doctypes/contact.d.ts +151 -308
  11. package/dist/erpnext/doctypes/contact.js +1 -1
  12. package/dist/erpnext/doctypes/deliveryNote.d.ts +644 -455
  13. package/dist/erpnext/doctypes/deliveryNote.js +4 -10
  14. package/dist/erpnext/doctypes/item.d.ts +215 -308
  15. package/dist/erpnext/doctypes/productBundle.d.ts +43 -53
  16. package/dist/erpnext/doctypes/purchaseInvoice.d.ts +669 -697
  17. package/dist/erpnext/doctypes/purchaseReceipt.d.ts +265 -314
  18. package/dist/erpnext/doctypes/salesInvoice.d.ts +3332 -0
  19. package/dist/erpnext/doctypes/salesInvoice.js +72 -0
  20. package/dist/erpnext/doctypes/servicecase.d.ts +197 -140
  21. package/dist/erpnext/doctypes/servicecase.js +4 -6
  22. package/dist/erpnext/doctypes/shipment.d.ts +168 -258
  23. package/dist/erpnext/doctypes/tags.d.ts +10 -0
  24. package/dist/erpnext/doctypes/tags.js +102 -0
  25. package/dist/erpnext/model/Account.d.ts +0 -33
  26. package/dist/erpnext/model/Account.js +0 -11
  27. package/dist/erpnext/model/Address.d.ts +112 -233
  28. package/dist/erpnext/model/Address.js +11 -49
  29. package/dist/erpnext/model/Attachment.d.ts +0 -3
  30. package/dist/erpnext/model/Attachment.js +0 -1
  31. package/dist/erpnext/model/Boolean.d.ts +4 -0
  32. package/dist/erpnext/model/Boolean.js +9 -0
  33. package/dist/erpnext/model/Compliance.d.ts +0 -112
  34. package/dist/erpnext/model/Compliance.js +0 -19
  35. package/dist/erpnext/model/Contact.d.ts +166 -416
  36. package/dist/erpnext/model/Contact.js +16 -69
  37. package/dist/erpnext/model/Country.d.ts +0 -64
  38. package/dist/erpnext/model/Country.js +0 -10
  39. package/dist/erpnext/model/Customer.d.ts +39 -64
  40. package/dist/erpnext/model/Customer.js +11 -25
  41. package/dist/erpnext/model/DeliveryNote.d.ts +124 -1170
  42. package/dist/erpnext/model/DeliveryNote.js +5 -52
  43. package/dist/erpnext/model/DispatchRun.d.ts +7 -113
  44. package/dist/erpnext/model/DispatchRun.js +2 -31
  45. package/dist/erpnext/model/DispatcherPreset.d.ts +0 -119
  46. package/dist/erpnext/model/DispatcherPreset.js +1 -27
  47. package/dist/erpnext/model/DocInfo.d.ts +41 -339
  48. package/dist/erpnext/model/DocInfo.js +5 -6
  49. package/dist/erpnext/model/DocTypeHelpers.d.ts +141 -2
  50. package/dist/erpnext/model/DocTypeHelpers.js +132 -1
  51. package/dist/erpnext/model/ERPNextDocTypeMeta.d.ts +124 -0
  52. package/dist/erpnext/model/ERPNextDocTypeMeta.js +37 -0
  53. package/dist/erpnext/model/ERPNextRequest.d.ts +5 -5
  54. package/dist/erpnext/model/File.d.ts +0 -48
  55. package/dist/erpnext/model/File.js +0 -8
  56. package/dist/erpnext/model/Fulfiller.d.ts +0 -121
  57. package/dist/erpnext/model/Fulfiller.js +1 -56
  58. package/dist/erpnext/model/FulfillerSettings.d.ts +0 -39
  59. package/dist/erpnext/model/FulfillerSettings.js +0 -6
  60. package/dist/erpnext/model/InternalReasons.d.ts +0 -3
  61. package/dist/erpnext/model/InternalReasons.js +0 -1
  62. package/dist/erpnext/model/Item.d.ts +478 -1847
  63. package/dist/erpnext/model/Item.js +18 -142
  64. package/dist/erpnext/model/Logs.d.ts +0 -9
  65. package/dist/erpnext/model/Logs.js +0 -3
  66. package/dist/erpnext/model/PartList.d.ts +0 -15
  67. package/dist/erpnext/model/PartList.js +0 -5
  68. package/dist/erpnext/model/PaymentEntry.d.ts +141 -128
  69. package/dist/erpnext/model/PaymentEntry.js +46 -47
  70. package/dist/erpnext/model/Permissions.d.ts +3 -3
  71. package/dist/erpnext/model/Permissions.js +1 -1
  72. package/dist/erpnext/model/ProductBundle.d.ts +6 -107
  73. package/dist/erpnext/model/ProductBundle.js +0 -17
  74. package/dist/erpnext/model/PurchaseInvoice.d.ts +290 -362
  75. package/dist/erpnext/model/PurchaseInvoice.js +5 -23
  76. package/dist/erpnext/model/PurchaseOrder.d.ts +34 -180
  77. package/dist/erpnext/model/PurchaseOrder.js +0 -34
  78. package/dist/erpnext/model/Receipt.d.ts +30 -121
  79. package/dist/erpnext/model/Receipt.js +2 -25
  80. package/dist/erpnext/model/ReceiptDraft.d.ts +28 -67
  81. package/dist/erpnext/model/ReceiptDraft.js +2 -11
  82. package/dist/erpnext/model/Report.d.ts +0 -40
  83. package/dist/erpnext/model/Report.js +0 -8
  84. package/dist/erpnext/model/SalesInvoice.d.ts +2441 -0
  85. package/dist/erpnext/model/SalesInvoice.js +326 -0
  86. package/dist/erpnext/model/SalesOrder.d.ts +1043 -0
  87. package/dist/erpnext/model/SalesOrder.js +271 -0
  88. package/dist/erpnext/model/SalesTaxesAndCharges.d.ts +47 -0
  89. package/dist/erpnext/model/SalesTaxesAndCharges.js +30 -0
  90. package/dist/erpnext/model/Servicecase.d.ts +295 -740
  91. package/dist/erpnext/model/Servicecase.js +31 -116
  92. package/dist/erpnext/model/ServicecaseReason.d.ts +0 -8
  93. package/dist/erpnext/model/ServicecaseReason.js +0 -2
  94. package/dist/erpnext/model/ServicecaseSolution.d.ts +0 -3
  95. package/dist/erpnext/model/ServicecaseSolution.js +0 -1
  96. package/dist/erpnext/model/ServiceportalProductConfiguration.d.ts +0 -575
  97. package/dist/erpnext/model/ServiceportalProductConfiguration.js +5 -50
  98. package/dist/erpnext/model/Shipment.d.ts +18 -729
  99. package/dist/erpnext/model/Shipment.js +1 -82
  100. package/dist/erpnext/model/ShippingLabel.d.ts +0 -32
  101. package/dist/erpnext/model/ShippingLabel.js +0 -8
  102. package/dist/erpnext/model/ShippingProvider.d.ts +6 -87
  103. package/dist/erpnext/model/ShippingProvider.js +3 -6
  104. package/dist/erpnext/model/Stock.d.ts +6 -46
  105. package/dist/erpnext/model/Stock.js +0 -8
  106. package/dist/erpnext/model/StockEntry.d.ts +12 -45
  107. package/dist/erpnext/model/StockEntry.js +0 -11
  108. package/dist/erpnext/model/StockReconciliation.d.ts +5 -32
  109. package/dist/erpnext/model/StockReconciliation.js +0 -10
  110. package/dist/erpnext/model/Supplier.d.ts +0 -79
  111. package/dist/erpnext/model/Supplier.js +0 -8
  112. package/dist/erpnext/model/Version.d.ts +0 -9
  113. package/dist/erpnext/model/Version.js +0 -3
  114. package/dist/erpnext/model/Waitlist.d.ts +0 -3
  115. package/dist/erpnext/model/Waitlist.js +0 -1
  116. package/dist/erpnext/model/WarehouseCategory.d.ts +0 -11
  117. package/dist/erpnext/model/WarehouseCategory.js +1 -7
  118. package/dist/erpnext/reports.js +3 -7
  119. package/dist/erpnext/resourceRequest.d.ts +13 -11
  120. package/dist/erpnext/resourceRequest.js +23 -18
  121. package/dist/index.d.ts +16 -10
  122. package/dist/index.js +24 -12
  123. package/dist/index.test.d.ts +1 -0
  124. package/dist/index.test.js +227 -0
  125. package/dist/utils/utils.d.ts +3 -0
  126. package/dist/utils/zodContextOptionals.d.ts +14 -0
  127. package/dist/utils/zodContextOptionals.js +42 -0
  128. package/dist/utils/zodUtils.js +2 -1
  129. package/package.json +2 -2
  130. package/dist/erpnext/model/ConsolidatedCustomsInvoice.d.ts +0 -433
  131. package/dist/erpnext/model/ConsolidatedCustomsInvoice.js +0 -102
  132. package/dist/erpnext/model/ShippingFees.d.ts +0 -36
  133. package/dist/erpnext/model/ShippingFees.js +0 -18
@@ -0,0 +1,3332 @@
1
+ import { TemporalClient } from "../../client";
2
+ import { ERPNextDoctypeSubmittableResourceRequest } from "../doctypeSubmittableResourceRequest";
3
+ import { ERPNextMethodRequest } from "../methodRequest";
4
+ import { SalesInvoice } from "../model/SalesInvoice";
5
+ export declare class ERPNextSalesInvoice {
6
+ protected temporalClient: TemporalClient;
7
+ protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof SalesInvoice>;
8
+ protected methodRequest: ERPNextMethodRequest;
9
+ getList: <TFieldOptions extends ("status" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "docstatus" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "due_date" | "paid_amount" | "total_advance" | "outstanding_amount" | "base_paid_amount" | "write_off_amount" | "base_write_off_amount" | "payment_terms_template" | "party_account_currency" | "advances" | "payment_schedule" | "remarks" | "company_tax_id" | "pos_profile" | "named_place" | "coupon_code" | "additional_discount_account" | "timesheets" | "total_billing_hours" | "total_billing_amount" | "cash_bank_account" | "payments" | "base_change_amount" | "change_amount" | "account_for_change_amount" | "write_off_account" | "write_off_cost_center" | "loyalty_points" | "loyalty_amount" | "loyalty_program" | "loyalty_redemption_account" | "loyalty_redemption_cost_center" | "unrealized_profit_loss_account" | "against_income_account" | "subscription" | "from_date" | "to_date" | "update_auto_repeat_reference" | "inter_company_invoice_reference"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
10
+ 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: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
21
+ name: string;
22
+ owner: string;
23
+ creation: string;
24
+ modified: string;
25
+ modified_by: string;
26
+ idx: number;
27
+ docstatus: number;
28
+ company: string;
29
+ naming_series: "INV-.#" | "INV-.#-GS";
30
+ customer: string;
31
+ posting_date: string;
32
+ set_posting_time: 0 | 1;
33
+ is_return: 0 | 1;
34
+ currency: string;
35
+ conversion_rate: number;
36
+ selling_price_list: string;
37
+ plc_conversion_rate: number;
38
+ ignore_pricing_rule: 0 | 1;
39
+ apply_discount_on: "" | "Grand Total" | "Net Total";
40
+ disable_rounded_total: 0 | 1;
41
+ is_internal_customer: 0 | 1;
42
+ group_same_items: 0 | 1;
43
+ update_stock: 0 | 1;
44
+ allocate_advances_automatically: 0 | 1;
45
+ ignore_default_payment_terms_template: 0 | 1;
46
+ is_opening: "No" | "Yes";
47
+ custom_invoice_no: string;
48
+ is_pos: 0 | 1;
49
+ is_debit_note: 0 | 1;
50
+ update_outstanding_for_self: 0 | 1;
51
+ update_billed_amount_in_sales_order: 0 | 1;
52
+ update_billed_amount_in_delivery_note: 0 | 1;
53
+ is_consolidated: 0 | 1;
54
+ use_company_roundoff_cost_center: 0 | 1;
55
+ is_cash_or_non_trade_discount: 0 | 1;
56
+ only_include_allocated_payments: 0 | 1;
57
+ write_off_outstanding_amount_automatically: 0 | 1;
58
+ redeem_loyalty_points: 0 | 1;
59
+ dont_create_loyalty_points: 0 | 1;
60
+ debit_to: string;
61
+ is_discounted: 0 | 1;
62
+ repost_required: 0 | 1;
63
+ amended_from?: string | undefined;
64
+ _user_tags?: string | undefined;
65
+ tax_category?: string | undefined;
66
+ language?: string | undefined;
67
+ discount_amount?: number | undefined;
68
+ pricing_rules?: any[] | undefined;
69
+ cost_center?: string | undefined;
70
+ project?: string | undefined;
71
+ title?: string | undefined;
72
+ customer_name?: string | undefined;
73
+ posting_time?: string | undefined;
74
+ return_against?: string | undefined;
75
+ po_no?: string | undefined;
76
+ po_date?: string | undefined;
77
+ shipping_address_name?: string | undefined;
78
+ shipping_address?: string | undefined;
79
+ dispatch_address_name?: string | undefined;
80
+ dispatch_address?: string | undefined;
81
+ contact_person?: string | undefined;
82
+ contact_display?: string | undefined;
83
+ contact_mobile?: string | undefined;
84
+ contact_email?: string | undefined;
85
+ customer_address?: string | undefined;
86
+ tax_id?: string | undefined;
87
+ address_display?: string | undefined;
88
+ company_address?: string | undefined;
89
+ company_address_display?: string | undefined;
90
+ price_list_currency?: string | undefined;
91
+ set_warehouse?: string | undefined;
92
+ set_target_warehouse?: string | undefined;
93
+ scan_barcode?: string | undefined;
94
+ total_qty?: number | undefined;
95
+ base_total?: number | undefined;
96
+ base_net_total?: number | undefined;
97
+ total_net_weight?: number | undefined;
98
+ total?: number | undefined;
99
+ net_total?: number | undefined;
100
+ shipping_rule?: string | undefined;
101
+ incoterm?: string | undefined;
102
+ taxes_and_charges?: string | undefined;
103
+ other_charges_calculation?: string | undefined;
104
+ base_total_taxes_and_charges?: number | undefined;
105
+ total_taxes_and_charges?: number | undefined;
106
+ base_discount_amount?: number | undefined;
107
+ additional_discount_percentage?: number | undefined;
108
+ base_grand_total?: number | undefined;
109
+ base_rounding_adjustment?: number | undefined;
110
+ base_rounded_total?: number | undefined;
111
+ base_in_words?: string | undefined;
112
+ grand_total?: number | undefined;
113
+ rounding_adjustment?: number | undefined;
114
+ rounded_total?: number | undefined;
115
+ in_words?: string | undefined;
116
+ tc_name?: string | undefined;
117
+ terms?: string | undefined;
118
+ campaign?: string | undefined;
119
+ source?: string | undefined;
120
+ represents_company?: string | undefined;
121
+ customer_group?: string | undefined;
122
+ territory?: string | undefined;
123
+ letter_head?: string | undefined;
124
+ select_print_heading?: string | undefined;
125
+ auto_repeat?: string | undefined;
126
+ sales_partner?: string | undefined;
127
+ amount_eligible_for_commission?: number | undefined;
128
+ commission_rate?: number | undefined;
129
+ total_commission?: number | undefined;
130
+ packed_items?: any[] | undefined;
131
+ taxes?: {
132
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
133
+ included_in_print_rate: 0 | 1;
134
+ account_head: string;
135
+ description?: string | undefined;
136
+ rate?: number | undefined;
137
+ cost_center?: string | undefined;
138
+ project?: string | undefined;
139
+ base_total?: number | undefined;
140
+ total?: number | undefined;
141
+ account_currency?: string | undefined;
142
+ tax_amount?: number | undefined;
143
+ tax_amount_after_discount_amount?: number | undefined;
144
+ base_tax_amount?: number | undefined;
145
+ }[] | undefined;
146
+ sales_team?: any[] | undefined;
147
+ due_date?: string | undefined;
148
+ paid_amount?: number | undefined;
149
+ total_advance?: number | undefined;
150
+ outstanding_amount?: number | undefined;
151
+ base_paid_amount?: number | undefined;
152
+ write_off_amount?: number | undefined;
153
+ base_write_off_amount?: number | undefined;
154
+ payment_terms_template?: string | undefined;
155
+ party_account_currency?: string | undefined;
156
+ advances?: {
157
+ doctype: "Sales Invoice Advance";
158
+ reference_type: string;
159
+ reference_name: string;
160
+ advance_amount: number;
161
+ remarks?: string | undefined;
162
+ reference_row?: string | undefined;
163
+ allocated_amount?: number | undefined;
164
+ }[] | undefined;
165
+ payment_schedule?: any[] | undefined;
166
+ remarks?: string | undefined;
167
+ company_tax_id?: string | undefined;
168
+ pos_profile?: string | undefined;
169
+ named_place?: string | undefined;
170
+ coupon_code?: string | undefined;
171
+ additional_discount_account?: string | undefined;
172
+ timesheets?: any[] | undefined;
173
+ total_billing_hours?: number | undefined;
174
+ total_billing_amount?: number | undefined;
175
+ cash_bank_account?: string | undefined;
176
+ payments?: {
177
+ amount: number;
178
+ mode_of_payment: string;
179
+ account?: string | undefined;
180
+ base_amount?: number | undefined;
181
+ reference_no?: string | undefined;
182
+ clearance_date?: string | undefined;
183
+ }[] | undefined;
184
+ base_change_amount?: number | undefined;
185
+ change_amount?: number | undefined;
186
+ account_for_change_amount?: string | undefined;
187
+ write_off_account?: string | undefined;
188
+ write_off_cost_center?: string | undefined;
189
+ loyalty_points?: number | undefined;
190
+ loyalty_amount?: number | undefined;
191
+ loyalty_program?: string | undefined;
192
+ loyalty_redemption_account?: string | undefined;
193
+ loyalty_redemption_cost_center?: string | undefined;
194
+ unrealized_profit_loss_account?: string | undefined;
195
+ against_income_account?: string | undefined;
196
+ subscription?: string | undefined;
197
+ from_date?: string | undefined;
198
+ to_date?: string | undefined;
199
+ update_auto_repeat_reference?: string | undefined;
200
+ inter_company_invoice_reference?: string | undefined;
201
+ }[] : TSelectedFields extends TFieldOptions[] ? Pick<{
202
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
203
+ name: string;
204
+ owner: string;
205
+ creation: string;
206
+ modified: string;
207
+ modified_by: string;
208
+ idx: number;
209
+ docstatus: number;
210
+ company: string;
211
+ naming_series: "INV-.#" | "INV-.#-GS";
212
+ customer: string;
213
+ posting_date: string;
214
+ set_posting_time: 0 | 1;
215
+ is_return: 0 | 1;
216
+ currency: string;
217
+ conversion_rate: number;
218
+ selling_price_list: string;
219
+ plc_conversion_rate: number;
220
+ ignore_pricing_rule: 0 | 1;
221
+ apply_discount_on: "" | "Grand Total" | "Net Total";
222
+ disable_rounded_total: 0 | 1;
223
+ is_internal_customer: 0 | 1;
224
+ group_same_items: 0 | 1;
225
+ update_stock: 0 | 1;
226
+ allocate_advances_automatically: 0 | 1;
227
+ ignore_default_payment_terms_template: 0 | 1;
228
+ is_opening: "No" | "Yes";
229
+ custom_invoice_no: string;
230
+ is_pos: 0 | 1;
231
+ is_debit_note: 0 | 1;
232
+ update_outstanding_for_self: 0 | 1;
233
+ update_billed_amount_in_sales_order: 0 | 1;
234
+ update_billed_amount_in_delivery_note: 0 | 1;
235
+ is_consolidated: 0 | 1;
236
+ use_company_roundoff_cost_center: 0 | 1;
237
+ is_cash_or_non_trade_discount: 0 | 1;
238
+ only_include_allocated_payments: 0 | 1;
239
+ write_off_outstanding_amount_automatically: 0 | 1;
240
+ redeem_loyalty_points: 0 | 1;
241
+ dont_create_loyalty_points: 0 | 1;
242
+ debit_to: string;
243
+ is_discounted: 0 | 1;
244
+ repost_required: 0 | 1;
245
+ amended_from?: string | undefined;
246
+ _user_tags?: string | undefined;
247
+ tax_category?: string | undefined;
248
+ language?: string | undefined;
249
+ discount_amount?: number | undefined;
250
+ pricing_rules?: any[] | undefined;
251
+ cost_center?: string | undefined;
252
+ project?: string | undefined;
253
+ title?: string | undefined;
254
+ customer_name?: string | undefined;
255
+ posting_time?: string | undefined;
256
+ return_against?: string | undefined;
257
+ po_no?: string | undefined;
258
+ po_date?: string | undefined;
259
+ shipping_address_name?: string | undefined;
260
+ shipping_address?: string | undefined;
261
+ dispatch_address_name?: string | undefined;
262
+ dispatch_address?: string | undefined;
263
+ contact_person?: string | undefined;
264
+ contact_display?: string | undefined;
265
+ contact_mobile?: string | undefined;
266
+ contact_email?: string | undefined;
267
+ customer_address?: string | undefined;
268
+ tax_id?: string | undefined;
269
+ address_display?: string | undefined;
270
+ company_address?: string | undefined;
271
+ company_address_display?: string | undefined;
272
+ price_list_currency?: string | undefined;
273
+ set_warehouse?: string | undefined;
274
+ set_target_warehouse?: string | undefined;
275
+ scan_barcode?: string | undefined;
276
+ total_qty?: number | undefined;
277
+ base_total?: number | undefined;
278
+ base_net_total?: number | undefined;
279
+ total_net_weight?: number | undefined;
280
+ total?: number | undefined;
281
+ net_total?: number | undefined;
282
+ shipping_rule?: string | undefined;
283
+ incoterm?: string | undefined;
284
+ taxes_and_charges?: string | undefined;
285
+ other_charges_calculation?: string | undefined;
286
+ base_total_taxes_and_charges?: number | undefined;
287
+ total_taxes_and_charges?: number | undefined;
288
+ base_discount_amount?: number | undefined;
289
+ additional_discount_percentage?: number | undefined;
290
+ base_grand_total?: number | undefined;
291
+ base_rounding_adjustment?: number | undefined;
292
+ base_rounded_total?: number | undefined;
293
+ base_in_words?: string | undefined;
294
+ grand_total?: number | undefined;
295
+ rounding_adjustment?: number | undefined;
296
+ rounded_total?: number | undefined;
297
+ in_words?: string | undefined;
298
+ tc_name?: string | undefined;
299
+ terms?: string | undefined;
300
+ campaign?: string | undefined;
301
+ source?: string | undefined;
302
+ represents_company?: string | undefined;
303
+ customer_group?: string | undefined;
304
+ territory?: string | undefined;
305
+ letter_head?: string | undefined;
306
+ select_print_heading?: string | undefined;
307
+ auto_repeat?: string | undefined;
308
+ sales_partner?: string | undefined;
309
+ amount_eligible_for_commission?: number | undefined;
310
+ commission_rate?: number | undefined;
311
+ total_commission?: number | undefined;
312
+ packed_items?: any[] | undefined;
313
+ taxes?: {
314
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
315
+ included_in_print_rate: 0 | 1;
316
+ account_head: string;
317
+ description?: string | undefined;
318
+ rate?: number | undefined;
319
+ cost_center?: string | undefined;
320
+ project?: string | undefined;
321
+ base_total?: number | undefined;
322
+ total?: number | undefined;
323
+ account_currency?: string | undefined;
324
+ tax_amount?: number | undefined;
325
+ tax_amount_after_discount_amount?: number | undefined;
326
+ base_tax_amount?: number | undefined;
327
+ }[] | undefined;
328
+ sales_team?: any[] | undefined;
329
+ due_date?: string | undefined;
330
+ paid_amount?: number | undefined;
331
+ total_advance?: number | undefined;
332
+ outstanding_amount?: number | undefined;
333
+ base_paid_amount?: number | undefined;
334
+ write_off_amount?: number | undefined;
335
+ base_write_off_amount?: number | undefined;
336
+ payment_terms_template?: string | undefined;
337
+ party_account_currency?: string | undefined;
338
+ advances?: {
339
+ doctype: "Sales Invoice Advance";
340
+ reference_type: string;
341
+ reference_name: string;
342
+ advance_amount: number;
343
+ remarks?: string | undefined;
344
+ reference_row?: string | undefined;
345
+ allocated_amount?: number | undefined;
346
+ }[] | undefined;
347
+ payment_schedule?: any[] | undefined;
348
+ remarks?: string | undefined;
349
+ company_tax_id?: string | undefined;
350
+ pos_profile?: string | undefined;
351
+ named_place?: string | undefined;
352
+ coupon_code?: string | undefined;
353
+ additional_discount_account?: string | undefined;
354
+ timesheets?: any[] | undefined;
355
+ total_billing_hours?: number | undefined;
356
+ total_billing_amount?: number | undefined;
357
+ cash_bank_account?: string | undefined;
358
+ payments?: {
359
+ amount: number;
360
+ mode_of_payment: string;
361
+ account?: string | undefined;
362
+ base_amount?: number | undefined;
363
+ reference_no?: string | undefined;
364
+ clearance_date?: string | undefined;
365
+ }[] | undefined;
366
+ base_change_amount?: number | undefined;
367
+ change_amount?: number | undefined;
368
+ account_for_change_amount?: string | undefined;
369
+ write_off_account?: string | undefined;
370
+ write_off_cost_center?: string | undefined;
371
+ loyalty_points?: number | undefined;
372
+ loyalty_amount?: number | undefined;
373
+ loyalty_program?: string | undefined;
374
+ loyalty_redemption_account?: string | undefined;
375
+ loyalty_redemption_cost_center?: string | undefined;
376
+ unrealized_profit_loss_account?: string | undefined;
377
+ against_income_account?: string | undefined;
378
+ subscription?: string | undefined;
379
+ from_date?: string | undefined;
380
+ to_date?: string | undefined;
381
+ update_auto_repeat_reference?: string | undefined;
382
+ inter_company_invoice_reference?: string | undefined;
383
+ }, TSelectedFields[number]>[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
384
+ getById: ({ resourceId, priority, }: {
385
+ resourceId: string;
386
+ priority?: number;
387
+ }) => Promise<{
388
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
389
+ name: string;
390
+ owner: string;
391
+ creation: string;
392
+ modified: string;
393
+ modified_by: string;
394
+ idx: number;
395
+ docstatus: number;
396
+ doctype: string;
397
+ company: string;
398
+ naming_series: "INV-.#" | "INV-.#-GS";
399
+ customer: string;
400
+ posting_date: string;
401
+ set_posting_time: 0 | 1;
402
+ is_return: 0 | 1;
403
+ currency: string;
404
+ conversion_rate: number;
405
+ selling_price_list: string;
406
+ plc_conversion_rate: number;
407
+ ignore_pricing_rule: 0 | 1;
408
+ apply_discount_on: "" | "Grand Total" | "Net Total";
409
+ disable_rounded_total: 0 | 1;
410
+ is_internal_customer: 0 | 1;
411
+ group_same_items: 0 | 1;
412
+ items: {
413
+ name: string;
414
+ owner: string;
415
+ creation: string;
416
+ modified: string;
417
+ modified_by: string;
418
+ idx: number;
419
+ docstatus: number;
420
+ doctype: string;
421
+ parenttype: string;
422
+ parentfield: string;
423
+ item_code: string;
424
+ item_name: string;
425
+ qty: number;
426
+ uom: string;
427
+ rate: number;
428
+ is_free_item: 0 | 1;
429
+ grant_commission: 0 | 1;
430
+ allow_zero_valuation_rate: 0 | 1;
431
+ page_break: 0 | 1;
432
+ is_fixed_asset: 0 | 1;
433
+ delivered_by_supplier: 0 | 1;
434
+ enable_deferred_revenue: 0 | 1;
435
+ has_item_scanned: 0 | 1;
436
+ income_account: string;
437
+ use_serial_batch_fields: 0 | 1;
438
+ _user_tags?: string | undefined;
439
+ description?: string | undefined;
440
+ brand?: string | undefined;
441
+ image?: string | undefined;
442
+ barcode?: string | undefined;
443
+ customer_item_code?: string | undefined;
444
+ item_group?: string | undefined;
445
+ stock_uom?: string | undefined;
446
+ conversion_factor?: number | undefined;
447
+ stock_qty?: number | undefined;
448
+ price_list_rate?: number | undefined;
449
+ base_price_list_rate?: number | undefined;
450
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
451
+ margin_rate_or_amount?: number | undefined;
452
+ rate_with_margin?: number | undefined;
453
+ discount_percentage?: number | undefined;
454
+ discount_amount?: number | undefined;
455
+ base_rate_with_margin?: number | undefined;
456
+ amount?: number | undefined;
457
+ base_rate?: number | undefined;
458
+ base_amount?: number | undefined;
459
+ pricing_rules?: string | undefined;
460
+ stock_uom_rate?: number | undefined;
461
+ net_rate?: number | undefined;
462
+ net_amount?: number | undefined;
463
+ item_tax_template?: string | undefined;
464
+ base_net_rate?: number | undefined;
465
+ base_net_amount?: number | undefined;
466
+ incoming_rate?: number | undefined;
467
+ weight_per_unit?: number | undefined;
468
+ total_weight?: number | undefined;
469
+ weight_uom?: string | undefined;
470
+ warehouse?: string | undefined;
471
+ target_warehouse?: string | undefined;
472
+ quality_inspection?: string | undefined;
473
+ so_detail?: string | undefined;
474
+ dn_detail?: string | undefined;
475
+ batch_no?: string | undefined;
476
+ serial_no?: string | undefined;
477
+ actual_batch_qty?: number | undefined;
478
+ actual_qty?: number | undefined;
479
+ item_tax_rate?: string | undefined;
480
+ expense_account?: string | undefined;
481
+ cost_center?: string | undefined;
482
+ project?: string | undefined;
483
+ purchase_order?: string | undefined;
484
+ purchase_order_item?: string | undefined;
485
+ sales_order?: string | undefined;
486
+ delivery_note?: string | undefined;
487
+ delivered_qty?: number | undefined;
488
+ sales_invoice_item?: string | undefined;
489
+ discount_account?: string | undefined;
490
+ deferred_revenue_account?: string | undefined;
491
+ service_start_date?: string | undefined;
492
+ service_stop_date?: string | undefined;
493
+ service_end_date?: string | undefined;
494
+ asset?: string | undefined;
495
+ finance_book?: string | undefined;
496
+ serial_and_batch_bundle?: string | undefined;
497
+ }[];
498
+ update_stock: 0 | 1;
499
+ allocate_advances_automatically: 0 | 1;
500
+ ignore_default_payment_terms_template: 0 | 1;
501
+ is_opening: "No" | "Yes";
502
+ custom_invoice_no: string;
503
+ is_pos: 0 | 1;
504
+ is_debit_note: 0 | 1;
505
+ update_outstanding_for_self: 0 | 1;
506
+ update_billed_amount_in_sales_order: 0 | 1;
507
+ update_billed_amount_in_delivery_note: 0 | 1;
508
+ is_consolidated: 0 | 1;
509
+ use_company_roundoff_cost_center: 0 | 1;
510
+ is_cash_or_non_trade_discount: 0 | 1;
511
+ only_include_allocated_payments: 0 | 1;
512
+ write_off_outstanding_amount_automatically: 0 | 1;
513
+ redeem_loyalty_points: 0 | 1;
514
+ dont_create_loyalty_points: 0 | 1;
515
+ debit_to: string;
516
+ is_discounted: 0 | 1;
517
+ repost_required: 0 | 1;
518
+ amended_from?: string | undefined;
519
+ _user_tags?: string | undefined;
520
+ tax_category?: string | undefined;
521
+ language?: string | undefined;
522
+ discount_amount?: number | undefined;
523
+ pricing_rules?: any[] | undefined;
524
+ cost_center?: string | undefined;
525
+ project?: string | undefined;
526
+ title?: string | undefined;
527
+ customer_name?: string | undefined;
528
+ posting_time?: string | undefined;
529
+ return_against?: string | undefined;
530
+ po_no?: string | undefined;
531
+ po_date?: string | undefined;
532
+ shipping_address_name?: string | undefined;
533
+ shipping_address?: string | undefined;
534
+ dispatch_address_name?: string | undefined;
535
+ dispatch_address?: string | undefined;
536
+ contact_person?: string | undefined;
537
+ contact_display?: string | undefined;
538
+ contact_mobile?: string | undefined;
539
+ contact_email?: string | undefined;
540
+ customer_address?: string | undefined;
541
+ tax_id?: string | undefined;
542
+ address_display?: string | undefined;
543
+ company_address?: string | undefined;
544
+ company_address_display?: string | undefined;
545
+ price_list_currency?: string | undefined;
546
+ set_warehouse?: string | undefined;
547
+ set_target_warehouse?: string | undefined;
548
+ scan_barcode?: string | undefined;
549
+ total_qty?: number | undefined;
550
+ base_total?: number | undefined;
551
+ base_net_total?: number | undefined;
552
+ total_net_weight?: number | undefined;
553
+ total?: number | undefined;
554
+ net_total?: number | undefined;
555
+ shipping_rule?: string | undefined;
556
+ incoterm?: string | undefined;
557
+ taxes_and_charges?: string | undefined;
558
+ other_charges_calculation?: string | undefined;
559
+ base_total_taxes_and_charges?: number | undefined;
560
+ total_taxes_and_charges?: number | undefined;
561
+ base_discount_amount?: number | undefined;
562
+ additional_discount_percentage?: number | undefined;
563
+ base_grand_total?: number | undefined;
564
+ base_rounding_adjustment?: number | undefined;
565
+ base_rounded_total?: number | undefined;
566
+ base_in_words?: string | undefined;
567
+ grand_total?: number | undefined;
568
+ rounding_adjustment?: number | undefined;
569
+ rounded_total?: number | undefined;
570
+ in_words?: string | undefined;
571
+ tc_name?: string | undefined;
572
+ terms?: string | undefined;
573
+ campaign?: string | undefined;
574
+ source?: string | undefined;
575
+ represents_company?: string | undefined;
576
+ customer_group?: string | undefined;
577
+ territory?: string | undefined;
578
+ letter_head?: string | undefined;
579
+ select_print_heading?: string | undefined;
580
+ auto_repeat?: string | undefined;
581
+ sales_partner?: string | undefined;
582
+ amount_eligible_for_commission?: number | undefined;
583
+ commission_rate?: number | undefined;
584
+ total_commission?: number | undefined;
585
+ packed_items?: any[] | undefined;
586
+ taxes?: {
587
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
588
+ included_in_print_rate: 0 | 1;
589
+ account_head: string;
590
+ description?: string | undefined;
591
+ rate?: number | undefined;
592
+ cost_center?: string | undefined;
593
+ project?: string | undefined;
594
+ base_total?: number | undefined;
595
+ total?: number | undefined;
596
+ account_currency?: string | undefined;
597
+ tax_amount?: number | undefined;
598
+ tax_amount_after_discount_amount?: number | undefined;
599
+ base_tax_amount?: number | undefined;
600
+ }[] | undefined;
601
+ sales_team?: any[] | undefined;
602
+ due_date?: string | undefined;
603
+ paid_amount?: number | undefined;
604
+ total_advance?: number | undefined;
605
+ outstanding_amount?: number | undefined;
606
+ base_paid_amount?: number | undefined;
607
+ write_off_amount?: number | undefined;
608
+ base_write_off_amount?: number | undefined;
609
+ payment_terms_template?: string | undefined;
610
+ party_account_currency?: string | undefined;
611
+ advances?: {
612
+ doctype: "Sales Invoice Advance";
613
+ reference_type: string;
614
+ reference_name: string;
615
+ advance_amount: number;
616
+ remarks?: string | undefined;
617
+ reference_row?: string | undefined;
618
+ allocated_amount?: number | undefined;
619
+ }[] | undefined;
620
+ payment_schedule?: any[] | undefined;
621
+ remarks?: string | undefined;
622
+ company_tax_id?: string | undefined;
623
+ pos_profile?: string | undefined;
624
+ named_place?: string | undefined;
625
+ coupon_code?: string | undefined;
626
+ additional_discount_account?: string | undefined;
627
+ timesheets?: any[] | undefined;
628
+ total_billing_hours?: number | undefined;
629
+ total_billing_amount?: number | undefined;
630
+ cash_bank_account?: string | undefined;
631
+ payments?: {
632
+ amount: number;
633
+ mode_of_payment: string;
634
+ account?: string | undefined;
635
+ base_amount?: number | undefined;
636
+ reference_no?: string | undefined;
637
+ clearance_date?: string | undefined;
638
+ }[] | undefined;
639
+ base_change_amount?: number | undefined;
640
+ change_amount?: number | undefined;
641
+ account_for_change_amount?: string | undefined;
642
+ write_off_account?: string | undefined;
643
+ write_off_cost_center?: string | undefined;
644
+ loyalty_points?: number | undefined;
645
+ loyalty_amount?: number | undefined;
646
+ loyalty_program?: string | undefined;
647
+ loyalty_redemption_account?: string | undefined;
648
+ loyalty_redemption_cost_center?: string | undefined;
649
+ unrealized_profit_loss_account?: string | undefined;
650
+ against_income_account?: string | undefined;
651
+ subscription?: string | undefined;
652
+ from_date?: string | undefined;
653
+ to_date?: string | undefined;
654
+ update_auto_repeat_reference?: string | undefined;
655
+ inter_company_invoice_reference?: string | undefined;
656
+ }>;
657
+ create: <TInput extends TInputModel extends undefined ? {
658
+ company: string;
659
+ customer: string;
660
+ posting_date: string;
661
+ currency: string;
662
+ selling_price_list: string;
663
+ items: {
664
+ item_code: string;
665
+ item_name: string;
666
+ qty: number;
667
+ uom: string;
668
+ rate: number;
669
+ income_account: string;
670
+ description?: string | undefined;
671
+ brand?: string | undefined;
672
+ image?: string | undefined;
673
+ barcode?: string | undefined;
674
+ customer_item_code?: string | undefined;
675
+ item_group?: string | undefined;
676
+ stock_uom?: string | undefined;
677
+ conversion_factor?: number | undefined;
678
+ stock_qty?: number | undefined;
679
+ price_list_rate?: number | undefined;
680
+ base_price_list_rate?: number | undefined;
681
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
682
+ margin_rate_or_amount?: number | undefined;
683
+ rate_with_margin?: number | undefined;
684
+ discount_percentage?: number | undefined;
685
+ discount_amount?: number | undefined;
686
+ base_rate_with_margin?: number | undefined;
687
+ amount?: number | undefined;
688
+ base_rate?: number | undefined;
689
+ base_amount?: number | undefined;
690
+ pricing_rules?: string | undefined;
691
+ stock_uom_rate?: number | undefined;
692
+ is_free_item?: 0 | 1 | undefined;
693
+ grant_commission?: 0 | 1 | undefined;
694
+ net_rate?: number | undefined;
695
+ net_amount?: number | undefined;
696
+ item_tax_template?: string | undefined;
697
+ base_net_rate?: number | undefined;
698
+ base_net_amount?: number | undefined;
699
+ incoming_rate?: number | undefined;
700
+ weight_per_unit?: number | undefined;
701
+ total_weight?: number | undefined;
702
+ weight_uom?: string | undefined;
703
+ warehouse?: string | undefined;
704
+ target_warehouse?: string | undefined;
705
+ quality_inspection?: string | undefined;
706
+ so_detail?: string | undefined;
707
+ dn_detail?: string | undefined;
708
+ batch_no?: string | undefined;
709
+ serial_no?: string | undefined;
710
+ actual_batch_qty?: number | undefined;
711
+ actual_qty?: number | undefined;
712
+ item_tax_rate?: string | undefined;
713
+ expense_account?: string | undefined;
714
+ allow_zero_valuation_rate?: 0 | 1 | undefined;
715
+ cost_center?: string | undefined;
716
+ project?: string | undefined;
717
+ page_break?: 0 | 1 | undefined;
718
+ is_fixed_asset?: 0 | 1 | undefined;
719
+ delivered_by_supplier?: 0 | 1 | undefined;
720
+ enable_deferred_revenue?: 0 | 1 | undefined;
721
+ purchase_order?: string | undefined;
722
+ purchase_order_item?: string | undefined;
723
+ has_item_scanned?: 0 | 1 | undefined;
724
+ sales_order?: string | undefined;
725
+ delivery_note?: string | undefined;
726
+ delivered_qty?: number | undefined;
727
+ sales_invoice_item?: string | undefined;
728
+ discount_account?: string | undefined;
729
+ deferred_revenue_account?: string | undefined;
730
+ service_start_date?: string | undefined;
731
+ service_stop_date?: string | undefined;
732
+ service_end_date?: string | undefined;
733
+ asset?: string | undefined;
734
+ finance_book?: string | undefined;
735
+ use_serial_batch_fields?: 0 | 1 | undefined;
736
+ serial_and_batch_bundle?: string | undefined;
737
+ }[];
738
+ custom_invoice_no: string;
739
+ debit_to: string;
740
+ status?: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer" | undefined;
741
+ amended_from?: string | undefined;
742
+ tax_category?: string | undefined;
743
+ naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
744
+ language?: string | undefined;
745
+ discount_amount?: number | undefined;
746
+ pricing_rules?: any[] | undefined;
747
+ cost_center?: string | undefined;
748
+ project?: string | undefined;
749
+ title?: string | undefined;
750
+ customer_name?: string | undefined;
751
+ posting_time?: string | undefined;
752
+ set_posting_time?: 0 | 1 | undefined;
753
+ is_return?: 0 | 1 | undefined;
754
+ return_against?: string | undefined;
755
+ po_no?: string | undefined;
756
+ po_date?: string | undefined;
757
+ shipping_address_name?: string | undefined;
758
+ shipping_address?: string | undefined;
759
+ dispatch_address_name?: string | undefined;
760
+ dispatch_address?: string | undefined;
761
+ contact_person?: string | undefined;
762
+ contact_display?: string | undefined;
763
+ contact_mobile?: string | undefined;
764
+ contact_email?: string | undefined;
765
+ customer_address?: string | undefined;
766
+ tax_id?: string | undefined;
767
+ address_display?: string | undefined;
768
+ company_address?: string | undefined;
769
+ company_address_display?: string | undefined;
770
+ conversion_rate?: number | undefined;
771
+ price_list_currency?: string | undefined;
772
+ plc_conversion_rate?: number | undefined;
773
+ ignore_pricing_rule?: 0 | 1 | undefined;
774
+ set_warehouse?: string | undefined;
775
+ set_target_warehouse?: string | undefined;
776
+ scan_barcode?: string | undefined;
777
+ total_qty?: number | undefined;
778
+ base_total?: number | undefined;
779
+ base_net_total?: number | undefined;
780
+ total_net_weight?: number | undefined;
781
+ total?: number | undefined;
782
+ net_total?: number | undefined;
783
+ shipping_rule?: string | undefined;
784
+ incoterm?: string | undefined;
785
+ taxes_and_charges?: string | undefined;
786
+ other_charges_calculation?: string | undefined;
787
+ base_total_taxes_and_charges?: number | undefined;
788
+ total_taxes_and_charges?: number | undefined;
789
+ apply_discount_on?: "" | "Grand Total" | "Net Total" | undefined;
790
+ base_discount_amount?: number | undefined;
791
+ additional_discount_percentage?: number | undefined;
792
+ base_grand_total?: number | undefined;
793
+ base_rounding_adjustment?: number | undefined;
794
+ base_rounded_total?: number | undefined;
795
+ base_in_words?: string | undefined;
796
+ grand_total?: number | undefined;
797
+ rounding_adjustment?: number | undefined;
798
+ rounded_total?: number | undefined;
799
+ in_words?: string | undefined;
800
+ disable_rounded_total?: 0 | 1 | undefined;
801
+ tc_name?: string | undefined;
802
+ terms?: string | undefined;
803
+ campaign?: string | undefined;
804
+ source?: string | undefined;
805
+ is_internal_customer?: 0 | 1 | undefined;
806
+ represents_company?: string | undefined;
807
+ customer_group?: string | undefined;
808
+ territory?: string | undefined;
809
+ letter_head?: string | undefined;
810
+ select_print_heading?: string | undefined;
811
+ group_same_items?: 0 | 1 | undefined;
812
+ auto_repeat?: string | undefined;
813
+ sales_partner?: string | undefined;
814
+ amount_eligible_for_commission?: number | undefined;
815
+ commission_rate?: number | undefined;
816
+ total_commission?: number | undefined;
817
+ packed_items?: any[] | undefined;
818
+ taxes?: {
819
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
820
+ included_in_print_rate: 0 | 1;
821
+ account_head: string;
822
+ description?: string | undefined;
823
+ rate?: number | undefined;
824
+ cost_center?: string | undefined;
825
+ project?: string | undefined;
826
+ base_total?: number | undefined;
827
+ total?: number | undefined;
828
+ account_currency?: string | undefined;
829
+ tax_amount?: number | undefined;
830
+ tax_amount_after_discount_amount?: number | undefined;
831
+ base_tax_amount?: number | undefined;
832
+ }[] | undefined;
833
+ sales_team?: any[] | undefined;
834
+ due_date?: string | undefined;
835
+ paid_amount?: number | undefined;
836
+ update_stock?: 0 | 1 | undefined;
837
+ total_advance?: number | undefined;
838
+ outstanding_amount?: number | undefined;
839
+ base_paid_amount?: number | undefined;
840
+ write_off_amount?: number | undefined;
841
+ base_write_off_amount?: number | undefined;
842
+ allocate_advances_automatically?: 0 | 1 | undefined;
843
+ payment_terms_template?: string | undefined;
844
+ ignore_default_payment_terms_template?: 0 | 1 | undefined;
845
+ party_account_currency?: string | undefined;
846
+ is_opening?: "No" | "Yes" | undefined;
847
+ advances?: {
848
+ doctype: "Sales Invoice Advance";
849
+ reference_type: string;
850
+ reference_name: string;
851
+ advance_amount: number;
852
+ remarks?: string | undefined;
853
+ reference_row?: string | undefined;
854
+ allocated_amount?: number | undefined;
855
+ }[] | undefined;
856
+ payment_schedule?: any[] | undefined;
857
+ remarks?: string | undefined;
858
+ company_tax_id?: string | undefined;
859
+ is_pos?: 0 | 1 | undefined;
860
+ pos_profile?: string | undefined;
861
+ is_debit_note?: 0 | 1 | undefined;
862
+ update_outstanding_for_self?: 0 | 1 | undefined;
863
+ update_billed_amount_in_sales_order?: 0 | 1 | undefined;
864
+ update_billed_amount_in_delivery_note?: 0 | 1 | undefined;
865
+ is_consolidated?: 0 | 1 | undefined;
866
+ named_place?: string | undefined;
867
+ use_company_roundoff_cost_center?: 0 | 1 | undefined;
868
+ coupon_code?: string | undefined;
869
+ is_cash_or_non_trade_discount?: 0 | 1 | undefined;
870
+ additional_discount_account?: string | undefined;
871
+ timesheets?: any[] | undefined;
872
+ total_billing_hours?: number | undefined;
873
+ total_billing_amount?: number | undefined;
874
+ cash_bank_account?: string | undefined;
875
+ payments?: {
876
+ amount: number;
877
+ mode_of_payment: string;
878
+ account?: string | undefined;
879
+ base_amount?: number | undefined;
880
+ reference_no?: string | undefined;
881
+ clearance_date?: string | undefined;
882
+ }[] | undefined;
883
+ base_change_amount?: number | undefined;
884
+ change_amount?: number | undefined;
885
+ account_for_change_amount?: string | undefined;
886
+ only_include_allocated_payments?: 0 | 1 | undefined;
887
+ write_off_outstanding_amount_automatically?: 0 | 1 | undefined;
888
+ write_off_account?: string | undefined;
889
+ write_off_cost_center?: string | undefined;
890
+ redeem_loyalty_points?: 0 | 1 | undefined;
891
+ loyalty_points?: number | undefined;
892
+ loyalty_amount?: number | undefined;
893
+ loyalty_program?: string | undefined;
894
+ dont_create_loyalty_points?: 0 | 1 | undefined;
895
+ loyalty_redemption_account?: string | undefined;
896
+ loyalty_redemption_cost_center?: string | undefined;
897
+ unrealized_profit_loss_account?: string | undefined;
898
+ against_income_account?: string | undefined;
899
+ subscription?: string | undefined;
900
+ from_date?: string | undefined;
901
+ to_date?: string | undefined;
902
+ update_auto_repeat_reference?: string | undefined;
903
+ is_discounted?: 0 | 1 | undefined;
904
+ inter_company_invoice_reference?: string | undefined;
905
+ repost_required?: 0 | 1 | undefined;
906
+ } : TInputModel extends import("zod").ZodTypeAny ? import("zod").TypeOf<TInputModel> : any, TInputModel extends import("zod").ZodTypeAny | undefined = undefined>({ inputValidationModel, body, params, priority, }: {
907
+ inputValidationModel?: TInputModel;
908
+ body: TInput;
909
+ params?: Record<string, string>;
910
+ priority?: number;
911
+ }) => Promise<{
912
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
913
+ name: string;
914
+ owner: string;
915
+ creation: string;
916
+ modified: string;
917
+ modified_by: string;
918
+ idx: number;
919
+ docstatus: number;
920
+ doctype: string;
921
+ company: string;
922
+ naming_series: "INV-.#" | "INV-.#-GS";
923
+ customer: string;
924
+ posting_date: string;
925
+ set_posting_time: 0 | 1;
926
+ is_return: 0 | 1;
927
+ currency: string;
928
+ conversion_rate: number;
929
+ selling_price_list: string;
930
+ plc_conversion_rate: number;
931
+ ignore_pricing_rule: 0 | 1;
932
+ apply_discount_on: "" | "Grand Total" | "Net Total";
933
+ disable_rounded_total: 0 | 1;
934
+ is_internal_customer: 0 | 1;
935
+ group_same_items: 0 | 1;
936
+ items: {
937
+ name: string;
938
+ owner: string;
939
+ creation: string;
940
+ modified: string;
941
+ modified_by: string;
942
+ idx: number;
943
+ docstatus: number;
944
+ doctype: string;
945
+ parenttype: string;
946
+ parentfield: string;
947
+ item_code: string;
948
+ item_name: string;
949
+ qty: number;
950
+ uom: string;
951
+ rate: number;
952
+ is_free_item: 0 | 1;
953
+ grant_commission: 0 | 1;
954
+ allow_zero_valuation_rate: 0 | 1;
955
+ page_break: 0 | 1;
956
+ is_fixed_asset: 0 | 1;
957
+ delivered_by_supplier: 0 | 1;
958
+ enable_deferred_revenue: 0 | 1;
959
+ has_item_scanned: 0 | 1;
960
+ income_account: string;
961
+ use_serial_batch_fields: 0 | 1;
962
+ _user_tags?: string | undefined;
963
+ description?: string | undefined;
964
+ brand?: string | undefined;
965
+ image?: string | undefined;
966
+ barcode?: string | undefined;
967
+ customer_item_code?: string | undefined;
968
+ item_group?: string | undefined;
969
+ stock_uom?: string | undefined;
970
+ conversion_factor?: number | undefined;
971
+ stock_qty?: number | undefined;
972
+ price_list_rate?: number | undefined;
973
+ base_price_list_rate?: number | undefined;
974
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
975
+ margin_rate_or_amount?: number | undefined;
976
+ rate_with_margin?: number | undefined;
977
+ discount_percentage?: number | undefined;
978
+ discount_amount?: number | undefined;
979
+ base_rate_with_margin?: number | undefined;
980
+ amount?: number | undefined;
981
+ base_rate?: number | undefined;
982
+ base_amount?: number | undefined;
983
+ pricing_rules?: string | undefined;
984
+ stock_uom_rate?: number | undefined;
985
+ net_rate?: number | undefined;
986
+ net_amount?: number | undefined;
987
+ item_tax_template?: string | undefined;
988
+ base_net_rate?: number | undefined;
989
+ base_net_amount?: number | undefined;
990
+ incoming_rate?: number | undefined;
991
+ weight_per_unit?: number | undefined;
992
+ total_weight?: number | undefined;
993
+ weight_uom?: string | undefined;
994
+ warehouse?: string | undefined;
995
+ target_warehouse?: string | undefined;
996
+ quality_inspection?: string | undefined;
997
+ so_detail?: string | undefined;
998
+ dn_detail?: string | undefined;
999
+ batch_no?: string | undefined;
1000
+ serial_no?: string | undefined;
1001
+ actual_batch_qty?: number | undefined;
1002
+ actual_qty?: number | undefined;
1003
+ item_tax_rate?: string | undefined;
1004
+ expense_account?: string | undefined;
1005
+ cost_center?: string | undefined;
1006
+ project?: string | undefined;
1007
+ purchase_order?: string | undefined;
1008
+ purchase_order_item?: string | undefined;
1009
+ sales_order?: string | undefined;
1010
+ delivery_note?: string | undefined;
1011
+ delivered_qty?: number | undefined;
1012
+ sales_invoice_item?: string | undefined;
1013
+ discount_account?: string | undefined;
1014
+ deferred_revenue_account?: string | undefined;
1015
+ service_start_date?: string | undefined;
1016
+ service_stop_date?: string | undefined;
1017
+ service_end_date?: string | undefined;
1018
+ asset?: string | undefined;
1019
+ finance_book?: string | undefined;
1020
+ serial_and_batch_bundle?: string | undefined;
1021
+ }[];
1022
+ update_stock: 0 | 1;
1023
+ allocate_advances_automatically: 0 | 1;
1024
+ ignore_default_payment_terms_template: 0 | 1;
1025
+ is_opening: "No" | "Yes";
1026
+ custom_invoice_no: string;
1027
+ is_pos: 0 | 1;
1028
+ is_debit_note: 0 | 1;
1029
+ update_outstanding_for_self: 0 | 1;
1030
+ update_billed_amount_in_sales_order: 0 | 1;
1031
+ update_billed_amount_in_delivery_note: 0 | 1;
1032
+ is_consolidated: 0 | 1;
1033
+ use_company_roundoff_cost_center: 0 | 1;
1034
+ is_cash_or_non_trade_discount: 0 | 1;
1035
+ only_include_allocated_payments: 0 | 1;
1036
+ write_off_outstanding_amount_automatically: 0 | 1;
1037
+ redeem_loyalty_points: 0 | 1;
1038
+ dont_create_loyalty_points: 0 | 1;
1039
+ debit_to: string;
1040
+ is_discounted: 0 | 1;
1041
+ repost_required: 0 | 1;
1042
+ amended_from?: string | undefined;
1043
+ _user_tags?: string | undefined;
1044
+ tax_category?: string | undefined;
1045
+ language?: string | undefined;
1046
+ discount_amount?: number | undefined;
1047
+ pricing_rules?: any[] | undefined;
1048
+ cost_center?: string | undefined;
1049
+ project?: string | undefined;
1050
+ title?: string | undefined;
1051
+ customer_name?: string | undefined;
1052
+ posting_time?: string | undefined;
1053
+ return_against?: string | undefined;
1054
+ po_no?: string | undefined;
1055
+ po_date?: string | undefined;
1056
+ shipping_address_name?: string | undefined;
1057
+ shipping_address?: string | undefined;
1058
+ dispatch_address_name?: string | undefined;
1059
+ dispatch_address?: string | undefined;
1060
+ contact_person?: string | undefined;
1061
+ contact_display?: string | undefined;
1062
+ contact_mobile?: string | undefined;
1063
+ contact_email?: string | undefined;
1064
+ customer_address?: string | undefined;
1065
+ tax_id?: string | undefined;
1066
+ address_display?: string | undefined;
1067
+ company_address?: string | undefined;
1068
+ company_address_display?: string | undefined;
1069
+ price_list_currency?: string | undefined;
1070
+ set_warehouse?: string | undefined;
1071
+ set_target_warehouse?: string | undefined;
1072
+ scan_barcode?: string | undefined;
1073
+ total_qty?: number | undefined;
1074
+ base_total?: number | undefined;
1075
+ base_net_total?: number | undefined;
1076
+ total_net_weight?: number | undefined;
1077
+ total?: number | undefined;
1078
+ net_total?: number | undefined;
1079
+ shipping_rule?: string | undefined;
1080
+ incoterm?: string | undefined;
1081
+ taxes_and_charges?: string | undefined;
1082
+ other_charges_calculation?: string | undefined;
1083
+ base_total_taxes_and_charges?: number | undefined;
1084
+ total_taxes_and_charges?: number | undefined;
1085
+ base_discount_amount?: number | undefined;
1086
+ additional_discount_percentage?: number | undefined;
1087
+ base_grand_total?: number | undefined;
1088
+ base_rounding_adjustment?: number | undefined;
1089
+ base_rounded_total?: number | undefined;
1090
+ base_in_words?: string | undefined;
1091
+ grand_total?: number | undefined;
1092
+ rounding_adjustment?: number | undefined;
1093
+ rounded_total?: number | undefined;
1094
+ in_words?: string | undefined;
1095
+ tc_name?: string | undefined;
1096
+ terms?: string | undefined;
1097
+ campaign?: string | undefined;
1098
+ source?: string | undefined;
1099
+ represents_company?: string | undefined;
1100
+ customer_group?: string | undefined;
1101
+ territory?: string | undefined;
1102
+ letter_head?: string | undefined;
1103
+ select_print_heading?: string | undefined;
1104
+ auto_repeat?: string | undefined;
1105
+ sales_partner?: string | undefined;
1106
+ amount_eligible_for_commission?: number | undefined;
1107
+ commission_rate?: number | undefined;
1108
+ total_commission?: number | undefined;
1109
+ packed_items?: any[] | undefined;
1110
+ taxes?: {
1111
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1112
+ included_in_print_rate: 0 | 1;
1113
+ account_head: string;
1114
+ description?: string | undefined;
1115
+ rate?: number | undefined;
1116
+ cost_center?: string | undefined;
1117
+ project?: string | undefined;
1118
+ base_total?: number | undefined;
1119
+ total?: number | undefined;
1120
+ account_currency?: string | undefined;
1121
+ tax_amount?: number | undefined;
1122
+ tax_amount_after_discount_amount?: number | undefined;
1123
+ base_tax_amount?: number | undefined;
1124
+ }[] | undefined;
1125
+ sales_team?: any[] | undefined;
1126
+ due_date?: string | undefined;
1127
+ paid_amount?: number | undefined;
1128
+ total_advance?: number | undefined;
1129
+ outstanding_amount?: number | undefined;
1130
+ base_paid_amount?: number | undefined;
1131
+ write_off_amount?: number | undefined;
1132
+ base_write_off_amount?: number | undefined;
1133
+ payment_terms_template?: string | undefined;
1134
+ party_account_currency?: string | undefined;
1135
+ advances?: {
1136
+ doctype: "Sales Invoice Advance";
1137
+ reference_type: string;
1138
+ reference_name: string;
1139
+ advance_amount: number;
1140
+ remarks?: string | undefined;
1141
+ reference_row?: string | undefined;
1142
+ allocated_amount?: number | undefined;
1143
+ }[] | undefined;
1144
+ payment_schedule?: any[] | undefined;
1145
+ remarks?: string | undefined;
1146
+ company_tax_id?: string | undefined;
1147
+ pos_profile?: string | undefined;
1148
+ named_place?: string | undefined;
1149
+ coupon_code?: string | undefined;
1150
+ additional_discount_account?: string | undefined;
1151
+ timesheets?: any[] | undefined;
1152
+ total_billing_hours?: number | undefined;
1153
+ total_billing_amount?: number | undefined;
1154
+ cash_bank_account?: string | undefined;
1155
+ payments?: {
1156
+ amount: number;
1157
+ mode_of_payment: string;
1158
+ account?: string | undefined;
1159
+ base_amount?: number | undefined;
1160
+ reference_no?: string | undefined;
1161
+ clearance_date?: string | undefined;
1162
+ }[] | undefined;
1163
+ base_change_amount?: number | undefined;
1164
+ change_amount?: number | undefined;
1165
+ account_for_change_amount?: string | undefined;
1166
+ write_off_account?: string | undefined;
1167
+ write_off_cost_center?: string | undefined;
1168
+ loyalty_points?: number | undefined;
1169
+ loyalty_amount?: number | undefined;
1170
+ loyalty_program?: string | undefined;
1171
+ loyalty_redemption_account?: string | undefined;
1172
+ loyalty_redemption_cost_center?: string | undefined;
1173
+ unrealized_profit_loss_account?: string | undefined;
1174
+ against_income_account?: string | undefined;
1175
+ subscription?: string | undefined;
1176
+ from_date?: string | undefined;
1177
+ to_date?: string | undefined;
1178
+ update_auto_repeat_reference?: string | undefined;
1179
+ inter_company_invoice_reference?: string | undefined;
1180
+ }>;
1181
+ updateById: <TInput extends TInputModel extends undefined ? Partial<{
1182
+ company: string;
1183
+ customer: string;
1184
+ posting_date: string;
1185
+ currency: string;
1186
+ selling_price_list: string;
1187
+ items: {
1188
+ item_code: string;
1189
+ item_name: string;
1190
+ qty: number;
1191
+ uom: string;
1192
+ rate: number;
1193
+ income_account: string;
1194
+ description?: string | undefined;
1195
+ brand?: string | undefined;
1196
+ image?: string | undefined;
1197
+ barcode?: string | undefined;
1198
+ customer_item_code?: string | undefined;
1199
+ item_group?: string | undefined;
1200
+ stock_uom?: string | undefined;
1201
+ conversion_factor?: number | undefined;
1202
+ stock_qty?: number | undefined;
1203
+ price_list_rate?: number | undefined;
1204
+ base_price_list_rate?: number | undefined;
1205
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
1206
+ margin_rate_or_amount?: number | undefined;
1207
+ rate_with_margin?: number | undefined;
1208
+ discount_percentage?: number | undefined;
1209
+ discount_amount?: number | undefined;
1210
+ base_rate_with_margin?: number | undefined;
1211
+ amount?: number | undefined;
1212
+ base_rate?: number | undefined;
1213
+ base_amount?: number | undefined;
1214
+ pricing_rules?: string | undefined;
1215
+ stock_uom_rate?: number | undefined;
1216
+ is_free_item?: 0 | 1 | undefined;
1217
+ grant_commission?: 0 | 1 | undefined;
1218
+ net_rate?: number | undefined;
1219
+ net_amount?: number | undefined;
1220
+ item_tax_template?: string | undefined;
1221
+ base_net_rate?: number | undefined;
1222
+ base_net_amount?: number | undefined;
1223
+ incoming_rate?: number | undefined;
1224
+ weight_per_unit?: number | undefined;
1225
+ total_weight?: number | undefined;
1226
+ weight_uom?: string | undefined;
1227
+ warehouse?: string | undefined;
1228
+ target_warehouse?: string | undefined;
1229
+ quality_inspection?: string | undefined;
1230
+ so_detail?: string | undefined;
1231
+ dn_detail?: string | undefined;
1232
+ batch_no?: string | undefined;
1233
+ serial_no?: string | undefined;
1234
+ actual_batch_qty?: number | undefined;
1235
+ actual_qty?: number | undefined;
1236
+ item_tax_rate?: string | undefined;
1237
+ expense_account?: string | undefined;
1238
+ allow_zero_valuation_rate?: 0 | 1 | undefined;
1239
+ cost_center?: string | undefined;
1240
+ project?: string | undefined;
1241
+ page_break?: 0 | 1 | undefined;
1242
+ is_fixed_asset?: 0 | 1 | undefined;
1243
+ delivered_by_supplier?: 0 | 1 | undefined;
1244
+ enable_deferred_revenue?: 0 | 1 | undefined;
1245
+ purchase_order?: string | undefined;
1246
+ purchase_order_item?: string | undefined;
1247
+ has_item_scanned?: 0 | 1 | undefined;
1248
+ sales_order?: string | undefined;
1249
+ delivery_note?: string | undefined;
1250
+ delivered_qty?: number | undefined;
1251
+ sales_invoice_item?: string | undefined;
1252
+ discount_account?: string | undefined;
1253
+ deferred_revenue_account?: string | undefined;
1254
+ service_start_date?: string | undefined;
1255
+ service_stop_date?: string | undefined;
1256
+ service_end_date?: string | undefined;
1257
+ asset?: string | undefined;
1258
+ finance_book?: string | undefined;
1259
+ use_serial_batch_fields?: 0 | 1 | undefined;
1260
+ serial_and_batch_bundle?: string | undefined;
1261
+ }[];
1262
+ custom_invoice_no: string;
1263
+ debit_to: string;
1264
+ status?: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer" | undefined;
1265
+ amended_from?: string | undefined;
1266
+ tax_category?: string | undefined;
1267
+ naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
1268
+ language?: string | undefined;
1269
+ discount_amount?: number | undefined;
1270
+ pricing_rules?: any[] | undefined;
1271
+ cost_center?: string | undefined;
1272
+ project?: string | undefined;
1273
+ title?: string | undefined;
1274
+ customer_name?: string | undefined;
1275
+ posting_time?: string | undefined;
1276
+ set_posting_time?: 0 | 1 | undefined;
1277
+ is_return?: 0 | 1 | undefined;
1278
+ return_against?: string | undefined;
1279
+ po_no?: string | undefined;
1280
+ po_date?: string | undefined;
1281
+ shipping_address_name?: string | undefined;
1282
+ shipping_address?: string | undefined;
1283
+ dispatch_address_name?: string | undefined;
1284
+ dispatch_address?: string | undefined;
1285
+ contact_person?: string | undefined;
1286
+ contact_display?: string | undefined;
1287
+ contact_mobile?: string | undefined;
1288
+ contact_email?: string | undefined;
1289
+ customer_address?: string | undefined;
1290
+ tax_id?: string | undefined;
1291
+ address_display?: string | undefined;
1292
+ company_address?: string | undefined;
1293
+ company_address_display?: string | undefined;
1294
+ conversion_rate?: number | undefined;
1295
+ price_list_currency?: string | undefined;
1296
+ plc_conversion_rate?: number | undefined;
1297
+ ignore_pricing_rule?: 0 | 1 | undefined;
1298
+ set_warehouse?: string | undefined;
1299
+ set_target_warehouse?: string | undefined;
1300
+ scan_barcode?: string | undefined;
1301
+ total_qty?: number | undefined;
1302
+ base_total?: number | undefined;
1303
+ base_net_total?: number | undefined;
1304
+ total_net_weight?: number | undefined;
1305
+ total?: number | undefined;
1306
+ net_total?: number | undefined;
1307
+ shipping_rule?: string | undefined;
1308
+ incoterm?: string | undefined;
1309
+ taxes_and_charges?: string | undefined;
1310
+ other_charges_calculation?: string | undefined;
1311
+ base_total_taxes_and_charges?: number | undefined;
1312
+ total_taxes_and_charges?: number | undefined;
1313
+ apply_discount_on?: "" | "Grand Total" | "Net Total" | undefined;
1314
+ base_discount_amount?: number | undefined;
1315
+ additional_discount_percentage?: number | undefined;
1316
+ base_grand_total?: number | undefined;
1317
+ base_rounding_adjustment?: number | undefined;
1318
+ base_rounded_total?: number | undefined;
1319
+ base_in_words?: string | undefined;
1320
+ grand_total?: number | undefined;
1321
+ rounding_adjustment?: number | undefined;
1322
+ rounded_total?: number | undefined;
1323
+ in_words?: string | undefined;
1324
+ disable_rounded_total?: 0 | 1 | undefined;
1325
+ tc_name?: string | undefined;
1326
+ terms?: string | undefined;
1327
+ campaign?: string | undefined;
1328
+ source?: string | undefined;
1329
+ is_internal_customer?: 0 | 1 | undefined;
1330
+ represents_company?: string | undefined;
1331
+ customer_group?: string | undefined;
1332
+ territory?: string | undefined;
1333
+ letter_head?: string | undefined;
1334
+ select_print_heading?: string | undefined;
1335
+ group_same_items?: 0 | 1 | undefined;
1336
+ auto_repeat?: string | undefined;
1337
+ sales_partner?: string | undefined;
1338
+ amount_eligible_for_commission?: number | undefined;
1339
+ commission_rate?: number | undefined;
1340
+ total_commission?: number | undefined;
1341
+ packed_items?: any[] | undefined;
1342
+ taxes?: {
1343
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1344
+ included_in_print_rate: 0 | 1;
1345
+ account_head: string;
1346
+ description?: string | undefined;
1347
+ rate?: number | undefined;
1348
+ cost_center?: string | undefined;
1349
+ project?: string | undefined;
1350
+ base_total?: number | undefined;
1351
+ total?: number | undefined;
1352
+ account_currency?: string | undefined;
1353
+ tax_amount?: number | undefined;
1354
+ tax_amount_after_discount_amount?: number | undefined;
1355
+ base_tax_amount?: number | undefined;
1356
+ }[] | undefined;
1357
+ sales_team?: any[] | undefined;
1358
+ due_date?: string | undefined;
1359
+ paid_amount?: number | undefined;
1360
+ update_stock?: 0 | 1 | undefined;
1361
+ total_advance?: number | undefined;
1362
+ outstanding_amount?: number | undefined;
1363
+ base_paid_amount?: number | undefined;
1364
+ write_off_amount?: number | undefined;
1365
+ base_write_off_amount?: number | undefined;
1366
+ allocate_advances_automatically?: 0 | 1 | undefined;
1367
+ payment_terms_template?: string | undefined;
1368
+ ignore_default_payment_terms_template?: 0 | 1 | undefined;
1369
+ party_account_currency?: string | undefined;
1370
+ is_opening?: "No" | "Yes" | undefined;
1371
+ advances?: {
1372
+ doctype: "Sales Invoice Advance";
1373
+ reference_type: string;
1374
+ reference_name: string;
1375
+ advance_amount: number;
1376
+ remarks?: string | undefined;
1377
+ reference_row?: string | undefined;
1378
+ allocated_amount?: number | undefined;
1379
+ }[] | undefined;
1380
+ payment_schedule?: any[] | undefined;
1381
+ remarks?: string | undefined;
1382
+ company_tax_id?: string | undefined;
1383
+ is_pos?: 0 | 1 | undefined;
1384
+ pos_profile?: string | undefined;
1385
+ is_debit_note?: 0 | 1 | undefined;
1386
+ update_outstanding_for_self?: 0 | 1 | undefined;
1387
+ update_billed_amount_in_sales_order?: 0 | 1 | undefined;
1388
+ update_billed_amount_in_delivery_note?: 0 | 1 | undefined;
1389
+ is_consolidated?: 0 | 1 | undefined;
1390
+ named_place?: string | undefined;
1391
+ use_company_roundoff_cost_center?: 0 | 1 | undefined;
1392
+ coupon_code?: string | undefined;
1393
+ is_cash_or_non_trade_discount?: 0 | 1 | undefined;
1394
+ additional_discount_account?: string | undefined;
1395
+ timesheets?: any[] | undefined;
1396
+ total_billing_hours?: number | undefined;
1397
+ total_billing_amount?: number | undefined;
1398
+ cash_bank_account?: string | undefined;
1399
+ payments?: {
1400
+ amount: number;
1401
+ mode_of_payment: string;
1402
+ account?: string | undefined;
1403
+ base_amount?: number | undefined;
1404
+ reference_no?: string | undefined;
1405
+ clearance_date?: string | undefined;
1406
+ }[] | undefined;
1407
+ base_change_amount?: number | undefined;
1408
+ change_amount?: number | undefined;
1409
+ account_for_change_amount?: string | undefined;
1410
+ only_include_allocated_payments?: 0 | 1 | undefined;
1411
+ write_off_outstanding_amount_automatically?: 0 | 1 | undefined;
1412
+ write_off_account?: string | undefined;
1413
+ write_off_cost_center?: string | undefined;
1414
+ redeem_loyalty_points?: 0 | 1 | undefined;
1415
+ loyalty_points?: number | undefined;
1416
+ loyalty_amount?: number | undefined;
1417
+ loyalty_program?: string | undefined;
1418
+ dont_create_loyalty_points?: 0 | 1 | undefined;
1419
+ loyalty_redemption_account?: string | undefined;
1420
+ loyalty_redemption_cost_center?: string | undefined;
1421
+ unrealized_profit_loss_account?: string | undefined;
1422
+ against_income_account?: string | undefined;
1423
+ subscription?: string | undefined;
1424
+ from_date?: string | undefined;
1425
+ to_date?: string | undefined;
1426
+ update_auto_repeat_reference?: string | undefined;
1427
+ is_discounted?: 0 | 1 | undefined;
1428
+ inter_company_invoice_reference?: string | undefined;
1429
+ repost_required?: 0 | 1 | undefined;
1430
+ }> : TInputModel extends import("zod").ZodTypeAny ? import("zod").TypeOf<TInputModel> : any, TInputModel extends import("zod").ZodTypeAny | undefined = undefined>({ resourceId, inputValidationModel, body, priority, }: {
1431
+ resourceId: string;
1432
+ inputValidationModel?: TInputModel;
1433
+ priority?: number;
1434
+ body: TInput;
1435
+ }) => Promise<{
1436
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
1437
+ name: string;
1438
+ owner: string;
1439
+ creation: string;
1440
+ modified: string;
1441
+ modified_by: string;
1442
+ idx: number;
1443
+ docstatus: number;
1444
+ doctype: string;
1445
+ company: string;
1446
+ naming_series: "INV-.#" | "INV-.#-GS";
1447
+ customer: string;
1448
+ posting_date: string;
1449
+ set_posting_time: 0 | 1;
1450
+ is_return: 0 | 1;
1451
+ currency: string;
1452
+ conversion_rate: number;
1453
+ selling_price_list: string;
1454
+ plc_conversion_rate: number;
1455
+ ignore_pricing_rule: 0 | 1;
1456
+ apply_discount_on: "" | "Grand Total" | "Net Total";
1457
+ disable_rounded_total: 0 | 1;
1458
+ is_internal_customer: 0 | 1;
1459
+ group_same_items: 0 | 1;
1460
+ items: {
1461
+ name: string;
1462
+ owner: string;
1463
+ creation: string;
1464
+ modified: string;
1465
+ modified_by: string;
1466
+ idx: number;
1467
+ docstatus: number;
1468
+ doctype: string;
1469
+ parenttype: string;
1470
+ parentfield: string;
1471
+ item_code: string;
1472
+ item_name: string;
1473
+ qty: number;
1474
+ uom: string;
1475
+ rate: number;
1476
+ is_free_item: 0 | 1;
1477
+ grant_commission: 0 | 1;
1478
+ allow_zero_valuation_rate: 0 | 1;
1479
+ page_break: 0 | 1;
1480
+ is_fixed_asset: 0 | 1;
1481
+ delivered_by_supplier: 0 | 1;
1482
+ enable_deferred_revenue: 0 | 1;
1483
+ has_item_scanned: 0 | 1;
1484
+ income_account: string;
1485
+ use_serial_batch_fields: 0 | 1;
1486
+ _user_tags?: string | undefined;
1487
+ description?: string | undefined;
1488
+ brand?: string | undefined;
1489
+ image?: string | undefined;
1490
+ barcode?: string | undefined;
1491
+ customer_item_code?: string | undefined;
1492
+ item_group?: string | undefined;
1493
+ stock_uom?: string | undefined;
1494
+ conversion_factor?: number | undefined;
1495
+ stock_qty?: number | undefined;
1496
+ price_list_rate?: number | undefined;
1497
+ base_price_list_rate?: number | undefined;
1498
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
1499
+ margin_rate_or_amount?: number | undefined;
1500
+ rate_with_margin?: number | undefined;
1501
+ discount_percentage?: number | undefined;
1502
+ discount_amount?: number | undefined;
1503
+ base_rate_with_margin?: number | undefined;
1504
+ amount?: number | undefined;
1505
+ base_rate?: number | undefined;
1506
+ base_amount?: number | undefined;
1507
+ pricing_rules?: string | undefined;
1508
+ stock_uom_rate?: number | undefined;
1509
+ net_rate?: number | undefined;
1510
+ net_amount?: number | undefined;
1511
+ item_tax_template?: string | undefined;
1512
+ base_net_rate?: number | undefined;
1513
+ base_net_amount?: number | undefined;
1514
+ incoming_rate?: number | undefined;
1515
+ weight_per_unit?: number | undefined;
1516
+ total_weight?: number | undefined;
1517
+ weight_uom?: string | undefined;
1518
+ warehouse?: string | undefined;
1519
+ target_warehouse?: string | undefined;
1520
+ quality_inspection?: string | undefined;
1521
+ so_detail?: string | undefined;
1522
+ dn_detail?: string | undefined;
1523
+ batch_no?: string | undefined;
1524
+ serial_no?: string | undefined;
1525
+ actual_batch_qty?: number | undefined;
1526
+ actual_qty?: number | undefined;
1527
+ item_tax_rate?: string | undefined;
1528
+ expense_account?: string | undefined;
1529
+ cost_center?: string | undefined;
1530
+ project?: string | undefined;
1531
+ purchase_order?: string | undefined;
1532
+ purchase_order_item?: string | undefined;
1533
+ sales_order?: string | undefined;
1534
+ delivery_note?: string | undefined;
1535
+ delivered_qty?: number | undefined;
1536
+ sales_invoice_item?: string | undefined;
1537
+ discount_account?: string | undefined;
1538
+ deferred_revenue_account?: string | undefined;
1539
+ service_start_date?: string | undefined;
1540
+ service_stop_date?: string | undefined;
1541
+ service_end_date?: string | undefined;
1542
+ asset?: string | undefined;
1543
+ finance_book?: string | undefined;
1544
+ serial_and_batch_bundle?: string | undefined;
1545
+ }[];
1546
+ update_stock: 0 | 1;
1547
+ allocate_advances_automatically: 0 | 1;
1548
+ ignore_default_payment_terms_template: 0 | 1;
1549
+ is_opening: "No" | "Yes";
1550
+ custom_invoice_no: string;
1551
+ is_pos: 0 | 1;
1552
+ is_debit_note: 0 | 1;
1553
+ update_outstanding_for_self: 0 | 1;
1554
+ update_billed_amount_in_sales_order: 0 | 1;
1555
+ update_billed_amount_in_delivery_note: 0 | 1;
1556
+ is_consolidated: 0 | 1;
1557
+ use_company_roundoff_cost_center: 0 | 1;
1558
+ is_cash_or_non_trade_discount: 0 | 1;
1559
+ only_include_allocated_payments: 0 | 1;
1560
+ write_off_outstanding_amount_automatically: 0 | 1;
1561
+ redeem_loyalty_points: 0 | 1;
1562
+ dont_create_loyalty_points: 0 | 1;
1563
+ debit_to: string;
1564
+ is_discounted: 0 | 1;
1565
+ repost_required: 0 | 1;
1566
+ amended_from?: string | undefined;
1567
+ _user_tags?: string | undefined;
1568
+ tax_category?: string | undefined;
1569
+ language?: string | undefined;
1570
+ discount_amount?: number | undefined;
1571
+ pricing_rules?: any[] | undefined;
1572
+ cost_center?: string | undefined;
1573
+ project?: string | undefined;
1574
+ title?: string | undefined;
1575
+ customer_name?: string | undefined;
1576
+ posting_time?: string | undefined;
1577
+ return_against?: string | undefined;
1578
+ po_no?: string | undefined;
1579
+ po_date?: string | undefined;
1580
+ shipping_address_name?: string | undefined;
1581
+ shipping_address?: string | undefined;
1582
+ dispatch_address_name?: string | undefined;
1583
+ dispatch_address?: string | undefined;
1584
+ contact_person?: string | undefined;
1585
+ contact_display?: string | undefined;
1586
+ contact_mobile?: string | undefined;
1587
+ contact_email?: string | undefined;
1588
+ customer_address?: string | undefined;
1589
+ tax_id?: string | undefined;
1590
+ address_display?: string | undefined;
1591
+ company_address?: string | undefined;
1592
+ company_address_display?: string | undefined;
1593
+ price_list_currency?: string | undefined;
1594
+ set_warehouse?: string | undefined;
1595
+ set_target_warehouse?: string | undefined;
1596
+ scan_barcode?: string | undefined;
1597
+ total_qty?: number | undefined;
1598
+ base_total?: number | undefined;
1599
+ base_net_total?: number | undefined;
1600
+ total_net_weight?: number | undefined;
1601
+ total?: number | undefined;
1602
+ net_total?: number | undefined;
1603
+ shipping_rule?: string | undefined;
1604
+ incoterm?: string | undefined;
1605
+ taxes_and_charges?: string | undefined;
1606
+ other_charges_calculation?: string | undefined;
1607
+ base_total_taxes_and_charges?: number | undefined;
1608
+ total_taxes_and_charges?: number | undefined;
1609
+ base_discount_amount?: number | undefined;
1610
+ additional_discount_percentage?: number | undefined;
1611
+ base_grand_total?: number | undefined;
1612
+ base_rounding_adjustment?: number | undefined;
1613
+ base_rounded_total?: number | undefined;
1614
+ base_in_words?: string | undefined;
1615
+ grand_total?: number | undefined;
1616
+ rounding_adjustment?: number | undefined;
1617
+ rounded_total?: number | undefined;
1618
+ in_words?: string | undefined;
1619
+ tc_name?: string | undefined;
1620
+ terms?: string | undefined;
1621
+ campaign?: string | undefined;
1622
+ source?: string | undefined;
1623
+ represents_company?: string | undefined;
1624
+ customer_group?: string | undefined;
1625
+ territory?: string | undefined;
1626
+ letter_head?: string | undefined;
1627
+ select_print_heading?: string | undefined;
1628
+ auto_repeat?: string | undefined;
1629
+ sales_partner?: string | undefined;
1630
+ amount_eligible_for_commission?: number | undefined;
1631
+ commission_rate?: number | undefined;
1632
+ total_commission?: number | undefined;
1633
+ packed_items?: any[] | undefined;
1634
+ taxes?: {
1635
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1636
+ included_in_print_rate: 0 | 1;
1637
+ account_head: string;
1638
+ description?: string | undefined;
1639
+ rate?: number | undefined;
1640
+ cost_center?: string | undefined;
1641
+ project?: string | undefined;
1642
+ base_total?: number | undefined;
1643
+ total?: number | undefined;
1644
+ account_currency?: string | undefined;
1645
+ tax_amount?: number | undefined;
1646
+ tax_amount_after_discount_amount?: number | undefined;
1647
+ base_tax_amount?: number | undefined;
1648
+ }[] | undefined;
1649
+ sales_team?: any[] | undefined;
1650
+ due_date?: string | undefined;
1651
+ paid_amount?: number | undefined;
1652
+ total_advance?: number | undefined;
1653
+ outstanding_amount?: number | undefined;
1654
+ base_paid_amount?: number | undefined;
1655
+ write_off_amount?: number | undefined;
1656
+ base_write_off_amount?: number | undefined;
1657
+ payment_terms_template?: string | undefined;
1658
+ party_account_currency?: string | undefined;
1659
+ advances?: {
1660
+ doctype: "Sales Invoice Advance";
1661
+ reference_type: string;
1662
+ reference_name: string;
1663
+ advance_amount: number;
1664
+ remarks?: string | undefined;
1665
+ reference_row?: string | undefined;
1666
+ allocated_amount?: number | undefined;
1667
+ }[] | undefined;
1668
+ payment_schedule?: any[] | undefined;
1669
+ remarks?: string | undefined;
1670
+ company_tax_id?: string | undefined;
1671
+ pos_profile?: string | undefined;
1672
+ named_place?: string | undefined;
1673
+ coupon_code?: string | undefined;
1674
+ additional_discount_account?: string | undefined;
1675
+ timesheets?: any[] | undefined;
1676
+ total_billing_hours?: number | undefined;
1677
+ total_billing_amount?: number | undefined;
1678
+ cash_bank_account?: string | undefined;
1679
+ payments?: {
1680
+ amount: number;
1681
+ mode_of_payment: string;
1682
+ account?: string | undefined;
1683
+ base_amount?: number | undefined;
1684
+ reference_no?: string | undefined;
1685
+ clearance_date?: string | undefined;
1686
+ }[] | undefined;
1687
+ base_change_amount?: number | undefined;
1688
+ change_amount?: number | undefined;
1689
+ account_for_change_amount?: string | undefined;
1690
+ write_off_account?: string | undefined;
1691
+ write_off_cost_center?: string | undefined;
1692
+ loyalty_points?: number | undefined;
1693
+ loyalty_amount?: number | undefined;
1694
+ loyalty_program?: string | undefined;
1695
+ loyalty_redemption_account?: string | undefined;
1696
+ loyalty_redemption_cost_center?: string | undefined;
1697
+ unrealized_profit_loss_account?: string | undefined;
1698
+ against_income_account?: string | undefined;
1699
+ subscription?: string | undefined;
1700
+ from_date?: string | undefined;
1701
+ to_date?: string | undefined;
1702
+ update_auto_repeat_reference?: string | undefined;
1703
+ inter_company_invoice_reference?: string | undefined;
1704
+ }>;
1705
+ deleteById: ({ resourceId, priority, }: {
1706
+ resourceId: string;
1707
+ priority?: number;
1708
+ }) => Promise<import("zod").TypeOf<typeof import("../model/ERPNextResponse").DeleteResponseModel>>;
1709
+ cancel: ({ resourceId }: {
1710
+ resourceId: string;
1711
+ }) => Promise<{
1712
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
1713
+ name: string;
1714
+ owner: string;
1715
+ creation: string;
1716
+ modified: string;
1717
+ modified_by: string;
1718
+ idx: number;
1719
+ docstatus: number;
1720
+ doctype: string;
1721
+ company: string;
1722
+ naming_series: "INV-.#" | "INV-.#-GS";
1723
+ customer: string;
1724
+ posting_date: string;
1725
+ set_posting_time: 0 | 1;
1726
+ is_return: 0 | 1;
1727
+ currency: string;
1728
+ conversion_rate: number;
1729
+ selling_price_list: string;
1730
+ plc_conversion_rate: number;
1731
+ ignore_pricing_rule: 0 | 1;
1732
+ apply_discount_on: "" | "Grand Total" | "Net Total";
1733
+ disable_rounded_total: 0 | 1;
1734
+ is_internal_customer: 0 | 1;
1735
+ group_same_items: 0 | 1;
1736
+ items: {
1737
+ name: string;
1738
+ owner: string;
1739
+ creation: string;
1740
+ modified: string;
1741
+ modified_by: string;
1742
+ idx: number;
1743
+ docstatus: number;
1744
+ doctype: string;
1745
+ parenttype: string;
1746
+ parentfield: string;
1747
+ item_code: string;
1748
+ item_name: string;
1749
+ qty: number;
1750
+ uom: string;
1751
+ rate: number;
1752
+ is_free_item: 0 | 1;
1753
+ grant_commission: 0 | 1;
1754
+ allow_zero_valuation_rate: 0 | 1;
1755
+ page_break: 0 | 1;
1756
+ is_fixed_asset: 0 | 1;
1757
+ delivered_by_supplier: 0 | 1;
1758
+ enable_deferred_revenue: 0 | 1;
1759
+ has_item_scanned: 0 | 1;
1760
+ income_account: string;
1761
+ use_serial_batch_fields: 0 | 1;
1762
+ _user_tags?: string | undefined;
1763
+ description?: string | undefined;
1764
+ brand?: string | undefined;
1765
+ image?: string | undefined;
1766
+ barcode?: string | undefined;
1767
+ customer_item_code?: string | undefined;
1768
+ item_group?: string | undefined;
1769
+ stock_uom?: string | undefined;
1770
+ conversion_factor?: number | undefined;
1771
+ stock_qty?: number | undefined;
1772
+ price_list_rate?: number | undefined;
1773
+ base_price_list_rate?: number | undefined;
1774
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
1775
+ margin_rate_or_amount?: number | undefined;
1776
+ rate_with_margin?: number | undefined;
1777
+ discount_percentage?: number | undefined;
1778
+ discount_amount?: number | undefined;
1779
+ base_rate_with_margin?: number | undefined;
1780
+ amount?: number | undefined;
1781
+ base_rate?: number | undefined;
1782
+ base_amount?: number | undefined;
1783
+ pricing_rules?: string | undefined;
1784
+ stock_uom_rate?: number | undefined;
1785
+ net_rate?: number | undefined;
1786
+ net_amount?: number | undefined;
1787
+ item_tax_template?: string | undefined;
1788
+ base_net_rate?: number | undefined;
1789
+ base_net_amount?: number | undefined;
1790
+ incoming_rate?: number | undefined;
1791
+ weight_per_unit?: number | undefined;
1792
+ total_weight?: number | undefined;
1793
+ weight_uom?: string | undefined;
1794
+ warehouse?: string | undefined;
1795
+ target_warehouse?: string | undefined;
1796
+ quality_inspection?: string | undefined;
1797
+ so_detail?: string | undefined;
1798
+ dn_detail?: string | undefined;
1799
+ batch_no?: string | undefined;
1800
+ serial_no?: string | undefined;
1801
+ actual_batch_qty?: number | undefined;
1802
+ actual_qty?: number | undefined;
1803
+ item_tax_rate?: string | undefined;
1804
+ expense_account?: string | undefined;
1805
+ cost_center?: string | undefined;
1806
+ project?: string | undefined;
1807
+ purchase_order?: string | undefined;
1808
+ purchase_order_item?: string | undefined;
1809
+ sales_order?: string | undefined;
1810
+ delivery_note?: string | undefined;
1811
+ delivered_qty?: number | undefined;
1812
+ sales_invoice_item?: string | undefined;
1813
+ discount_account?: string | undefined;
1814
+ deferred_revenue_account?: string | undefined;
1815
+ service_start_date?: string | undefined;
1816
+ service_stop_date?: string | undefined;
1817
+ service_end_date?: string | undefined;
1818
+ asset?: string | undefined;
1819
+ finance_book?: string | undefined;
1820
+ serial_and_batch_bundle?: string | undefined;
1821
+ }[];
1822
+ update_stock: 0 | 1;
1823
+ allocate_advances_automatically: 0 | 1;
1824
+ ignore_default_payment_terms_template: 0 | 1;
1825
+ is_opening: "No" | "Yes";
1826
+ custom_invoice_no: string;
1827
+ is_pos: 0 | 1;
1828
+ is_debit_note: 0 | 1;
1829
+ update_outstanding_for_self: 0 | 1;
1830
+ update_billed_amount_in_sales_order: 0 | 1;
1831
+ update_billed_amount_in_delivery_note: 0 | 1;
1832
+ is_consolidated: 0 | 1;
1833
+ use_company_roundoff_cost_center: 0 | 1;
1834
+ is_cash_or_non_trade_discount: 0 | 1;
1835
+ only_include_allocated_payments: 0 | 1;
1836
+ write_off_outstanding_amount_automatically: 0 | 1;
1837
+ redeem_loyalty_points: 0 | 1;
1838
+ dont_create_loyalty_points: 0 | 1;
1839
+ debit_to: string;
1840
+ is_discounted: 0 | 1;
1841
+ repost_required: 0 | 1;
1842
+ amended_from?: string | undefined;
1843
+ _user_tags?: string | undefined;
1844
+ tax_category?: string | undefined;
1845
+ language?: string | undefined;
1846
+ discount_amount?: number | undefined;
1847
+ pricing_rules?: any[] | undefined;
1848
+ cost_center?: string | undefined;
1849
+ project?: string | undefined;
1850
+ title?: string | undefined;
1851
+ customer_name?: string | undefined;
1852
+ posting_time?: string | undefined;
1853
+ return_against?: string | undefined;
1854
+ po_no?: string | undefined;
1855
+ po_date?: string | undefined;
1856
+ shipping_address_name?: string | undefined;
1857
+ shipping_address?: string | undefined;
1858
+ dispatch_address_name?: string | undefined;
1859
+ dispatch_address?: string | undefined;
1860
+ contact_person?: string | undefined;
1861
+ contact_display?: string | undefined;
1862
+ contact_mobile?: string | undefined;
1863
+ contact_email?: string | undefined;
1864
+ customer_address?: string | undefined;
1865
+ tax_id?: string | undefined;
1866
+ address_display?: string | undefined;
1867
+ company_address?: string | undefined;
1868
+ company_address_display?: string | undefined;
1869
+ price_list_currency?: string | undefined;
1870
+ set_warehouse?: string | undefined;
1871
+ set_target_warehouse?: string | undefined;
1872
+ scan_barcode?: string | undefined;
1873
+ total_qty?: number | undefined;
1874
+ base_total?: number | undefined;
1875
+ base_net_total?: number | undefined;
1876
+ total_net_weight?: number | undefined;
1877
+ total?: number | undefined;
1878
+ net_total?: number | undefined;
1879
+ shipping_rule?: string | undefined;
1880
+ incoterm?: string | undefined;
1881
+ taxes_and_charges?: string | undefined;
1882
+ other_charges_calculation?: string | undefined;
1883
+ base_total_taxes_and_charges?: number | undefined;
1884
+ total_taxes_and_charges?: number | undefined;
1885
+ base_discount_amount?: number | undefined;
1886
+ additional_discount_percentage?: number | undefined;
1887
+ base_grand_total?: number | undefined;
1888
+ base_rounding_adjustment?: number | undefined;
1889
+ base_rounded_total?: number | undefined;
1890
+ base_in_words?: string | undefined;
1891
+ grand_total?: number | undefined;
1892
+ rounding_adjustment?: number | undefined;
1893
+ rounded_total?: number | undefined;
1894
+ in_words?: string | undefined;
1895
+ tc_name?: string | undefined;
1896
+ terms?: string | undefined;
1897
+ campaign?: string | undefined;
1898
+ source?: string | undefined;
1899
+ represents_company?: string | undefined;
1900
+ customer_group?: string | undefined;
1901
+ territory?: string | undefined;
1902
+ letter_head?: string | undefined;
1903
+ select_print_heading?: string | undefined;
1904
+ auto_repeat?: string | undefined;
1905
+ sales_partner?: string | undefined;
1906
+ amount_eligible_for_commission?: number | undefined;
1907
+ commission_rate?: number | undefined;
1908
+ total_commission?: number | undefined;
1909
+ packed_items?: any[] | undefined;
1910
+ taxes?: {
1911
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
1912
+ included_in_print_rate: 0 | 1;
1913
+ account_head: string;
1914
+ description?: string | undefined;
1915
+ rate?: number | undefined;
1916
+ cost_center?: string | undefined;
1917
+ project?: string | undefined;
1918
+ base_total?: number | undefined;
1919
+ total?: number | undefined;
1920
+ account_currency?: string | undefined;
1921
+ tax_amount?: number | undefined;
1922
+ tax_amount_after_discount_amount?: number | undefined;
1923
+ base_tax_amount?: number | undefined;
1924
+ }[] | undefined;
1925
+ sales_team?: any[] | undefined;
1926
+ due_date?: string | undefined;
1927
+ paid_amount?: number | undefined;
1928
+ total_advance?: number | undefined;
1929
+ outstanding_amount?: number | undefined;
1930
+ base_paid_amount?: number | undefined;
1931
+ write_off_amount?: number | undefined;
1932
+ base_write_off_amount?: number | undefined;
1933
+ payment_terms_template?: string | undefined;
1934
+ party_account_currency?: string | undefined;
1935
+ advances?: {
1936
+ doctype: "Sales Invoice Advance";
1937
+ reference_type: string;
1938
+ reference_name: string;
1939
+ advance_amount: number;
1940
+ remarks?: string | undefined;
1941
+ reference_row?: string | undefined;
1942
+ allocated_amount?: number | undefined;
1943
+ }[] | undefined;
1944
+ payment_schedule?: any[] | undefined;
1945
+ remarks?: string | undefined;
1946
+ company_tax_id?: string | undefined;
1947
+ pos_profile?: string | undefined;
1948
+ named_place?: string | undefined;
1949
+ coupon_code?: string | undefined;
1950
+ additional_discount_account?: string | undefined;
1951
+ timesheets?: any[] | undefined;
1952
+ total_billing_hours?: number | undefined;
1953
+ total_billing_amount?: number | undefined;
1954
+ cash_bank_account?: string | undefined;
1955
+ payments?: {
1956
+ amount: number;
1957
+ mode_of_payment: string;
1958
+ account?: string | undefined;
1959
+ base_amount?: number | undefined;
1960
+ reference_no?: string | undefined;
1961
+ clearance_date?: string | undefined;
1962
+ }[] | undefined;
1963
+ base_change_amount?: number | undefined;
1964
+ change_amount?: number | undefined;
1965
+ account_for_change_amount?: string | undefined;
1966
+ write_off_account?: string | undefined;
1967
+ write_off_cost_center?: string | undefined;
1968
+ loyalty_points?: number | undefined;
1969
+ loyalty_amount?: number | undefined;
1970
+ loyalty_program?: string | undefined;
1971
+ loyalty_redemption_account?: string | undefined;
1972
+ loyalty_redemption_cost_center?: string | undefined;
1973
+ unrealized_profit_loss_account?: string | undefined;
1974
+ against_income_account?: string | undefined;
1975
+ subscription?: string | undefined;
1976
+ from_date?: string | undefined;
1977
+ to_date?: string | undefined;
1978
+ update_auto_repeat_reference?: string | undefined;
1979
+ inter_company_invoice_reference?: string | undefined;
1980
+ }>;
1981
+ submit: ({ resourceId }: {
1982
+ resourceId: string;
1983
+ }) => Promise<{
1984
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
1985
+ name: string;
1986
+ owner: string;
1987
+ creation: string;
1988
+ modified: string;
1989
+ modified_by: string;
1990
+ idx: number;
1991
+ docstatus: number;
1992
+ doctype: string;
1993
+ company: string;
1994
+ naming_series: "INV-.#" | "INV-.#-GS";
1995
+ customer: string;
1996
+ posting_date: string;
1997
+ set_posting_time: 0 | 1;
1998
+ is_return: 0 | 1;
1999
+ currency: string;
2000
+ conversion_rate: number;
2001
+ selling_price_list: string;
2002
+ plc_conversion_rate: number;
2003
+ ignore_pricing_rule: 0 | 1;
2004
+ apply_discount_on: "" | "Grand Total" | "Net Total";
2005
+ disable_rounded_total: 0 | 1;
2006
+ is_internal_customer: 0 | 1;
2007
+ group_same_items: 0 | 1;
2008
+ items: {
2009
+ name: string;
2010
+ owner: string;
2011
+ creation: string;
2012
+ modified: string;
2013
+ modified_by: string;
2014
+ idx: number;
2015
+ docstatus: number;
2016
+ doctype: string;
2017
+ parenttype: string;
2018
+ parentfield: string;
2019
+ item_code: string;
2020
+ item_name: string;
2021
+ qty: number;
2022
+ uom: string;
2023
+ rate: number;
2024
+ is_free_item: 0 | 1;
2025
+ grant_commission: 0 | 1;
2026
+ allow_zero_valuation_rate: 0 | 1;
2027
+ page_break: 0 | 1;
2028
+ is_fixed_asset: 0 | 1;
2029
+ delivered_by_supplier: 0 | 1;
2030
+ enable_deferred_revenue: 0 | 1;
2031
+ has_item_scanned: 0 | 1;
2032
+ income_account: string;
2033
+ use_serial_batch_fields: 0 | 1;
2034
+ _user_tags?: string | undefined;
2035
+ description?: string | undefined;
2036
+ brand?: string | undefined;
2037
+ image?: string | undefined;
2038
+ barcode?: string | undefined;
2039
+ customer_item_code?: string | undefined;
2040
+ item_group?: string | undefined;
2041
+ stock_uom?: string | undefined;
2042
+ conversion_factor?: number | undefined;
2043
+ stock_qty?: number | undefined;
2044
+ price_list_rate?: number | undefined;
2045
+ base_price_list_rate?: number | undefined;
2046
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
2047
+ margin_rate_or_amount?: number | undefined;
2048
+ rate_with_margin?: number | undefined;
2049
+ discount_percentage?: number | undefined;
2050
+ discount_amount?: number | undefined;
2051
+ base_rate_with_margin?: number | undefined;
2052
+ amount?: number | undefined;
2053
+ base_rate?: number | undefined;
2054
+ base_amount?: number | undefined;
2055
+ pricing_rules?: string | undefined;
2056
+ stock_uom_rate?: number | undefined;
2057
+ net_rate?: number | undefined;
2058
+ net_amount?: number | undefined;
2059
+ item_tax_template?: string | undefined;
2060
+ base_net_rate?: number | undefined;
2061
+ base_net_amount?: number | undefined;
2062
+ incoming_rate?: number | undefined;
2063
+ weight_per_unit?: number | undefined;
2064
+ total_weight?: number | undefined;
2065
+ weight_uom?: string | undefined;
2066
+ warehouse?: string | undefined;
2067
+ target_warehouse?: string | undefined;
2068
+ quality_inspection?: string | undefined;
2069
+ so_detail?: string | undefined;
2070
+ dn_detail?: string | undefined;
2071
+ batch_no?: string | undefined;
2072
+ serial_no?: string | undefined;
2073
+ actual_batch_qty?: number | undefined;
2074
+ actual_qty?: number | undefined;
2075
+ item_tax_rate?: string | undefined;
2076
+ expense_account?: string | undefined;
2077
+ cost_center?: string | undefined;
2078
+ project?: string | undefined;
2079
+ purchase_order?: string | undefined;
2080
+ purchase_order_item?: string | undefined;
2081
+ sales_order?: string | undefined;
2082
+ delivery_note?: string | undefined;
2083
+ delivered_qty?: number | undefined;
2084
+ sales_invoice_item?: string | undefined;
2085
+ discount_account?: string | undefined;
2086
+ deferred_revenue_account?: string | undefined;
2087
+ service_start_date?: string | undefined;
2088
+ service_stop_date?: string | undefined;
2089
+ service_end_date?: string | undefined;
2090
+ asset?: string | undefined;
2091
+ finance_book?: string | undefined;
2092
+ serial_and_batch_bundle?: string | undefined;
2093
+ }[];
2094
+ update_stock: 0 | 1;
2095
+ allocate_advances_automatically: 0 | 1;
2096
+ ignore_default_payment_terms_template: 0 | 1;
2097
+ is_opening: "No" | "Yes";
2098
+ custom_invoice_no: string;
2099
+ is_pos: 0 | 1;
2100
+ is_debit_note: 0 | 1;
2101
+ update_outstanding_for_self: 0 | 1;
2102
+ update_billed_amount_in_sales_order: 0 | 1;
2103
+ update_billed_amount_in_delivery_note: 0 | 1;
2104
+ is_consolidated: 0 | 1;
2105
+ use_company_roundoff_cost_center: 0 | 1;
2106
+ is_cash_or_non_trade_discount: 0 | 1;
2107
+ only_include_allocated_payments: 0 | 1;
2108
+ write_off_outstanding_amount_automatically: 0 | 1;
2109
+ redeem_loyalty_points: 0 | 1;
2110
+ dont_create_loyalty_points: 0 | 1;
2111
+ debit_to: string;
2112
+ is_discounted: 0 | 1;
2113
+ repost_required: 0 | 1;
2114
+ amended_from?: string | undefined;
2115
+ _user_tags?: string | undefined;
2116
+ tax_category?: string | undefined;
2117
+ language?: string | undefined;
2118
+ discount_amount?: number | undefined;
2119
+ pricing_rules?: any[] | undefined;
2120
+ cost_center?: string | undefined;
2121
+ project?: string | undefined;
2122
+ title?: string | undefined;
2123
+ customer_name?: string | undefined;
2124
+ posting_time?: string | undefined;
2125
+ return_against?: string | undefined;
2126
+ po_no?: string | undefined;
2127
+ po_date?: string | undefined;
2128
+ shipping_address_name?: string | undefined;
2129
+ shipping_address?: string | undefined;
2130
+ dispatch_address_name?: string | undefined;
2131
+ dispatch_address?: string | undefined;
2132
+ contact_person?: string | undefined;
2133
+ contact_display?: string | undefined;
2134
+ contact_mobile?: string | undefined;
2135
+ contact_email?: string | undefined;
2136
+ customer_address?: string | undefined;
2137
+ tax_id?: string | undefined;
2138
+ address_display?: string | undefined;
2139
+ company_address?: string | undefined;
2140
+ company_address_display?: string | undefined;
2141
+ price_list_currency?: string | undefined;
2142
+ set_warehouse?: string | undefined;
2143
+ set_target_warehouse?: string | undefined;
2144
+ scan_barcode?: string | undefined;
2145
+ total_qty?: number | undefined;
2146
+ base_total?: number | undefined;
2147
+ base_net_total?: number | undefined;
2148
+ total_net_weight?: number | undefined;
2149
+ total?: number | undefined;
2150
+ net_total?: number | undefined;
2151
+ shipping_rule?: string | undefined;
2152
+ incoterm?: string | undefined;
2153
+ taxes_and_charges?: string | undefined;
2154
+ other_charges_calculation?: string | undefined;
2155
+ base_total_taxes_and_charges?: number | undefined;
2156
+ total_taxes_and_charges?: number | undefined;
2157
+ base_discount_amount?: number | undefined;
2158
+ additional_discount_percentage?: number | undefined;
2159
+ base_grand_total?: number | undefined;
2160
+ base_rounding_adjustment?: number | undefined;
2161
+ base_rounded_total?: number | undefined;
2162
+ base_in_words?: string | undefined;
2163
+ grand_total?: number | undefined;
2164
+ rounding_adjustment?: number | undefined;
2165
+ rounded_total?: number | undefined;
2166
+ in_words?: string | undefined;
2167
+ tc_name?: string | undefined;
2168
+ terms?: string | undefined;
2169
+ campaign?: string | undefined;
2170
+ source?: string | undefined;
2171
+ represents_company?: string | undefined;
2172
+ customer_group?: string | undefined;
2173
+ territory?: string | undefined;
2174
+ letter_head?: string | undefined;
2175
+ select_print_heading?: string | undefined;
2176
+ auto_repeat?: string | undefined;
2177
+ sales_partner?: string | undefined;
2178
+ amount_eligible_for_commission?: number | undefined;
2179
+ commission_rate?: number | undefined;
2180
+ total_commission?: number | undefined;
2181
+ packed_items?: any[] | undefined;
2182
+ taxes?: {
2183
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2184
+ included_in_print_rate: 0 | 1;
2185
+ account_head: string;
2186
+ description?: string | undefined;
2187
+ rate?: number | undefined;
2188
+ cost_center?: string | undefined;
2189
+ project?: string | undefined;
2190
+ base_total?: number | undefined;
2191
+ total?: number | undefined;
2192
+ account_currency?: string | undefined;
2193
+ tax_amount?: number | undefined;
2194
+ tax_amount_after_discount_amount?: number | undefined;
2195
+ base_tax_amount?: number | undefined;
2196
+ }[] | undefined;
2197
+ sales_team?: any[] | undefined;
2198
+ due_date?: string | undefined;
2199
+ paid_amount?: number | undefined;
2200
+ total_advance?: number | undefined;
2201
+ outstanding_amount?: number | undefined;
2202
+ base_paid_amount?: number | undefined;
2203
+ write_off_amount?: number | undefined;
2204
+ base_write_off_amount?: number | undefined;
2205
+ payment_terms_template?: string | undefined;
2206
+ party_account_currency?: string | undefined;
2207
+ advances?: {
2208
+ doctype: "Sales Invoice Advance";
2209
+ reference_type: string;
2210
+ reference_name: string;
2211
+ advance_amount: number;
2212
+ remarks?: string | undefined;
2213
+ reference_row?: string | undefined;
2214
+ allocated_amount?: number | undefined;
2215
+ }[] | undefined;
2216
+ payment_schedule?: any[] | undefined;
2217
+ remarks?: string | undefined;
2218
+ company_tax_id?: string | undefined;
2219
+ pos_profile?: string | undefined;
2220
+ named_place?: string | undefined;
2221
+ coupon_code?: string | undefined;
2222
+ additional_discount_account?: string | undefined;
2223
+ timesheets?: any[] | undefined;
2224
+ total_billing_hours?: number | undefined;
2225
+ total_billing_amount?: number | undefined;
2226
+ cash_bank_account?: string | undefined;
2227
+ payments?: {
2228
+ amount: number;
2229
+ mode_of_payment: string;
2230
+ account?: string | undefined;
2231
+ base_amount?: number | undefined;
2232
+ reference_no?: string | undefined;
2233
+ clearance_date?: string | undefined;
2234
+ }[] | undefined;
2235
+ base_change_amount?: number | undefined;
2236
+ change_amount?: number | undefined;
2237
+ account_for_change_amount?: string | undefined;
2238
+ write_off_account?: string | undefined;
2239
+ write_off_cost_center?: string | undefined;
2240
+ loyalty_points?: number | undefined;
2241
+ loyalty_amount?: number | undefined;
2242
+ loyalty_program?: string | undefined;
2243
+ loyalty_redemption_account?: string | undefined;
2244
+ loyalty_redemption_cost_center?: string | undefined;
2245
+ unrealized_profit_loss_account?: string | undefined;
2246
+ against_income_account?: string | undefined;
2247
+ subscription?: string | undefined;
2248
+ from_date?: string | undefined;
2249
+ to_date?: string | undefined;
2250
+ update_auto_repeat_reference?: string | undefined;
2251
+ inter_company_invoice_reference?: string | undefined;
2252
+ }>;
2253
+ constructor(temporalClient: TemporalClient);
2254
+ createInvoiceDraftFromSalesOrder(salesOrderName: string): Promise<{
2255
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
2256
+ owner: string;
2257
+ creation: string;
2258
+ modified: string;
2259
+ modified_by: string;
2260
+ idx: number;
2261
+ docstatus: number;
2262
+ doctype: string;
2263
+ company: string;
2264
+ naming_series: "INV-.#" | "INV-.#-GS";
2265
+ customer: string;
2266
+ posting_date: string;
2267
+ set_posting_time: 0 | 1;
2268
+ is_return: 0 | 1;
2269
+ currency: string;
2270
+ conversion_rate: number;
2271
+ selling_price_list: string;
2272
+ plc_conversion_rate: number;
2273
+ ignore_pricing_rule: 0 | 1;
2274
+ apply_discount_on: "" | "Grand Total" | "Net Total";
2275
+ disable_rounded_total: 0 | 1;
2276
+ is_internal_customer: 0 | 1;
2277
+ group_same_items: 0 | 1;
2278
+ items: {
2279
+ name: string;
2280
+ owner: string;
2281
+ creation: string;
2282
+ modified: string;
2283
+ modified_by: string;
2284
+ idx: number;
2285
+ docstatus: number;
2286
+ doctype: string;
2287
+ parenttype: string;
2288
+ parentfield: string;
2289
+ item_code: string;
2290
+ item_name: string;
2291
+ qty: number;
2292
+ uom: string;
2293
+ rate: number;
2294
+ is_free_item: 0 | 1;
2295
+ grant_commission: 0 | 1;
2296
+ allow_zero_valuation_rate: 0 | 1;
2297
+ page_break: 0 | 1;
2298
+ is_fixed_asset: 0 | 1;
2299
+ delivered_by_supplier: 0 | 1;
2300
+ enable_deferred_revenue: 0 | 1;
2301
+ has_item_scanned: 0 | 1;
2302
+ income_account: string;
2303
+ use_serial_batch_fields: 0 | 1;
2304
+ _user_tags?: string | undefined;
2305
+ description?: string | undefined;
2306
+ brand?: string | undefined;
2307
+ image?: string | undefined;
2308
+ barcode?: string | undefined;
2309
+ customer_item_code?: string | undefined;
2310
+ item_group?: string | undefined;
2311
+ stock_uom?: string | undefined;
2312
+ conversion_factor?: number | undefined;
2313
+ stock_qty?: number | undefined;
2314
+ price_list_rate?: number | undefined;
2315
+ base_price_list_rate?: number | undefined;
2316
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
2317
+ margin_rate_or_amount?: number | undefined;
2318
+ rate_with_margin?: number | undefined;
2319
+ discount_percentage?: number | undefined;
2320
+ discount_amount?: number | undefined;
2321
+ base_rate_with_margin?: number | undefined;
2322
+ amount?: number | undefined;
2323
+ base_rate?: number | undefined;
2324
+ base_amount?: number | undefined;
2325
+ pricing_rules?: string | undefined;
2326
+ stock_uom_rate?: number | undefined;
2327
+ net_rate?: number | undefined;
2328
+ net_amount?: number | undefined;
2329
+ item_tax_template?: string | undefined;
2330
+ base_net_rate?: number | undefined;
2331
+ base_net_amount?: number | undefined;
2332
+ incoming_rate?: number | undefined;
2333
+ weight_per_unit?: number | undefined;
2334
+ total_weight?: number | undefined;
2335
+ weight_uom?: string | undefined;
2336
+ warehouse?: string | undefined;
2337
+ target_warehouse?: string | undefined;
2338
+ quality_inspection?: string | undefined;
2339
+ so_detail?: string | undefined;
2340
+ dn_detail?: string | undefined;
2341
+ batch_no?: string | undefined;
2342
+ serial_no?: string | undefined;
2343
+ actual_batch_qty?: number | undefined;
2344
+ actual_qty?: number | undefined;
2345
+ item_tax_rate?: string | undefined;
2346
+ expense_account?: string | undefined;
2347
+ cost_center?: string | undefined;
2348
+ project?: string | undefined;
2349
+ purchase_order?: string | undefined;
2350
+ purchase_order_item?: string | undefined;
2351
+ sales_order?: string | undefined;
2352
+ delivery_note?: string | undefined;
2353
+ delivered_qty?: number | undefined;
2354
+ sales_invoice_item?: string | undefined;
2355
+ discount_account?: string | undefined;
2356
+ deferred_revenue_account?: string | undefined;
2357
+ service_start_date?: string | undefined;
2358
+ service_stop_date?: string | undefined;
2359
+ service_end_date?: string | undefined;
2360
+ asset?: string | undefined;
2361
+ finance_book?: string | undefined;
2362
+ serial_and_batch_bundle?: string | undefined;
2363
+ }[];
2364
+ update_stock: 0 | 1;
2365
+ allocate_advances_automatically: 0 | 1;
2366
+ ignore_default_payment_terms_template: 0 | 1;
2367
+ is_opening: "No" | "Yes";
2368
+ custom_invoice_no: string;
2369
+ is_pos: 0 | 1;
2370
+ is_debit_note: 0 | 1;
2371
+ update_outstanding_for_self: 0 | 1;
2372
+ update_billed_amount_in_sales_order: 0 | 1;
2373
+ update_billed_amount_in_delivery_note: 0 | 1;
2374
+ is_consolidated: 0 | 1;
2375
+ use_company_roundoff_cost_center: 0 | 1;
2376
+ is_cash_or_non_trade_discount: 0 | 1;
2377
+ only_include_allocated_payments: 0 | 1;
2378
+ write_off_outstanding_amount_automatically: 0 | 1;
2379
+ redeem_loyalty_points: 0 | 1;
2380
+ dont_create_loyalty_points: 0 | 1;
2381
+ debit_to: string;
2382
+ is_discounted: 0 | 1;
2383
+ repost_required: 0 | 1;
2384
+ amended_from?: string | undefined;
2385
+ _user_tags?: string | undefined;
2386
+ tax_category?: string | undefined;
2387
+ language?: string | undefined;
2388
+ discount_amount?: number | undefined;
2389
+ pricing_rules?: any[] | undefined;
2390
+ cost_center?: string | undefined;
2391
+ project?: string | undefined;
2392
+ title?: string | undefined;
2393
+ customer_name?: string | undefined;
2394
+ posting_time?: string | undefined;
2395
+ return_against?: string | undefined;
2396
+ po_no?: string | undefined;
2397
+ po_date?: string | undefined;
2398
+ shipping_address_name?: string | undefined;
2399
+ shipping_address?: string | undefined;
2400
+ dispatch_address_name?: string | undefined;
2401
+ dispatch_address?: string | undefined;
2402
+ contact_person?: string | undefined;
2403
+ contact_display?: string | undefined;
2404
+ contact_mobile?: string | undefined;
2405
+ contact_email?: string | undefined;
2406
+ customer_address?: string | undefined;
2407
+ tax_id?: string | undefined;
2408
+ address_display?: string | undefined;
2409
+ company_address?: string | undefined;
2410
+ company_address_display?: string | undefined;
2411
+ price_list_currency?: string | undefined;
2412
+ set_warehouse?: string | undefined;
2413
+ set_target_warehouse?: string | undefined;
2414
+ scan_barcode?: string | undefined;
2415
+ total_qty?: number | undefined;
2416
+ base_total?: number | undefined;
2417
+ base_net_total?: number | undefined;
2418
+ total_net_weight?: number | undefined;
2419
+ total?: number | undefined;
2420
+ net_total?: number | undefined;
2421
+ shipping_rule?: string | undefined;
2422
+ incoterm?: string | undefined;
2423
+ taxes_and_charges?: string | undefined;
2424
+ other_charges_calculation?: string | undefined;
2425
+ base_total_taxes_and_charges?: number | undefined;
2426
+ total_taxes_and_charges?: number | undefined;
2427
+ base_discount_amount?: number | undefined;
2428
+ additional_discount_percentage?: number | undefined;
2429
+ base_grand_total?: number | undefined;
2430
+ base_rounding_adjustment?: number | undefined;
2431
+ base_rounded_total?: number | undefined;
2432
+ base_in_words?: string | undefined;
2433
+ grand_total?: number | undefined;
2434
+ rounding_adjustment?: number | undefined;
2435
+ rounded_total?: number | undefined;
2436
+ in_words?: string | undefined;
2437
+ tc_name?: string | undefined;
2438
+ terms?: string | undefined;
2439
+ campaign?: string | undefined;
2440
+ source?: string | undefined;
2441
+ represents_company?: string | undefined;
2442
+ customer_group?: string | undefined;
2443
+ territory?: string | undefined;
2444
+ letter_head?: string | undefined;
2445
+ select_print_heading?: string | undefined;
2446
+ auto_repeat?: string | undefined;
2447
+ sales_partner?: string | undefined;
2448
+ amount_eligible_for_commission?: number | undefined;
2449
+ commission_rate?: number | undefined;
2450
+ total_commission?: number | undefined;
2451
+ packed_items?: any[] | undefined;
2452
+ taxes?: {
2453
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2454
+ included_in_print_rate: 0 | 1;
2455
+ account_head: string;
2456
+ description?: string | undefined;
2457
+ rate?: number | undefined;
2458
+ cost_center?: string | undefined;
2459
+ project?: string | undefined;
2460
+ base_total?: number | undefined;
2461
+ total?: number | undefined;
2462
+ account_currency?: string | undefined;
2463
+ tax_amount?: number | undefined;
2464
+ tax_amount_after_discount_amount?: number | undefined;
2465
+ base_tax_amount?: number | undefined;
2466
+ }[] | undefined;
2467
+ sales_team?: any[] | undefined;
2468
+ due_date?: string | undefined;
2469
+ paid_amount?: number | undefined;
2470
+ total_advance?: number | undefined;
2471
+ outstanding_amount?: number | undefined;
2472
+ base_paid_amount?: number | undefined;
2473
+ write_off_amount?: number | undefined;
2474
+ base_write_off_amount?: number | undefined;
2475
+ payment_terms_template?: string | undefined;
2476
+ party_account_currency?: string | undefined;
2477
+ advances?: {
2478
+ doctype: "Sales Invoice Advance";
2479
+ reference_type: string;
2480
+ reference_name: string;
2481
+ advance_amount: number;
2482
+ remarks?: string | undefined;
2483
+ reference_row?: string | undefined;
2484
+ allocated_amount?: number | undefined;
2485
+ }[] | undefined;
2486
+ payment_schedule?: any[] | undefined;
2487
+ remarks?: string | undefined;
2488
+ company_tax_id?: string | undefined;
2489
+ pos_profile?: string | undefined;
2490
+ named_place?: string | undefined;
2491
+ coupon_code?: string | undefined;
2492
+ additional_discount_account?: string | undefined;
2493
+ timesheets?: any[] | undefined;
2494
+ total_billing_hours?: number | undefined;
2495
+ total_billing_amount?: number | undefined;
2496
+ cash_bank_account?: string | undefined;
2497
+ payments?: {
2498
+ amount: number;
2499
+ mode_of_payment: string;
2500
+ account?: string | undefined;
2501
+ base_amount?: number | undefined;
2502
+ reference_no?: string | undefined;
2503
+ clearance_date?: string | undefined;
2504
+ }[] | undefined;
2505
+ base_change_amount?: number | undefined;
2506
+ change_amount?: number | undefined;
2507
+ account_for_change_amount?: string | undefined;
2508
+ write_off_account?: string | undefined;
2509
+ write_off_cost_center?: string | undefined;
2510
+ loyalty_points?: number | undefined;
2511
+ loyalty_amount?: number | undefined;
2512
+ loyalty_program?: string | undefined;
2513
+ loyalty_redemption_account?: string | undefined;
2514
+ loyalty_redemption_cost_center?: string | undefined;
2515
+ unrealized_profit_loss_account?: string | undefined;
2516
+ against_income_account?: string | undefined;
2517
+ subscription?: string | undefined;
2518
+ from_date?: string | undefined;
2519
+ to_date?: string | undefined;
2520
+ update_auto_repeat_reference?: string | undefined;
2521
+ inter_company_invoice_reference?: string | undefined;
2522
+ }>;
2523
+ createFromSalesOrder(salesOrderName: string, submit?: boolean): Promise<{
2524
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
2525
+ name: string;
2526
+ owner: string;
2527
+ creation: string;
2528
+ modified: string;
2529
+ modified_by: string;
2530
+ idx: number;
2531
+ docstatus: number;
2532
+ doctype: string;
2533
+ company: string;
2534
+ naming_series: "INV-.#" | "INV-.#-GS";
2535
+ customer: string;
2536
+ posting_date: string;
2537
+ set_posting_time: 0 | 1;
2538
+ is_return: 0 | 1;
2539
+ currency: string;
2540
+ conversion_rate: number;
2541
+ selling_price_list: string;
2542
+ plc_conversion_rate: number;
2543
+ ignore_pricing_rule: 0 | 1;
2544
+ apply_discount_on: "" | "Grand Total" | "Net Total";
2545
+ disable_rounded_total: 0 | 1;
2546
+ is_internal_customer: 0 | 1;
2547
+ group_same_items: 0 | 1;
2548
+ items: {
2549
+ name: string;
2550
+ owner: string;
2551
+ creation: string;
2552
+ modified: string;
2553
+ modified_by: string;
2554
+ idx: number;
2555
+ docstatus: number;
2556
+ doctype: string;
2557
+ parenttype: string;
2558
+ parentfield: string;
2559
+ item_code: string;
2560
+ item_name: string;
2561
+ qty: number;
2562
+ uom: string;
2563
+ rate: number;
2564
+ is_free_item: 0 | 1;
2565
+ grant_commission: 0 | 1;
2566
+ allow_zero_valuation_rate: 0 | 1;
2567
+ page_break: 0 | 1;
2568
+ is_fixed_asset: 0 | 1;
2569
+ delivered_by_supplier: 0 | 1;
2570
+ enable_deferred_revenue: 0 | 1;
2571
+ has_item_scanned: 0 | 1;
2572
+ income_account: string;
2573
+ use_serial_batch_fields: 0 | 1;
2574
+ _user_tags?: string | undefined;
2575
+ description?: string | undefined;
2576
+ brand?: string | undefined;
2577
+ image?: string | undefined;
2578
+ barcode?: string | undefined;
2579
+ customer_item_code?: string | undefined;
2580
+ item_group?: string | undefined;
2581
+ stock_uom?: string | undefined;
2582
+ conversion_factor?: number | undefined;
2583
+ stock_qty?: number | undefined;
2584
+ price_list_rate?: number | undefined;
2585
+ base_price_list_rate?: number | undefined;
2586
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
2587
+ margin_rate_or_amount?: number | undefined;
2588
+ rate_with_margin?: number | undefined;
2589
+ discount_percentage?: number | undefined;
2590
+ discount_amount?: number | undefined;
2591
+ base_rate_with_margin?: number | undefined;
2592
+ amount?: number | undefined;
2593
+ base_rate?: number | undefined;
2594
+ base_amount?: number | undefined;
2595
+ pricing_rules?: string | undefined;
2596
+ stock_uom_rate?: number | undefined;
2597
+ net_rate?: number | undefined;
2598
+ net_amount?: number | undefined;
2599
+ item_tax_template?: string | undefined;
2600
+ base_net_rate?: number | undefined;
2601
+ base_net_amount?: number | undefined;
2602
+ incoming_rate?: number | undefined;
2603
+ weight_per_unit?: number | undefined;
2604
+ total_weight?: number | undefined;
2605
+ weight_uom?: string | undefined;
2606
+ warehouse?: string | undefined;
2607
+ target_warehouse?: string | undefined;
2608
+ quality_inspection?: string | undefined;
2609
+ so_detail?: string | undefined;
2610
+ dn_detail?: string | undefined;
2611
+ batch_no?: string | undefined;
2612
+ serial_no?: string | undefined;
2613
+ actual_batch_qty?: number | undefined;
2614
+ actual_qty?: number | undefined;
2615
+ item_tax_rate?: string | undefined;
2616
+ expense_account?: string | undefined;
2617
+ cost_center?: string | undefined;
2618
+ project?: string | undefined;
2619
+ purchase_order?: string | undefined;
2620
+ purchase_order_item?: string | undefined;
2621
+ sales_order?: string | undefined;
2622
+ delivery_note?: string | undefined;
2623
+ delivered_qty?: number | undefined;
2624
+ sales_invoice_item?: string | undefined;
2625
+ discount_account?: string | undefined;
2626
+ deferred_revenue_account?: string | undefined;
2627
+ service_start_date?: string | undefined;
2628
+ service_stop_date?: string | undefined;
2629
+ service_end_date?: string | undefined;
2630
+ asset?: string | undefined;
2631
+ finance_book?: string | undefined;
2632
+ serial_and_batch_bundle?: string | undefined;
2633
+ }[];
2634
+ update_stock: 0 | 1;
2635
+ allocate_advances_automatically: 0 | 1;
2636
+ ignore_default_payment_terms_template: 0 | 1;
2637
+ is_opening: "No" | "Yes";
2638
+ custom_invoice_no: string;
2639
+ is_pos: 0 | 1;
2640
+ is_debit_note: 0 | 1;
2641
+ update_outstanding_for_self: 0 | 1;
2642
+ update_billed_amount_in_sales_order: 0 | 1;
2643
+ update_billed_amount_in_delivery_note: 0 | 1;
2644
+ is_consolidated: 0 | 1;
2645
+ use_company_roundoff_cost_center: 0 | 1;
2646
+ is_cash_or_non_trade_discount: 0 | 1;
2647
+ only_include_allocated_payments: 0 | 1;
2648
+ write_off_outstanding_amount_automatically: 0 | 1;
2649
+ redeem_loyalty_points: 0 | 1;
2650
+ dont_create_loyalty_points: 0 | 1;
2651
+ debit_to: string;
2652
+ is_discounted: 0 | 1;
2653
+ repost_required: 0 | 1;
2654
+ amended_from?: string | undefined;
2655
+ _user_tags?: string | undefined;
2656
+ tax_category?: string | undefined;
2657
+ language?: string | undefined;
2658
+ discount_amount?: number | undefined;
2659
+ pricing_rules?: any[] | undefined;
2660
+ cost_center?: string | undefined;
2661
+ project?: string | undefined;
2662
+ title?: string | undefined;
2663
+ customer_name?: string | undefined;
2664
+ posting_time?: string | undefined;
2665
+ return_against?: string | undefined;
2666
+ po_no?: string | undefined;
2667
+ po_date?: string | undefined;
2668
+ shipping_address_name?: string | undefined;
2669
+ shipping_address?: string | undefined;
2670
+ dispatch_address_name?: string | undefined;
2671
+ dispatch_address?: string | undefined;
2672
+ contact_person?: string | undefined;
2673
+ contact_display?: string | undefined;
2674
+ contact_mobile?: string | undefined;
2675
+ contact_email?: string | undefined;
2676
+ customer_address?: string | undefined;
2677
+ tax_id?: string | undefined;
2678
+ address_display?: string | undefined;
2679
+ company_address?: string | undefined;
2680
+ company_address_display?: string | undefined;
2681
+ price_list_currency?: string | undefined;
2682
+ set_warehouse?: string | undefined;
2683
+ set_target_warehouse?: string | undefined;
2684
+ scan_barcode?: string | undefined;
2685
+ total_qty?: number | undefined;
2686
+ base_total?: number | undefined;
2687
+ base_net_total?: number | undefined;
2688
+ total_net_weight?: number | undefined;
2689
+ total?: number | undefined;
2690
+ net_total?: number | undefined;
2691
+ shipping_rule?: string | undefined;
2692
+ incoterm?: string | undefined;
2693
+ taxes_and_charges?: string | undefined;
2694
+ other_charges_calculation?: string | undefined;
2695
+ base_total_taxes_and_charges?: number | undefined;
2696
+ total_taxes_and_charges?: number | undefined;
2697
+ base_discount_amount?: number | undefined;
2698
+ additional_discount_percentage?: number | undefined;
2699
+ base_grand_total?: number | undefined;
2700
+ base_rounding_adjustment?: number | undefined;
2701
+ base_rounded_total?: number | undefined;
2702
+ base_in_words?: string | undefined;
2703
+ grand_total?: number | undefined;
2704
+ rounding_adjustment?: number | undefined;
2705
+ rounded_total?: number | undefined;
2706
+ in_words?: string | undefined;
2707
+ tc_name?: string | undefined;
2708
+ terms?: string | undefined;
2709
+ campaign?: string | undefined;
2710
+ source?: string | undefined;
2711
+ represents_company?: string | undefined;
2712
+ customer_group?: string | undefined;
2713
+ territory?: string | undefined;
2714
+ letter_head?: string | undefined;
2715
+ select_print_heading?: string | undefined;
2716
+ auto_repeat?: string | undefined;
2717
+ sales_partner?: string | undefined;
2718
+ amount_eligible_for_commission?: number | undefined;
2719
+ commission_rate?: number | undefined;
2720
+ total_commission?: number | undefined;
2721
+ packed_items?: any[] | undefined;
2722
+ taxes?: {
2723
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2724
+ included_in_print_rate: 0 | 1;
2725
+ account_head: string;
2726
+ description?: string | undefined;
2727
+ rate?: number | undefined;
2728
+ cost_center?: string | undefined;
2729
+ project?: string | undefined;
2730
+ base_total?: number | undefined;
2731
+ total?: number | undefined;
2732
+ account_currency?: string | undefined;
2733
+ tax_amount?: number | undefined;
2734
+ tax_amount_after_discount_amount?: number | undefined;
2735
+ base_tax_amount?: number | undefined;
2736
+ }[] | undefined;
2737
+ sales_team?: any[] | undefined;
2738
+ due_date?: string | undefined;
2739
+ paid_amount?: number | undefined;
2740
+ total_advance?: number | undefined;
2741
+ outstanding_amount?: number | undefined;
2742
+ base_paid_amount?: number | undefined;
2743
+ write_off_amount?: number | undefined;
2744
+ base_write_off_amount?: number | undefined;
2745
+ payment_terms_template?: string | undefined;
2746
+ party_account_currency?: string | undefined;
2747
+ advances?: {
2748
+ doctype: "Sales Invoice Advance";
2749
+ reference_type: string;
2750
+ reference_name: string;
2751
+ advance_amount: number;
2752
+ remarks?: string | undefined;
2753
+ reference_row?: string | undefined;
2754
+ allocated_amount?: number | undefined;
2755
+ }[] | undefined;
2756
+ payment_schedule?: any[] | undefined;
2757
+ remarks?: string | undefined;
2758
+ company_tax_id?: string | undefined;
2759
+ pos_profile?: string | undefined;
2760
+ named_place?: string | undefined;
2761
+ coupon_code?: string | undefined;
2762
+ additional_discount_account?: string | undefined;
2763
+ timesheets?: any[] | undefined;
2764
+ total_billing_hours?: number | undefined;
2765
+ total_billing_amount?: number | undefined;
2766
+ cash_bank_account?: string | undefined;
2767
+ payments?: {
2768
+ amount: number;
2769
+ mode_of_payment: string;
2770
+ account?: string | undefined;
2771
+ base_amount?: number | undefined;
2772
+ reference_no?: string | undefined;
2773
+ clearance_date?: string | undefined;
2774
+ }[] | undefined;
2775
+ base_change_amount?: number | undefined;
2776
+ change_amount?: number | undefined;
2777
+ account_for_change_amount?: string | undefined;
2778
+ write_off_account?: string | undefined;
2779
+ write_off_cost_center?: string | undefined;
2780
+ loyalty_points?: number | undefined;
2781
+ loyalty_amount?: number | undefined;
2782
+ loyalty_program?: string | undefined;
2783
+ loyalty_redemption_account?: string | undefined;
2784
+ loyalty_redemption_cost_center?: string | undefined;
2785
+ unrealized_profit_loss_account?: string | undefined;
2786
+ against_income_account?: string | undefined;
2787
+ subscription?: string | undefined;
2788
+ from_date?: string | undefined;
2789
+ to_date?: string | undefined;
2790
+ update_auto_repeat_reference?: string | undefined;
2791
+ inter_company_invoice_reference?: string | undefined;
2792
+ }>;
2793
+ createInvoiceDraftFromDeliveryNote(deliveryNoteName: string): Promise<{
2794
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
2795
+ owner: string;
2796
+ creation: string;
2797
+ modified: string;
2798
+ modified_by: string;
2799
+ idx: number;
2800
+ docstatus: number;
2801
+ doctype: string;
2802
+ company: string;
2803
+ naming_series: "INV-.#" | "INV-.#-GS";
2804
+ customer: string;
2805
+ posting_date: string;
2806
+ set_posting_time: 0 | 1;
2807
+ is_return: 0 | 1;
2808
+ currency: string;
2809
+ conversion_rate: number;
2810
+ selling_price_list: string;
2811
+ plc_conversion_rate: number;
2812
+ ignore_pricing_rule: 0 | 1;
2813
+ apply_discount_on: "" | "Grand Total" | "Net Total";
2814
+ disable_rounded_total: 0 | 1;
2815
+ is_internal_customer: 0 | 1;
2816
+ group_same_items: 0 | 1;
2817
+ items: {
2818
+ name: string;
2819
+ owner: string;
2820
+ creation: string;
2821
+ modified: string;
2822
+ modified_by: string;
2823
+ idx: number;
2824
+ docstatus: number;
2825
+ doctype: string;
2826
+ parenttype: string;
2827
+ parentfield: string;
2828
+ item_code: string;
2829
+ item_name: string;
2830
+ qty: number;
2831
+ uom: string;
2832
+ rate: number;
2833
+ is_free_item: 0 | 1;
2834
+ grant_commission: 0 | 1;
2835
+ allow_zero_valuation_rate: 0 | 1;
2836
+ page_break: 0 | 1;
2837
+ is_fixed_asset: 0 | 1;
2838
+ delivered_by_supplier: 0 | 1;
2839
+ enable_deferred_revenue: 0 | 1;
2840
+ has_item_scanned: 0 | 1;
2841
+ income_account: string;
2842
+ use_serial_batch_fields: 0 | 1;
2843
+ _user_tags?: string | undefined;
2844
+ description?: string | undefined;
2845
+ brand?: string | undefined;
2846
+ image?: string | undefined;
2847
+ barcode?: string | undefined;
2848
+ customer_item_code?: string | undefined;
2849
+ item_group?: string | undefined;
2850
+ stock_uom?: string | undefined;
2851
+ conversion_factor?: number | undefined;
2852
+ stock_qty?: number | undefined;
2853
+ price_list_rate?: number | undefined;
2854
+ base_price_list_rate?: number | undefined;
2855
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
2856
+ margin_rate_or_amount?: number | undefined;
2857
+ rate_with_margin?: number | undefined;
2858
+ discount_percentage?: number | undefined;
2859
+ discount_amount?: number | undefined;
2860
+ base_rate_with_margin?: number | undefined;
2861
+ amount?: number | undefined;
2862
+ base_rate?: number | undefined;
2863
+ base_amount?: number | undefined;
2864
+ pricing_rules?: string | undefined;
2865
+ stock_uom_rate?: number | undefined;
2866
+ net_rate?: number | undefined;
2867
+ net_amount?: number | undefined;
2868
+ item_tax_template?: string | undefined;
2869
+ base_net_rate?: number | undefined;
2870
+ base_net_amount?: number | undefined;
2871
+ incoming_rate?: number | undefined;
2872
+ weight_per_unit?: number | undefined;
2873
+ total_weight?: number | undefined;
2874
+ weight_uom?: string | undefined;
2875
+ warehouse?: string | undefined;
2876
+ target_warehouse?: string | undefined;
2877
+ quality_inspection?: string | undefined;
2878
+ so_detail?: string | undefined;
2879
+ dn_detail?: string | undefined;
2880
+ batch_no?: string | undefined;
2881
+ serial_no?: string | undefined;
2882
+ actual_batch_qty?: number | undefined;
2883
+ actual_qty?: number | undefined;
2884
+ item_tax_rate?: string | undefined;
2885
+ expense_account?: string | undefined;
2886
+ cost_center?: string | undefined;
2887
+ project?: string | undefined;
2888
+ purchase_order?: string | undefined;
2889
+ purchase_order_item?: string | undefined;
2890
+ sales_order?: string | undefined;
2891
+ delivery_note?: string | undefined;
2892
+ delivered_qty?: number | undefined;
2893
+ sales_invoice_item?: string | undefined;
2894
+ discount_account?: string | undefined;
2895
+ deferred_revenue_account?: string | undefined;
2896
+ service_start_date?: string | undefined;
2897
+ service_stop_date?: string | undefined;
2898
+ service_end_date?: string | undefined;
2899
+ asset?: string | undefined;
2900
+ finance_book?: string | undefined;
2901
+ serial_and_batch_bundle?: string | undefined;
2902
+ }[];
2903
+ update_stock: 0 | 1;
2904
+ allocate_advances_automatically: 0 | 1;
2905
+ ignore_default_payment_terms_template: 0 | 1;
2906
+ is_opening: "No" | "Yes";
2907
+ custom_invoice_no: string;
2908
+ is_pos: 0 | 1;
2909
+ is_debit_note: 0 | 1;
2910
+ update_outstanding_for_self: 0 | 1;
2911
+ update_billed_amount_in_sales_order: 0 | 1;
2912
+ update_billed_amount_in_delivery_note: 0 | 1;
2913
+ is_consolidated: 0 | 1;
2914
+ use_company_roundoff_cost_center: 0 | 1;
2915
+ is_cash_or_non_trade_discount: 0 | 1;
2916
+ only_include_allocated_payments: 0 | 1;
2917
+ write_off_outstanding_amount_automatically: 0 | 1;
2918
+ redeem_loyalty_points: 0 | 1;
2919
+ dont_create_loyalty_points: 0 | 1;
2920
+ debit_to: string;
2921
+ is_discounted: 0 | 1;
2922
+ repost_required: 0 | 1;
2923
+ amended_from?: string | undefined;
2924
+ _user_tags?: string | undefined;
2925
+ tax_category?: string | undefined;
2926
+ language?: string | undefined;
2927
+ discount_amount?: number | undefined;
2928
+ pricing_rules?: any[] | undefined;
2929
+ cost_center?: string | undefined;
2930
+ project?: string | undefined;
2931
+ title?: string | undefined;
2932
+ customer_name?: string | undefined;
2933
+ posting_time?: string | undefined;
2934
+ return_against?: string | undefined;
2935
+ po_no?: string | undefined;
2936
+ po_date?: string | undefined;
2937
+ shipping_address_name?: string | undefined;
2938
+ shipping_address?: string | undefined;
2939
+ dispatch_address_name?: string | undefined;
2940
+ dispatch_address?: string | undefined;
2941
+ contact_person?: string | undefined;
2942
+ contact_display?: string | undefined;
2943
+ contact_mobile?: string | undefined;
2944
+ contact_email?: string | undefined;
2945
+ customer_address?: string | undefined;
2946
+ tax_id?: string | undefined;
2947
+ address_display?: string | undefined;
2948
+ company_address?: string | undefined;
2949
+ company_address_display?: string | undefined;
2950
+ price_list_currency?: string | undefined;
2951
+ set_warehouse?: string | undefined;
2952
+ set_target_warehouse?: string | undefined;
2953
+ scan_barcode?: string | undefined;
2954
+ total_qty?: number | undefined;
2955
+ base_total?: number | undefined;
2956
+ base_net_total?: number | undefined;
2957
+ total_net_weight?: number | undefined;
2958
+ total?: number | undefined;
2959
+ net_total?: number | undefined;
2960
+ shipping_rule?: string | undefined;
2961
+ incoterm?: string | undefined;
2962
+ taxes_and_charges?: string | undefined;
2963
+ other_charges_calculation?: string | undefined;
2964
+ base_total_taxes_and_charges?: number | undefined;
2965
+ total_taxes_and_charges?: number | undefined;
2966
+ base_discount_amount?: number | undefined;
2967
+ additional_discount_percentage?: number | undefined;
2968
+ base_grand_total?: number | undefined;
2969
+ base_rounding_adjustment?: number | undefined;
2970
+ base_rounded_total?: number | undefined;
2971
+ base_in_words?: string | undefined;
2972
+ grand_total?: number | undefined;
2973
+ rounding_adjustment?: number | undefined;
2974
+ rounded_total?: number | undefined;
2975
+ in_words?: string | undefined;
2976
+ tc_name?: string | undefined;
2977
+ terms?: string | undefined;
2978
+ campaign?: string | undefined;
2979
+ source?: string | undefined;
2980
+ represents_company?: string | undefined;
2981
+ customer_group?: string | undefined;
2982
+ territory?: string | undefined;
2983
+ letter_head?: string | undefined;
2984
+ select_print_heading?: string | undefined;
2985
+ auto_repeat?: string | undefined;
2986
+ sales_partner?: string | undefined;
2987
+ amount_eligible_for_commission?: number | undefined;
2988
+ commission_rate?: number | undefined;
2989
+ total_commission?: number | undefined;
2990
+ packed_items?: any[] | undefined;
2991
+ taxes?: {
2992
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
2993
+ included_in_print_rate: 0 | 1;
2994
+ account_head: string;
2995
+ description?: string | undefined;
2996
+ rate?: number | undefined;
2997
+ cost_center?: string | undefined;
2998
+ project?: string | undefined;
2999
+ base_total?: number | undefined;
3000
+ total?: number | undefined;
3001
+ account_currency?: string | undefined;
3002
+ tax_amount?: number | undefined;
3003
+ tax_amount_after_discount_amount?: number | undefined;
3004
+ base_tax_amount?: number | undefined;
3005
+ }[] | undefined;
3006
+ sales_team?: any[] | undefined;
3007
+ due_date?: string | undefined;
3008
+ paid_amount?: number | undefined;
3009
+ total_advance?: number | undefined;
3010
+ outstanding_amount?: number | undefined;
3011
+ base_paid_amount?: number | undefined;
3012
+ write_off_amount?: number | undefined;
3013
+ base_write_off_amount?: number | undefined;
3014
+ payment_terms_template?: string | undefined;
3015
+ party_account_currency?: string | undefined;
3016
+ advances?: {
3017
+ doctype: "Sales Invoice Advance";
3018
+ reference_type: string;
3019
+ reference_name: string;
3020
+ advance_amount: number;
3021
+ remarks?: string | undefined;
3022
+ reference_row?: string | undefined;
3023
+ allocated_amount?: number | undefined;
3024
+ }[] | undefined;
3025
+ payment_schedule?: any[] | undefined;
3026
+ remarks?: string | undefined;
3027
+ company_tax_id?: string | undefined;
3028
+ pos_profile?: string | undefined;
3029
+ named_place?: string | undefined;
3030
+ coupon_code?: string | undefined;
3031
+ additional_discount_account?: string | undefined;
3032
+ timesheets?: any[] | undefined;
3033
+ total_billing_hours?: number | undefined;
3034
+ total_billing_amount?: number | undefined;
3035
+ cash_bank_account?: string | undefined;
3036
+ payments?: {
3037
+ amount: number;
3038
+ mode_of_payment: string;
3039
+ account?: string | undefined;
3040
+ base_amount?: number | undefined;
3041
+ reference_no?: string | undefined;
3042
+ clearance_date?: string | undefined;
3043
+ }[] | undefined;
3044
+ base_change_amount?: number | undefined;
3045
+ change_amount?: number | undefined;
3046
+ account_for_change_amount?: string | undefined;
3047
+ write_off_account?: string | undefined;
3048
+ write_off_cost_center?: string | undefined;
3049
+ loyalty_points?: number | undefined;
3050
+ loyalty_amount?: number | undefined;
3051
+ loyalty_program?: string | undefined;
3052
+ loyalty_redemption_account?: string | undefined;
3053
+ loyalty_redemption_cost_center?: string | undefined;
3054
+ unrealized_profit_loss_account?: string | undefined;
3055
+ against_income_account?: string | undefined;
3056
+ subscription?: string | undefined;
3057
+ from_date?: string | undefined;
3058
+ to_date?: string | undefined;
3059
+ update_auto_repeat_reference?: string | undefined;
3060
+ inter_company_invoice_reference?: string | undefined;
3061
+ }>;
3062
+ createFromDeliveryNote(deliveryNoteName: string, submit?: boolean): Promise<{
3063
+ status: "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled" | "Internal Transfer";
3064
+ name: string;
3065
+ owner: string;
3066
+ creation: string;
3067
+ modified: string;
3068
+ modified_by: string;
3069
+ idx: number;
3070
+ docstatus: number;
3071
+ doctype: string;
3072
+ company: string;
3073
+ naming_series: "INV-.#" | "INV-.#-GS";
3074
+ customer: string;
3075
+ posting_date: string;
3076
+ set_posting_time: 0 | 1;
3077
+ is_return: 0 | 1;
3078
+ currency: string;
3079
+ conversion_rate: number;
3080
+ selling_price_list: string;
3081
+ plc_conversion_rate: number;
3082
+ ignore_pricing_rule: 0 | 1;
3083
+ apply_discount_on: "" | "Grand Total" | "Net Total";
3084
+ disable_rounded_total: 0 | 1;
3085
+ is_internal_customer: 0 | 1;
3086
+ group_same_items: 0 | 1;
3087
+ items: {
3088
+ name: string;
3089
+ owner: string;
3090
+ creation: string;
3091
+ modified: string;
3092
+ modified_by: string;
3093
+ idx: number;
3094
+ docstatus: number;
3095
+ doctype: string;
3096
+ parenttype: string;
3097
+ parentfield: string;
3098
+ item_code: string;
3099
+ item_name: string;
3100
+ qty: number;
3101
+ uom: string;
3102
+ rate: number;
3103
+ is_free_item: 0 | 1;
3104
+ grant_commission: 0 | 1;
3105
+ allow_zero_valuation_rate: 0 | 1;
3106
+ page_break: 0 | 1;
3107
+ is_fixed_asset: 0 | 1;
3108
+ delivered_by_supplier: 0 | 1;
3109
+ enable_deferred_revenue: 0 | 1;
3110
+ has_item_scanned: 0 | 1;
3111
+ income_account: string;
3112
+ use_serial_batch_fields: 0 | 1;
3113
+ _user_tags?: string | undefined;
3114
+ description?: string | undefined;
3115
+ brand?: string | undefined;
3116
+ image?: string | undefined;
3117
+ barcode?: string | undefined;
3118
+ customer_item_code?: string | undefined;
3119
+ item_group?: string | undefined;
3120
+ stock_uom?: string | undefined;
3121
+ conversion_factor?: number | undefined;
3122
+ stock_qty?: number | undefined;
3123
+ price_list_rate?: number | undefined;
3124
+ base_price_list_rate?: number | undefined;
3125
+ margin_type?: "" | "Percentage" | "Amount" | undefined;
3126
+ margin_rate_or_amount?: number | undefined;
3127
+ rate_with_margin?: number | undefined;
3128
+ discount_percentage?: number | undefined;
3129
+ discount_amount?: number | undefined;
3130
+ base_rate_with_margin?: number | undefined;
3131
+ amount?: number | undefined;
3132
+ base_rate?: number | undefined;
3133
+ base_amount?: number | undefined;
3134
+ pricing_rules?: string | undefined;
3135
+ stock_uom_rate?: number | undefined;
3136
+ net_rate?: number | undefined;
3137
+ net_amount?: number | undefined;
3138
+ item_tax_template?: string | undefined;
3139
+ base_net_rate?: number | undefined;
3140
+ base_net_amount?: number | undefined;
3141
+ incoming_rate?: number | undefined;
3142
+ weight_per_unit?: number | undefined;
3143
+ total_weight?: number | undefined;
3144
+ weight_uom?: string | undefined;
3145
+ warehouse?: string | undefined;
3146
+ target_warehouse?: string | undefined;
3147
+ quality_inspection?: string | undefined;
3148
+ so_detail?: string | undefined;
3149
+ dn_detail?: string | undefined;
3150
+ batch_no?: string | undefined;
3151
+ serial_no?: string | undefined;
3152
+ actual_batch_qty?: number | undefined;
3153
+ actual_qty?: number | undefined;
3154
+ item_tax_rate?: string | undefined;
3155
+ expense_account?: string | undefined;
3156
+ cost_center?: string | undefined;
3157
+ project?: string | undefined;
3158
+ purchase_order?: string | undefined;
3159
+ purchase_order_item?: string | undefined;
3160
+ sales_order?: string | undefined;
3161
+ delivery_note?: string | undefined;
3162
+ delivered_qty?: number | undefined;
3163
+ sales_invoice_item?: string | undefined;
3164
+ discount_account?: string | undefined;
3165
+ deferred_revenue_account?: string | undefined;
3166
+ service_start_date?: string | undefined;
3167
+ service_stop_date?: string | undefined;
3168
+ service_end_date?: string | undefined;
3169
+ asset?: string | undefined;
3170
+ finance_book?: string | undefined;
3171
+ serial_and_batch_bundle?: string | undefined;
3172
+ }[];
3173
+ update_stock: 0 | 1;
3174
+ allocate_advances_automatically: 0 | 1;
3175
+ ignore_default_payment_terms_template: 0 | 1;
3176
+ is_opening: "No" | "Yes";
3177
+ custom_invoice_no: string;
3178
+ is_pos: 0 | 1;
3179
+ is_debit_note: 0 | 1;
3180
+ update_outstanding_for_self: 0 | 1;
3181
+ update_billed_amount_in_sales_order: 0 | 1;
3182
+ update_billed_amount_in_delivery_note: 0 | 1;
3183
+ is_consolidated: 0 | 1;
3184
+ use_company_roundoff_cost_center: 0 | 1;
3185
+ is_cash_or_non_trade_discount: 0 | 1;
3186
+ only_include_allocated_payments: 0 | 1;
3187
+ write_off_outstanding_amount_automatically: 0 | 1;
3188
+ redeem_loyalty_points: 0 | 1;
3189
+ dont_create_loyalty_points: 0 | 1;
3190
+ debit_to: string;
3191
+ is_discounted: 0 | 1;
3192
+ repost_required: 0 | 1;
3193
+ amended_from?: string | undefined;
3194
+ _user_tags?: string | undefined;
3195
+ tax_category?: string | undefined;
3196
+ language?: string | undefined;
3197
+ discount_amount?: number | undefined;
3198
+ pricing_rules?: any[] | undefined;
3199
+ cost_center?: string | undefined;
3200
+ project?: string | undefined;
3201
+ title?: string | undefined;
3202
+ customer_name?: string | undefined;
3203
+ posting_time?: string | undefined;
3204
+ return_against?: string | undefined;
3205
+ po_no?: string | undefined;
3206
+ po_date?: string | undefined;
3207
+ shipping_address_name?: string | undefined;
3208
+ shipping_address?: string | undefined;
3209
+ dispatch_address_name?: string | undefined;
3210
+ dispatch_address?: string | undefined;
3211
+ contact_person?: string | undefined;
3212
+ contact_display?: string | undefined;
3213
+ contact_mobile?: string | undefined;
3214
+ contact_email?: string | undefined;
3215
+ customer_address?: string | undefined;
3216
+ tax_id?: string | undefined;
3217
+ address_display?: string | undefined;
3218
+ company_address?: string | undefined;
3219
+ company_address_display?: string | undefined;
3220
+ price_list_currency?: string | undefined;
3221
+ set_warehouse?: string | undefined;
3222
+ set_target_warehouse?: string | undefined;
3223
+ scan_barcode?: string | undefined;
3224
+ total_qty?: number | undefined;
3225
+ base_total?: number | undefined;
3226
+ base_net_total?: number | undefined;
3227
+ total_net_weight?: number | undefined;
3228
+ total?: number | undefined;
3229
+ net_total?: number | undefined;
3230
+ shipping_rule?: string | undefined;
3231
+ incoterm?: string | undefined;
3232
+ taxes_and_charges?: string | undefined;
3233
+ other_charges_calculation?: string | undefined;
3234
+ base_total_taxes_and_charges?: number | undefined;
3235
+ total_taxes_and_charges?: number | undefined;
3236
+ base_discount_amount?: number | undefined;
3237
+ additional_discount_percentage?: number | undefined;
3238
+ base_grand_total?: number | undefined;
3239
+ base_rounding_adjustment?: number | undefined;
3240
+ base_rounded_total?: number | undefined;
3241
+ base_in_words?: string | undefined;
3242
+ grand_total?: number | undefined;
3243
+ rounding_adjustment?: number | undefined;
3244
+ rounded_total?: number | undefined;
3245
+ in_words?: string | undefined;
3246
+ tc_name?: string | undefined;
3247
+ terms?: string | undefined;
3248
+ campaign?: string | undefined;
3249
+ source?: string | undefined;
3250
+ represents_company?: string | undefined;
3251
+ customer_group?: string | undefined;
3252
+ territory?: string | undefined;
3253
+ letter_head?: string | undefined;
3254
+ select_print_heading?: string | undefined;
3255
+ auto_repeat?: string | undefined;
3256
+ sales_partner?: string | undefined;
3257
+ amount_eligible_for_commission?: number | undefined;
3258
+ commission_rate?: number | undefined;
3259
+ total_commission?: number | undefined;
3260
+ packed_items?: any[] | undefined;
3261
+ taxes?: {
3262
+ charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
3263
+ included_in_print_rate: 0 | 1;
3264
+ account_head: string;
3265
+ description?: string | undefined;
3266
+ rate?: number | undefined;
3267
+ cost_center?: string | undefined;
3268
+ project?: string | undefined;
3269
+ base_total?: number | undefined;
3270
+ total?: number | undefined;
3271
+ account_currency?: string | undefined;
3272
+ tax_amount?: number | undefined;
3273
+ tax_amount_after_discount_amount?: number | undefined;
3274
+ base_tax_amount?: number | undefined;
3275
+ }[] | undefined;
3276
+ sales_team?: any[] | undefined;
3277
+ due_date?: string | undefined;
3278
+ paid_amount?: number | undefined;
3279
+ total_advance?: number | undefined;
3280
+ outstanding_amount?: number | undefined;
3281
+ base_paid_amount?: number | undefined;
3282
+ write_off_amount?: number | undefined;
3283
+ base_write_off_amount?: number | undefined;
3284
+ payment_terms_template?: string | undefined;
3285
+ party_account_currency?: string | undefined;
3286
+ advances?: {
3287
+ doctype: "Sales Invoice Advance";
3288
+ reference_type: string;
3289
+ reference_name: string;
3290
+ advance_amount: number;
3291
+ remarks?: string | undefined;
3292
+ reference_row?: string | undefined;
3293
+ allocated_amount?: number | undefined;
3294
+ }[] | undefined;
3295
+ payment_schedule?: any[] | undefined;
3296
+ remarks?: string | undefined;
3297
+ company_tax_id?: string | undefined;
3298
+ pos_profile?: string | undefined;
3299
+ named_place?: string | undefined;
3300
+ coupon_code?: string | undefined;
3301
+ additional_discount_account?: string | undefined;
3302
+ timesheets?: any[] | undefined;
3303
+ total_billing_hours?: number | undefined;
3304
+ total_billing_amount?: number | undefined;
3305
+ cash_bank_account?: string | undefined;
3306
+ payments?: {
3307
+ amount: number;
3308
+ mode_of_payment: string;
3309
+ account?: string | undefined;
3310
+ base_amount?: number | undefined;
3311
+ reference_no?: string | undefined;
3312
+ clearance_date?: string | undefined;
3313
+ }[] | undefined;
3314
+ base_change_amount?: number | undefined;
3315
+ change_amount?: number | undefined;
3316
+ account_for_change_amount?: string | undefined;
3317
+ write_off_account?: string | undefined;
3318
+ write_off_cost_center?: string | undefined;
3319
+ loyalty_points?: number | undefined;
3320
+ loyalty_amount?: number | undefined;
3321
+ loyalty_program?: string | undefined;
3322
+ loyalty_redemption_account?: string | undefined;
3323
+ loyalty_redemption_cost_center?: string | undefined;
3324
+ unrealized_profit_loss_account?: string | undefined;
3325
+ against_income_account?: string | undefined;
3326
+ subscription?: string | undefined;
3327
+ from_date?: string | undefined;
3328
+ to_date?: string | undefined;
3329
+ update_auto_repeat_reference?: string | undefined;
3330
+ inter_company_invoice_reference?: string | undefined;
3331
+ }>;
3332
+ }