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