erpnext-queue-client 1.39.2 → 2.0.0-beta.1

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