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