erpnext-queue-client 2.9.2 → 2.9.3
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.
|
@@ -1339,11 +1339,8 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
1339
1339
|
repost_required?: unknown;
|
|
1340
1340
|
}>;
|
|
1341
1341
|
export type SalesInvoiceType = z.infer<typeof SalesInvoice>;
|
|
1342
|
-
export declare const SalesInvoiceDraft: z.ZodObject<
|
|
1343
|
-
|
|
1344
|
-
naming_series: z.ZodDefault<z.ZodEnum<["INV-.#", "INV-.#-GS"]>> & {
|
|
1345
|
-
__optionalForInput: true;
|
|
1346
|
-
};
|
|
1342
|
+
export declare const SalesInvoiceDraft: z.ZodObject<{
|
|
1343
|
+
naming_series: z.ZodOptional<z.ZodDefault<z.ZodEnum<["INV-.#", "INV-.#-GS"]>>>;
|
|
1347
1344
|
title: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1348
1345
|
amended_from: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1349
1346
|
customer: z.ZodString;
|
|
@@ -1352,66 +1349,36 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1352
1349
|
company_tax_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1353
1350
|
posting_date: z.ZodString;
|
|
1354
1351
|
posting_time: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1355
|
-
set_posting_time: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1356
|
-
__optionalForInput: true;
|
|
1357
|
-
};
|
|
1352
|
+
set_posting_time: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1358
1353
|
due_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1359
1354
|
company: z.ZodString;
|
|
1360
|
-
is_pos: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1361
|
-
__optionalForInput: true;
|
|
1362
|
-
};
|
|
1355
|
+
is_pos: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1363
1356
|
pos_profile: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1364
|
-
is_return: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1365
|
-
__optionalForInput: true;
|
|
1366
|
-
};
|
|
1357
|
+
is_return: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1367
1358
|
return_against: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1368
|
-
is_debit_note: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
};
|
|
1374
|
-
update_billed_amount_in_sales_order: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1375
|
-
__optionalForInput: true;
|
|
1376
|
-
};
|
|
1377
|
-
update_billed_amount_in_delivery_note: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1378
|
-
__optionalForInput: true;
|
|
1379
|
-
};
|
|
1380
|
-
is_consolidated: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1381
|
-
__optionalForInput: true;
|
|
1382
|
-
};
|
|
1359
|
+
is_debit_note: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1360
|
+
update_outstanding_for_self: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1361
|
+
update_billed_amount_in_sales_order: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1362
|
+
update_billed_amount_in_delivery_note: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1363
|
+
is_consolidated: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1383
1364
|
currency: z.ZodString;
|
|
1384
|
-
conversion_rate: z.ZodDefault<z.ZodNumber
|
|
1385
|
-
__optionalForInput: true;
|
|
1386
|
-
};
|
|
1365
|
+
conversion_rate: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1387
1366
|
selling_price_list: z.ZodString;
|
|
1388
1367
|
price_list_currency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1389
|
-
plc_conversion_rate: z.ZodDefault<z.ZodNumber
|
|
1390
|
-
|
|
1391
|
-
};
|
|
1392
|
-
ignore_pricing_rule: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1393
|
-
__optionalForInput: true;
|
|
1394
|
-
};
|
|
1368
|
+
plc_conversion_rate: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
1369
|
+
ignore_pricing_rule: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1395
1370
|
custom_shipping_cost: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1396
|
-
custom_tax_included_in_shipping_cost: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1397
|
-
|
|
1398
|
-
};
|
|
1399
|
-
update_stock: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1400
|
-
__optionalForInput: true;
|
|
1401
|
-
};
|
|
1371
|
+
custom_tax_included_in_shipping_cost: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1372
|
+
update_stock: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1402
1373
|
scan_barcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1403
1374
|
set_warehouse: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1404
1375
|
set_target_warehouse: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1405
1376
|
items: z.ZodArray<z.ZodObject<{
|
|
1406
1377
|
barcode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1407
|
-
has_item_scanned: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1408
|
-
__optionalForInput: true;
|
|
1409
|
-
};
|
|
1378
|
+
has_item_scanned: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1410
1379
|
item_code: z.ZodString;
|
|
1411
1380
|
customer_item_code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1412
|
-
item_name: z.ZodString
|
|
1413
|
-
__optionalForInput: true;
|
|
1414
|
-
};
|
|
1381
|
+
item_name: z.ZodOptional<z.ZodString>;
|
|
1415
1382
|
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1416
1383
|
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1417
1384
|
item_group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1436,19 +1403,13 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1436
1403
|
item_tax_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1437
1404
|
pricing_rules: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1438
1405
|
stock_uom_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1439
|
-
is_free_item: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1440
|
-
|
|
1441
|
-
};
|
|
1442
|
-
grant_commission: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1443
|
-
__optionalForInput: true;
|
|
1444
|
-
};
|
|
1406
|
+
is_free_item: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1407
|
+
grant_commission: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1445
1408
|
net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1446
1409
|
net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1447
1410
|
base_net_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1448
1411
|
base_net_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1449
|
-
delivered_by_supplier: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1450
|
-
__optionalForInput: true;
|
|
1451
|
-
};
|
|
1412
|
+
delivered_by_supplier: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1452
1413
|
weight_per_unit: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1453
1414
|
total_weight: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1454
1415
|
weight_uom: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1457,9 +1418,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1457
1418
|
quality_inspection: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1458
1419
|
serial_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1459
1420
|
batch_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1460
|
-
allow_zero_valuation_rate: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1461
|
-
__optionalForInput: true;
|
|
1462
|
-
};
|
|
1421
|
+
allow_zero_valuation_rate: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1463
1422
|
incoming_rate: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1464
1423
|
item_tax_rate: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1465
1424
|
actual_batch_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1470,81 +1429,33 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1470
1429
|
dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1471
1430
|
delivered_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1472
1431
|
sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1473
|
-
income_account: z.ZodString
|
|
1474
|
-
__optionalForInput: true;
|
|
1475
|
-
};
|
|
1432
|
+
income_account: z.ZodOptional<z.ZodString>;
|
|
1476
1433
|
expense_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1477
1434
|
cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1478
1435
|
discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1479
|
-
enable_deferred_revenue: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1480
|
-
__optionalForInput: true;
|
|
1481
|
-
};
|
|
1436
|
+
enable_deferred_revenue: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1482
1437
|
deferred_revenue_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1483
1438
|
service_start_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1484
1439
|
service_stop_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1485
1440
|
service_end_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1486
|
-
is_fixed_asset: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1487
|
-
__optionalForInput: true;
|
|
1488
|
-
};
|
|
1441
|
+
is_fixed_asset: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1489
1442
|
asset: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1490
1443
|
finance_book: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1491
1444
|
project: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1492
|
-
page_break: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1493
|
-
|
|
1494
|
-
};
|
|
1495
|
-
use_serial_batch_fields: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1496
|
-
__optionalForInput: true;
|
|
1497
|
-
};
|
|
1445
|
+
page_break: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1446
|
+
use_serial_batch_fields: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1498
1447
|
serial_and_batch_bundle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1499
1448
|
purchase_order: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1500
1449
|
purchase_order_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1501
|
-
} & {
|
|
1502
|
-
name: z.ZodString;
|
|
1503
|
-
owner: z.ZodString;
|
|
1504
|
-
creation: z.ZodString;
|
|
1505
|
-
modified: z.ZodString;
|
|
1506
|
-
modified_by: z.ZodString;
|
|
1507
|
-
idx: z.ZodNumber;
|
|
1508
|
-
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
1509
|
-
__optionalForInput: true;
|
|
1510
|
-
};
|
|
1511
|
-
doctype: z.ZodString;
|
|
1512
|
-
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1513
|
-
} & {
|
|
1514
|
-
parent: z.ZodString;
|
|
1515
|
-
parenttype: z.ZodString;
|
|
1516
|
-
parentfield: z.ZodString;
|
|
1517
1450
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1518
|
-
name: string;
|
|
1519
|
-
docstatus: number;
|
|
1520
|
-
owner: string;
|
|
1521
|
-
creation: string;
|
|
1522
|
-
modified: string;
|
|
1523
|
-
modified_by: string;
|
|
1524
|
-
idx: number;
|
|
1525
|
-
doctype: string;
|
|
1526
|
-
parent: string;
|
|
1527
|
-
parenttype: string;
|
|
1528
|
-
parentfield: string;
|
|
1529
1451
|
item_code: string;
|
|
1530
|
-
item_name: string;
|
|
1531
1452
|
qty: number;
|
|
1532
1453
|
rate: number;
|
|
1533
|
-
delivered_by_supplier: 0 | 1;
|
|
1534
1454
|
uom: string;
|
|
1535
|
-
is_free_item: 0 | 1;
|
|
1536
|
-
grant_commission: 0 | 1;
|
|
1537
|
-
allow_zero_valuation_rate: 0 | 1;
|
|
1538
|
-
page_break: 0 | 1;
|
|
1539
|
-
is_fixed_asset: 0 | 1;
|
|
1540
|
-
enable_deferred_revenue: 0 | 1;
|
|
1541
|
-
has_item_scanned: 0 | 1;
|
|
1542
|
-
income_account: string;
|
|
1543
|
-
use_serial_batch_fields: 0 | 1;
|
|
1544
1455
|
description?: string | null | undefined;
|
|
1545
1456
|
brand?: string | null | undefined;
|
|
1546
|
-
_user_tags?: string | null | undefined;
|
|
1547
1457
|
image?: string | null | undefined;
|
|
1458
|
+
item_name?: string | undefined;
|
|
1548
1459
|
item_tax_template?: string | null | undefined;
|
|
1549
1460
|
amount?: number | null | undefined;
|
|
1550
1461
|
base_rate?: number | null | undefined;
|
|
@@ -1553,6 +1464,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1553
1464
|
net_amount?: number | null | undefined;
|
|
1554
1465
|
base_net_rate?: number | null | undefined;
|
|
1555
1466
|
base_net_amount?: number | null | undefined;
|
|
1467
|
+
delivered_by_supplier?: 0 | 1 | undefined;
|
|
1556
1468
|
weight_per_unit?: number | null | undefined;
|
|
1557
1469
|
total_weight?: number | null | undefined;
|
|
1558
1470
|
weight_uom?: string | null | undefined;
|
|
@@ -1579,6 +1491,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1579
1491
|
base_rate_with_margin?: number | null | undefined;
|
|
1580
1492
|
pricing_rules?: string | null | undefined;
|
|
1581
1493
|
stock_uom_rate?: number | null | undefined;
|
|
1494
|
+
is_free_item?: 0 | 1 | undefined;
|
|
1495
|
+
grant_commission?: 0 | 1 | undefined;
|
|
1582
1496
|
incoming_rate?: number | null | undefined;
|
|
1583
1497
|
warehouse?: string | null | undefined;
|
|
1584
1498
|
target_warehouse?: string | null | undefined;
|
|
@@ -1589,9 +1503,15 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1589
1503
|
actual_qty?: number | null | undefined;
|
|
1590
1504
|
item_tax_rate?: string | null | undefined;
|
|
1591
1505
|
expense_account?: string | null | undefined;
|
|
1506
|
+
allow_zero_valuation_rate?: 0 | 1 | undefined;
|
|
1507
|
+
page_break?: 0 | 1 | undefined;
|
|
1508
|
+
is_fixed_asset?: 0 | 1 | undefined;
|
|
1509
|
+
enable_deferred_revenue?: 0 | 1 | undefined;
|
|
1592
1510
|
purchase_order?: string | null | undefined;
|
|
1593
1511
|
purchase_order_item?: string | null | undefined;
|
|
1512
|
+
has_item_scanned?: 0 | 1 | undefined;
|
|
1594
1513
|
delivered_qty?: number | null | undefined;
|
|
1514
|
+
income_account?: string | undefined;
|
|
1595
1515
|
discount_account?: string | null | undefined;
|
|
1596
1516
|
deferred_revenue_account?: string | null | undefined;
|
|
1597
1517
|
service_start_date?: string | null | undefined;
|
|
@@ -1599,29 +1519,17 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1599
1519
|
service_end_date?: string | null | undefined;
|
|
1600
1520
|
asset?: string | null | undefined;
|
|
1601
1521
|
finance_book?: string | null | undefined;
|
|
1522
|
+
use_serial_batch_fields?: 0 | 1 | undefined;
|
|
1602
1523
|
serial_and_batch_bundle?: string | null | undefined;
|
|
1603
1524
|
}, {
|
|
1604
|
-
name: string;
|
|
1605
|
-
owner: string;
|
|
1606
|
-
creation: string;
|
|
1607
|
-
modified: string;
|
|
1608
|
-
modified_by: string;
|
|
1609
|
-
idx: number;
|
|
1610
|
-
doctype: string;
|
|
1611
|
-
parent: string;
|
|
1612
|
-
parenttype: string;
|
|
1613
|
-
parentfield: string;
|
|
1614
1525
|
item_code: string;
|
|
1615
|
-
item_name: string;
|
|
1616
1526
|
qty: number;
|
|
1617
1527
|
rate: number;
|
|
1618
1528
|
uom: string;
|
|
1619
|
-
income_account: string;
|
|
1620
1529
|
description?: string | null | undefined;
|
|
1621
1530
|
brand?: string | null | undefined;
|
|
1622
|
-
docstatus?: number | undefined;
|
|
1623
|
-
_user_tags?: string | null | undefined;
|
|
1624
1531
|
image?: string | null | undefined;
|
|
1532
|
+
item_name?: string | undefined;
|
|
1625
1533
|
item_tax_template?: string | null | undefined;
|
|
1626
1534
|
amount?: number | null | undefined;
|
|
1627
1535
|
base_rate?: number | null | undefined;
|
|
@@ -1677,6 +1585,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1677
1585
|
purchase_order_item?: string | null | undefined;
|
|
1678
1586
|
has_item_scanned?: unknown;
|
|
1679
1587
|
delivered_qty?: number | null | undefined;
|
|
1588
|
+
income_account?: string | undefined;
|
|
1680
1589
|
discount_account?: string | null | undefined;
|
|
1681
1590
|
deferred_revenue_account?: string | null | undefined;
|
|
1682
1591
|
service_start_date?: string | null | undefined;
|
|
@@ -1714,39 +1623,11 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1714
1623
|
base_total: z.ZodOptional<z.ZodNumber>;
|
|
1715
1624
|
total: z.ZodOptional<z.ZodNumber>;
|
|
1716
1625
|
tax_amount_after_discount_amount: z.ZodOptional<z.ZodNumber>;
|
|
1717
|
-
}
|
|
1718
|
-
name: z.ZodString;
|
|
1719
|
-
owner: z.ZodString;
|
|
1720
|
-
creation: z.ZodString;
|
|
1721
|
-
modified: z.ZodString;
|
|
1722
|
-
modified_by: z.ZodString;
|
|
1723
|
-
idx: z.ZodNumber;
|
|
1724
|
-
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
1725
|
-
__optionalForInput: true;
|
|
1726
|
-
};
|
|
1727
|
-
doctype: z.ZodString;
|
|
1728
|
-
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1729
|
-
} & {
|
|
1730
|
-
parent: z.ZodString;
|
|
1731
|
-
parenttype: z.ZodString;
|
|
1732
|
-
parentfield: z.ZodString;
|
|
1733
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1734
|
-
name: string;
|
|
1735
|
-
docstatus: number;
|
|
1736
|
-
owner: string;
|
|
1737
|
-
creation: string;
|
|
1738
|
-
modified: string;
|
|
1739
|
-
modified_by: string;
|
|
1740
|
-
idx: number;
|
|
1741
|
-
doctype: string;
|
|
1742
|
-
parent: string;
|
|
1743
|
-
parenttype: string;
|
|
1744
|
-
parentfield: string;
|
|
1626
|
+
}, "strip", z.ZodTypeAny, {
|
|
1745
1627
|
charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
|
|
1746
1628
|
account_head: string;
|
|
1747
1629
|
included_in_print_rate: 0 | 1;
|
|
1748
1630
|
description?: string | undefined;
|
|
1749
|
-
_user_tags?: string | null | undefined;
|
|
1750
1631
|
account_currency?: string | undefined;
|
|
1751
1632
|
rate?: number | undefined;
|
|
1752
1633
|
base_total?: number | undefined;
|
|
@@ -1757,21 +1638,9 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1757
1638
|
tax_amount?: number | undefined;
|
|
1758
1639
|
tax_amount_after_discount_amount?: number | undefined;
|
|
1759
1640
|
}, {
|
|
1760
|
-
name: string;
|
|
1761
|
-
owner: string;
|
|
1762
|
-
creation: string;
|
|
1763
|
-
modified: string;
|
|
1764
|
-
modified_by: string;
|
|
1765
|
-
idx: number;
|
|
1766
|
-
doctype: string;
|
|
1767
|
-
parent: string;
|
|
1768
|
-
parenttype: string;
|
|
1769
|
-
parentfield: string;
|
|
1770
1641
|
charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
|
|
1771
1642
|
account_head: string;
|
|
1772
1643
|
description?: string | undefined;
|
|
1773
|
-
docstatus?: number | undefined;
|
|
1774
|
-
_user_tags?: string | null | undefined;
|
|
1775
1644
|
account_currency?: string | undefined;
|
|
1776
1645
|
rate?: number | undefined;
|
|
1777
1646
|
base_total?: number | undefined;
|
|
@@ -1794,22 +1663,14 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1794
1663
|
rounding_adjustment: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1795
1664
|
rounded_total: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1796
1665
|
in_words: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1797
|
-
disable_rounded_total: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
use_company_roundoff_cost_center: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1801
|
-
__optionalForInput: true;
|
|
1802
|
-
};
|
|
1803
|
-
apply_discount_on: z.ZodDefault<z.ZodEnum<["", "Grand Total", "Net Total"]>> & {
|
|
1804
|
-
__optionalForInput: true;
|
|
1805
|
-
};
|
|
1666
|
+
disable_rounded_total: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1667
|
+
use_company_roundoff_cost_center: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1668
|
+
apply_discount_on: z.ZodOptional<z.ZodDefault<z.ZodEnum<["", "Grand Total", "Net Total"]>>>;
|
|
1806
1669
|
base_discount_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1807
1670
|
additional_discount_percentage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1808
1671
|
discount_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1809
1672
|
coupon_code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1810
|
-
is_cash_or_non_trade_discount: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1811
|
-
__optionalForInput: true;
|
|
1812
|
-
};
|
|
1673
|
+
is_cash_or_non_trade_discount: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1813
1674
|
additional_discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1814
1675
|
pricing_rules: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
1815
1676
|
packed_items: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
@@ -1831,9 +1692,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1831
1692
|
company_address_display: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1832
1693
|
po_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1833
1694
|
po_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1834
|
-
ignore_default_payment_terms_template: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1835
|
-
__optionalForInput: true;
|
|
1836
|
-
};
|
|
1695
|
+
ignore_default_payment_terms_template: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1837
1696
|
payment_terms_template: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1838
1697
|
payment_schedule: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
1839
1698
|
tc_name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -1846,56 +1705,16 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1846
1705
|
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1847
1706
|
reference_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1848
1707
|
clearance_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1849
|
-
}
|
|
1850
|
-
name: z.ZodString;
|
|
1851
|
-
owner: z.ZodString;
|
|
1852
|
-
creation: z.ZodString;
|
|
1853
|
-
modified: z.ZodString;
|
|
1854
|
-
modified_by: z.ZodString;
|
|
1855
|
-
idx: z.ZodNumber;
|
|
1856
|
-
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
1857
|
-
__optionalForInput: true;
|
|
1858
|
-
};
|
|
1859
|
-
doctype: z.ZodString;
|
|
1860
|
-
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1861
|
-
} & {
|
|
1862
|
-
parent: z.ZodString;
|
|
1863
|
-
parenttype: z.ZodString;
|
|
1864
|
-
parentfield: z.ZodString;
|
|
1865
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1866
|
-
name: string;
|
|
1867
|
-
docstatus: number;
|
|
1868
|
-
owner: string;
|
|
1869
|
-
creation: string;
|
|
1870
|
-
modified: string;
|
|
1871
|
-
modified_by: string;
|
|
1872
|
-
idx: number;
|
|
1873
|
-
doctype: string;
|
|
1874
|
-
parent: string;
|
|
1875
|
-
parenttype: string;
|
|
1876
|
-
parentfield: string;
|
|
1708
|
+
}, "strip", z.ZodTypeAny, {
|
|
1877
1709
|
amount: number;
|
|
1878
1710
|
mode_of_payment: string;
|
|
1879
|
-
_user_tags?: string | null | undefined;
|
|
1880
1711
|
base_amount?: number | null | undefined;
|
|
1881
1712
|
account?: string | null | undefined;
|
|
1882
1713
|
reference_no?: string | null | undefined;
|
|
1883
1714
|
clearance_date?: string | null | undefined;
|
|
1884
1715
|
}, {
|
|
1885
|
-
name: string;
|
|
1886
|
-
owner: string;
|
|
1887
|
-
creation: string;
|
|
1888
|
-
modified: string;
|
|
1889
|
-
modified_by: string;
|
|
1890
|
-
idx: number;
|
|
1891
|
-
doctype: string;
|
|
1892
|
-
parent: string;
|
|
1893
|
-
parenttype: string;
|
|
1894
|
-
parentfield: string;
|
|
1895
1716
|
amount: number;
|
|
1896
1717
|
mode_of_payment: string;
|
|
1897
|
-
docstatus?: number | undefined;
|
|
1898
|
-
_user_tags?: string | null | undefined;
|
|
1899
1718
|
base_amount?: number | null | undefined;
|
|
1900
1719
|
account?: string | null | undefined;
|
|
1901
1720
|
reference_no?: string | null | undefined;
|
|
@@ -1906,12 +1725,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1906
1725
|
base_change_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1907
1726
|
change_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1908
1727
|
account_for_change_amount: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1909
|
-
allocate_advances_automatically: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1910
|
-
|
|
1911
|
-
};
|
|
1912
|
-
only_include_allocated_payments: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1913
|
-
__optionalForInput: true;
|
|
1914
|
-
};
|
|
1728
|
+
allocate_advances_automatically: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1729
|
+
only_include_allocated_payments: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1915
1730
|
advances: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1916
1731
|
doctype: z.ZodLiteral<"Sales Invoice Advance">;
|
|
1917
1732
|
reference_type: z.ZodString;
|
|
@@ -1920,77 +1735,33 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1920
1735
|
advance_amount: z.ZodNumber;
|
|
1921
1736
|
allocated_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1922
1737
|
remarks: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1923
|
-
}
|
|
1924
|
-
name: z.ZodString;
|
|
1925
|
-
owner: z.ZodString;
|
|
1926
|
-
creation: z.ZodString;
|
|
1927
|
-
modified: z.ZodString;
|
|
1928
|
-
modified_by: z.ZodString;
|
|
1929
|
-
idx: z.ZodNumber;
|
|
1930
|
-
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
1931
|
-
__optionalForInput: true;
|
|
1932
|
-
};
|
|
1933
|
-
doctype: z.ZodString;
|
|
1934
|
-
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1935
|
-
} & {
|
|
1936
|
-
parent: z.ZodString;
|
|
1937
|
-
parenttype: z.ZodString;
|
|
1938
|
-
parentfield: z.ZodString;
|
|
1939
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
1940
|
-
name: string;
|
|
1941
|
-
docstatus: number;
|
|
1942
|
-
owner: string;
|
|
1943
|
-
creation: string;
|
|
1944
|
-
modified: string;
|
|
1945
|
-
modified_by: string;
|
|
1946
|
-
idx: number;
|
|
1738
|
+
}, "strip", z.ZodTypeAny, {
|
|
1947
1739
|
doctype: "Sales Invoice Advance";
|
|
1948
|
-
parent: string;
|
|
1949
|
-
parenttype: string;
|
|
1950
|
-
parentfield: string;
|
|
1951
1740
|
reference_name: string;
|
|
1952
1741
|
reference_type: string;
|
|
1953
1742
|
advance_amount: number;
|
|
1954
|
-
_user_tags?: string | null | undefined;
|
|
1955
1743
|
allocated_amount?: number | null | undefined;
|
|
1956
1744
|
remarks?: string | null | undefined;
|
|
1957
1745
|
reference_row?: string | null | undefined;
|
|
1958
1746
|
}, {
|
|
1959
|
-
name: string;
|
|
1960
|
-
owner: string;
|
|
1961
|
-
creation: string;
|
|
1962
|
-
modified: string;
|
|
1963
|
-
modified_by: string;
|
|
1964
|
-
idx: number;
|
|
1965
1747
|
doctype: "Sales Invoice Advance";
|
|
1966
|
-
parent: string;
|
|
1967
|
-
parenttype: string;
|
|
1968
|
-
parentfield: string;
|
|
1969
1748
|
reference_name: string;
|
|
1970
1749
|
reference_type: string;
|
|
1971
1750
|
advance_amount: number;
|
|
1972
|
-
docstatus?: number | undefined;
|
|
1973
|
-
_user_tags?: string | null | undefined;
|
|
1974
1751
|
allocated_amount?: number | null | undefined;
|
|
1975
1752
|
remarks?: string | null | undefined;
|
|
1976
1753
|
reference_row?: string | null | undefined;
|
|
1977
1754
|
}>, "many">>>;
|
|
1978
1755
|
write_off_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1979
1756
|
base_write_off_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1980
|
-
write_off_outstanding_amount_automatically: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1981
|
-
__optionalForInput: true;
|
|
1982
|
-
};
|
|
1757
|
+
write_off_outstanding_amount_automatically: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1983
1758
|
write_off_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1984
1759
|
write_off_cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1985
|
-
redeem_loyalty_points: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1986
|
-
__optionalForInput: true;
|
|
1987
|
-
};
|
|
1760
|
+
redeem_loyalty_points: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1988
1761
|
loyalty_points: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1989
1762
|
loyalty_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1990
1763
|
loyalty_program: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1991
|
-
dont_create_loyalty_points: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
1992
|
-
__optionalForInput: true;
|
|
1993
|
-
};
|
|
1764
|
+
dont_create_loyalty_points: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1994
1765
|
loyalty_redemption_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1995
1766
|
loyalty_redemption_cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1996
1767
|
total_advance: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1999,14 +1770,10 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1999
1770
|
project: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2000
1771
|
debit_to: z.ZodString;
|
|
2001
1772
|
party_account_currency: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2002
|
-
is_opening: z.ZodDefault<z.ZodEnum<["No", "Yes"]
|
|
2003
|
-
__optionalForInput: true;
|
|
2004
|
-
};
|
|
1773
|
+
is_opening: z.ZodOptional<z.ZodDefault<z.ZodEnum<["No", "Yes"]>>>;
|
|
2005
1774
|
unrealized_profit_loss_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2006
1775
|
against_income_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2007
|
-
is_internal_customer: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
2008
|
-
__optionalForInput: true;
|
|
2009
|
-
};
|
|
1776
|
+
is_internal_customer: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
2010
1777
|
represents_company: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2011
1778
|
sales_partner: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2012
1779
|
amount_eligible_for_commission: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -2014,9 +1781,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2014
1781
|
total_commission: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
2015
1782
|
sales_team: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
2016
1783
|
letter_head: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2017
|
-
group_same_items: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
2018
|
-
__optionalForInput: true;
|
|
2019
|
-
};
|
|
1784
|
+
group_same_items: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
2020
1785
|
select_print_heading: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2021
1786
|
language: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2022
1787
|
subscription: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
@@ -2024,79 +1789,31 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2024
1789
|
to_date: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2025
1790
|
auto_repeat: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2026
1791
|
update_auto_repeat_reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2027
|
-
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"]
|
|
2028
|
-
__optionalForInput: true;
|
|
2029
|
-
};
|
|
1792
|
+
status: z.ZodOptional<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"]>>>;
|
|
2030
1793
|
source: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2031
1794
|
customer_group: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2032
|
-
is_discounted: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
2033
|
-
__optionalForInput: true;
|
|
2034
|
-
};
|
|
1795
|
+
is_discounted: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
2035
1796
|
remarks: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2036
1797
|
campaign: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2037
1798
|
inter_company_invoice_reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2038
|
-
repost_required: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown
|
|
2039
|
-
|
|
2040
|
-
};
|
|
1799
|
+
repost_required: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>>>;
|
|
1800
|
+
docstatus: z.ZodOptional<z.ZodNumber>;
|
|
2041
1801
|
} & {
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
creation: z.ZodString;
|
|
2045
|
-
modified: z.ZodString;
|
|
2046
|
-
modified_by: z.ZodString;
|
|
2047
|
-
idx: z.ZodNumber;
|
|
2048
|
-
docstatus: z.ZodDefault<z.ZodNumber> & {
|
|
2049
|
-
__optionalForInput: true;
|
|
2050
|
-
};
|
|
2051
|
-
doctype: z.ZodString;
|
|
2052
|
-
_user_tags: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2053
|
-
}, "name">, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2054
|
-
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";
|
|
2055
|
-
docstatus: number;
|
|
2056
|
-
owner: string;
|
|
2057
|
-
creation: string;
|
|
2058
|
-
modified: string;
|
|
2059
|
-
modified_by: string;
|
|
2060
|
-
idx: number;
|
|
2061
|
-
doctype: string;
|
|
1802
|
+
custom_invoice_no: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1803
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
2062
1804
|
company: string;
|
|
2063
|
-
naming_series: "INV-.#" | "INV-.#-GS";
|
|
2064
1805
|
customer: string;
|
|
2065
1806
|
posting_date: string;
|
|
2066
|
-
set_posting_time: 0 | 1;
|
|
2067
1807
|
currency: string;
|
|
2068
|
-
conversion_rate: number;
|
|
2069
1808
|
items: {
|
|
2070
|
-
name: string;
|
|
2071
|
-
docstatus: number;
|
|
2072
|
-
owner: string;
|
|
2073
|
-
creation: string;
|
|
2074
|
-
modified: string;
|
|
2075
|
-
modified_by: string;
|
|
2076
|
-
idx: number;
|
|
2077
|
-
doctype: string;
|
|
2078
|
-
parent: string;
|
|
2079
|
-
parenttype: string;
|
|
2080
|
-
parentfield: string;
|
|
2081
1809
|
item_code: string;
|
|
2082
|
-
item_name: string;
|
|
2083
1810
|
qty: number;
|
|
2084
1811
|
rate: number;
|
|
2085
|
-
delivered_by_supplier: 0 | 1;
|
|
2086
1812
|
uom: string;
|
|
2087
|
-
is_free_item: 0 | 1;
|
|
2088
|
-
grant_commission: 0 | 1;
|
|
2089
|
-
allow_zero_valuation_rate: 0 | 1;
|
|
2090
|
-
page_break: 0 | 1;
|
|
2091
|
-
is_fixed_asset: 0 | 1;
|
|
2092
|
-
enable_deferred_revenue: 0 | 1;
|
|
2093
|
-
has_item_scanned: 0 | 1;
|
|
2094
|
-
income_account: string;
|
|
2095
|
-
use_serial_batch_fields: 0 | 1;
|
|
2096
1813
|
description?: string | null | undefined;
|
|
2097
1814
|
brand?: string | null | undefined;
|
|
2098
|
-
_user_tags?: string | null | undefined;
|
|
2099
1815
|
image?: string | null | undefined;
|
|
1816
|
+
item_name?: string | undefined;
|
|
2100
1817
|
item_tax_template?: string | null | undefined;
|
|
2101
1818
|
amount?: number | null | undefined;
|
|
2102
1819
|
base_rate?: number | null | undefined;
|
|
@@ -2105,6 +1822,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2105
1822
|
net_amount?: number | null | undefined;
|
|
2106
1823
|
base_net_rate?: number | null | undefined;
|
|
2107
1824
|
base_net_amount?: number | null | undefined;
|
|
1825
|
+
delivered_by_supplier?: 0 | 1 | undefined;
|
|
2108
1826
|
weight_per_unit?: number | null | undefined;
|
|
2109
1827
|
total_weight?: number | null | undefined;
|
|
2110
1828
|
weight_uom?: string | null | undefined;
|
|
@@ -2131,6 +1849,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2131
1849
|
base_rate_with_margin?: number | null | undefined;
|
|
2132
1850
|
pricing_rules?: string | null | undefined;
|
|
2133
1851
|
stock_uom_rate?: number | null | undefined;
|
|
1852
|
+
is_free_item?: 0 | 1 | undefined;
|
|
1853
|
+
grant_commission?: 0 | 1 | undefined;
|
|
2134
1854
|
incoming_rate?: number | null | undefined;
|
|
2135
1855
|
warehouse?: string | null | undefined;
|
|
2136
1856
|
target_warehouse?: string | null | undefined;
|
|
@@ -2141,9 +1861,15 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2141
1861
|
actual_qty?: number | null | undefined;
|
|
2142
1862
|
item_tax_rate?: string | null | undefined;
|
|
2143
1863
|
expense_account?: string | null | undefined;
|
|
1864
|
+
allow_zero_valuation_rate?: 0 | 1 | undefined;
|
|
1865
|
+
page_break?: 0 | 1 | undefined;
|
|
1866
|
+
is_fixed_asset?: 0 | 1 | undefined;
|
|
1867
|
+
enable_deferred_revenue?: 0 | 1 | undefined;
|
|
2144
1868
|
purchase_order?: string | null | undefined;
|
|
2145
1869
|
purchase_order_item?: string | null | undefined;
|
|
1870
|
+
has_item_scanned?: 0 | 1 | undefined;
|
|
2146
1871
|
delivered_qty?: number | null | undefined;
|
|
1872
|
+
income_account?: string | undefined;
|
|
2147
1873
|
discount_account?: string | null | undefined;
|
|
2148
1874
|
deferred_revenue_account?: string | null | undefined;
|
|
2149
1875
|
service_start_date?: string | null | undefined;
|
|
@@ -2151,43 +1877,21 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2151
1877
|
service_end_date?: string | null | undefined;
|
|
2152
1878
|
asset?: string | null | undefined;
|
|
2153
1879
|
finance_book?: string | null | undefined;
|
|
1880
|
+
use_serial_batch_fields?: 0 | 1 | undefined;
|
|
2154
1881
|
serial_and_batch_bundle?: string | null | undefined;
|
|
2155
1882
|
}[];
|
|
2156
|
-
is_return: 0 | 1;
|
|
2157
1883
|
selling_price_list: string;
|
|
2158
|
-
plc_conversion_rate: number;
|
|
2159
|
-
ignore_pricing_rule: 0 | 1;
|
|
2160
|
-
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
2161
|
-
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
2162
|
-
disable_rounded_total: 0 | 1;
|
|
2163
|
-
is_internal_customer: 0 | 1;
|
|
2164
|
-
group_same_items: 0 | 1;
|
|
2165
|
-
update_stock: 0 | 1;
|
|
2166
|
-
allocate_advances_automatically: 0 | 1;
|
|
2167
|
-
ignore_default_payment_terms_template: 0 | 1;
|
|
2168
|
-
is_opening: "No" | "Yes";
|
|
2169
|
-
custom_invoice_no: string;
|
|
2170
|
-
is_pos: 0 | 1;
|
|
2171
|
-
is_debit_note: 0 | 1;
|
|
2172
|
-
update_outstanding_for_self: 0 | 1;
|
|
2173
|
-
update_billed_amount_in_sales_order: 0 | 1;
|
|
2174
|
-
update_billed_amount_in_delivery_note: 0 | 1;
|
|
2175
|
-
is_consolidated: 0 | 1;
|
|
2176
|
-
use_company_roundoff_cost_center: 0 | 1;
|
|
2177
|
-
is_cash_or_non_trade_discount: 0 | 1;
|
|
2178
|
-
only_include_allocated_payments: 0 | 1;
|
|
2179
|
-
write_off_outstanding_amount_automatically: 0 | 1;
|
|
2180
|
-
redeem_loyalty_points: 0 | 1;
|
|
2181
|
-
dont_create_loyalty_points: 0 | 1;
|
|
2182
1884
|
debit_to: string;
|
|
2183
|
-
|
|
2184
|
-
|
|
1885
|
+
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;
|
|
1886
|
+
docstatus?: number | undefined;
|
|
2185
1887
|
amended_from?: string | null | undefined;
|
|
2186
|
-
_user_tags?: string | null | undefined;
|
|
2187
1888
|
tax_category?: string | null | undefined;
|
|
1889
|
+
naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
|
|
2188
1890
|
language?: string | null | undefined;
|
|
2189
1891
|
posting_time?: string | null | undefined;
|
|
1892
|
+
set_posting_time?: 0 | 1 | undefined;
|
|
2190
1893
|
company_tax_id?: string | null | undefined;
|
|
1894
|
+
conversion_rate?: number | undefined;
|
|
2191
1895
|
total_qty?: number | null | undefined;
|
|
2192
1896
|
total_net_weight?: number | null | undefined;
|
|
2193
1897
|
base_total?: number | null | undefined;
|
|
@@ -2203,6 +1907,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2203
1907
|
pricing_rules?: any[] | null | undefined;
|
|
2204
1908
|
title?: string | null | undefined;
|
|
2205
1909
|
customer_name?: string | null | undefined;
|
|
1910
|
+
is_return?: 0 | 1 | undefined;
|
|
2206
1911
|
return_against?: string | null | undefined;
|
|
2207
1912
|
po_no?: string | null | undefined;
|
|
2208
1913
|
po_date?: string | null | undefined;
|
|
@@ -2217,16 +1922,20 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2217
1922
|
company_address?: string | null | undefined;
|
|
2218
1923
|
company_address_display?: string | null | undefined;
|
|
2219
1924
|
price_list_currency?: string | null | undefined;
|
|
1925
|
+
plc_conversion_rate?: number | undefined;
|
|
1926
|
+
ignore_pricing_rule?: 0 | 1 | undefined;
|
|
2220
1927
|
set_warehouse?: string | null | undefined;
|
|
2221
1928
|
set_target_warehouse?: string | null | undefined;
|
|
2222
1929
|
scan_barcode?: string | null | undefined;
|
|
2223
1930
|
shipping_rule?: string | null | undefined;
|
|
2224
1931
|
incoterm?: string | null | undefined;
|
|
2225
1932
|
custom_shipping_cost?: number | null | undefined;
|
|
1933
|
+
custom_tax_included_in_shipping_cost?: 0 | 1 | undefined;
|
|
2226
1934
|
taxes_and_charges?: string | null | undefined;
|
|
2227
1935
|
other_charges_calculation?: string | null | undefined;
|
|
2228
1936
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
2229
1937
|
total_taxes_and_charges?: number | null | undefined;
|
|
1938
|
+
apply_discount_on?: "" | "Grand Total" | "Net Total" | undefined;
|
|
2230
1939
|
base_discount_amount?: number | null | undefined;
|
|
2231
1940
|
additional_discount_percentage?: number | null | undefined;
|
|
2232
1941
|
base_grand_total?: number | null | undefined;
|
|
@@ -2237,15 +1946,18 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2237
1946
|
rounding_adjustment?: number | null | undefined;
|
|
2238
1947
|
rounded_total?: number | null | undefined;
|
|
2239
1948
|
in_words?: string | null | undefined;
|
|
1949
|
+
disable_rounded_total?: 0 | 1 | undefined;
|
|
2240
1950
|
tc_name?: string | null | undefined;
|
|
2241
1951
|
terms?: string | null | undefined;
|
|
2242
1952
|
campaign?: string | null | undefined;
|
|
2243
1953
|
source?: string | null | undefined;
|
|
1954
|
+
is_internal_customer?: 0 | 1 | undefined;
|
|
2244
1955
|
represents_company?: string | null | undefined;
|
|
2245
1956
|
customer_group?: string | null | undefined;
|
|
2246
1957
|
territory?: string | null | undefined;
|
|
2247
1958
|
letter_head?: string | null | undefined;
|
|
2248
1959
|
select_print_heading?: string | null | undefined;
|
|
1960
|
+
group_same_items?: 0 | 1 | undefined;
|
|
2249
1961
|
auto_repeat?: string | null | undefined;
|
|
2250
1962
|
sales_partner?: string | null | undefined;
|
|
2251
1963
|
amount_eligible_for_commission?: number | null | undefined;
|
|
@@ -2253,22 +1965,10 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2253
1965
|
total_commission?: number | null | undefined;
|
|
2254
1966
|
packed_items?: any[] | null | undefined;
|
|
2255
1967
|
taxes?: {
|
|
2256
|
-
name: string;
|
|
2257
|
-
docstatus: number;
|
|
2258
|
-
owner: string;
|
|
2259
|
-
creation: string;
|
|
2260
|
-
modified: string;
|
|
2261
|
-
modified_by: string;
|
|
2262
|
-
idx: number;
|
|
2263
|
-
doctype: string;
|
|
2264
|
-
parent: string;
|
|
2265
|
-
parenttype: string;
|
|
2266
|
-
parentfield: string;
|
|
2267
1968
|
charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
|
|
2268
1969
|
account_head: string;
|
|
2269
1970
|
included_in_print_rate: 0 | 1;
|
|
2270
1971
|
description?: string | undefined;
|
|
2271
|
-
_user_tags?: string | null | undefined;
|
|
2272
1972
|
account_currency?: string | undefined;
|
|
2273
1973
|
rate?: number | undefined;
|
|
2274
1974
|
base_total?: number | undefined;
|
|
@@ -2285,55 +1985,45 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2285
1985
|
base_paid_amount?: number | null | undefined;
|
|
2286
1986
|
remarks?: string | null | undefined;
|
|
2287
1987
|
due_date?: string | null | undefined;
|
|
1988
|
+
update_stock?: 0 | 1 | undefined;
|
|
2288
1989
|
total_advance?: number | null | undefined;
|
|
2289
1990
|
write_off_amount?: number | null | undefined;
|
|
2290
1991
|
base_write_off_amount?: number | null | undefined;
|
|
1992
|
+
allocate_advances_automatically?: 0 | 1 | undefined;
|
|
2291
1993
|
payment_terms_template?: string | null | undefined;
|
|
1994
|
+
ignore_default_payment_terms_template?: 0 | 1 | undefined;
|
|
2292
1995
|
party_account_currency?: string | null | undefined;
|
|
1996
|
+
is_opening?: "No" | "Yes" | undefined;
|
|
2293
1997
|
advances?: {
|
|
2294
|
-
name: string;
|
|
2295
|
-
docstatus: number;
|
|
2296
|
-
owner: string;
|
|
2297
|
-
creation: string;
|
|
2298
|
-
modified: string;
|
|
2299
|
-
modified_by: string;
|
|
2300
|
-
idx: number;
|
|
2301
1998
|
doctype: "Sales Invoice Advance";
|
|
2302
|
-
parent: string;
|
|
2303
|
-
parenttype: string;
|
|
2304
|
-
parentfield: string;
|
|
2305
1999
|
reference_name: string;
|
|
2306
2000
|
reference_type: string;
|
|
2307
2001
|
advance_amount: number;
|
|
2308
|
-
_user_tags?: string | null | undefined;
|
|
2309
2002
|
allocated_amount?: number | null | undefined;
|
|
2310
2003
|
remarks?: string | null | undefined;
|
|
2311
2004
|
reference_row?: string | null | undefined;
|
|
2312
2005
|
}[] | null | undefined;
|
|
2313
2006
|
payment_schedule?: any[] | null | undefined;
|
|
2007
|
+
custom_invoice_no?: string | null | undefined;
|
|
2008
|
+
is_pos?: 0 | 1 | undefined;
|
|
2314
2009
|
pos_profile?: string | null | undefined;
|
|
2010
|
+
is_debit_note?: 0 | 1 | undefined;
|
|
2011
|
+
update_outstanding_for_self?: 0 | 1 | undefined;
|
|
2012
|
+
update_billed_amount_in_sales_order?: 0 | 1 | undefined;
|
|
2013
|
+
update_billed_amount_in_delivery_note?: 0 | 1 | undefined;
|
|
2014
|
+
is_consolidated?: 0 | 1 | undefined;
|
|
2315
2015
|
named_place?: string | null | undefined;
|
|
2016
|
+
use_company_roundoff_cost_center?: 0 | 1 | undefined;
|
|
2316
2017
|
coupon_code?: string | null | undefined;
|
|
2018
|
+
is_cash_or_non_trade_discount?: 0 | 1 | undefined;
|
|
2317
2019
|
additional_discount_account?: string | null | undefined;
|
|
2318
2020
|
timesheets?: any[] | null | undefined;
|
|
2319
2021
|
total_billing_hours?: number | null | undefined;
|
|
2320
2022
|
total_billing_amount?: number | null | undefined;
|
|
2321
2023
|
cash_bank_account?: string | null | undefined;
|
|
2322
2024
|
payments?: {
|
|
2323
|
-
name: string;
|
|
2324
|
-
docstatus: number;
|
|
2325
|
-
owner: string;
|
|
2326
|
-
creation: string;
|
|
2327
|
-
modified: string;
|
|
2328
|
-
modified_by: string;
|
|
2329
|
-
idx: number;
|
|
2330
|
-
doctype: string;
|
|
2331
|
-
parent: string;
|
|
2332
|
-
parenttype: string;
|
|
2333
|
-
parentfield: string;
|
|
2334
2025
|
amount: number;
|
|
2335
2026
|
mode_of_payment: string;
|
|
2336
|
-
_user_tags?: string | null | undefined;
|
|
2337
2027
|
base_amount?: number | null | undefined;
|
|
2338
2028
|
account?: string | null | undefined;
|
|
2339
2029
|
reference_no?: string | null | undefined;
|
|
@@ -2342,11 +2032,15 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2342
2032
|
base_change_amount?: number | null | undefined;
|
|
2343
2033
|
change_amount?: number | null | undefined;
|
|
2344
2034
|
account_for_change_amount?: string | null | undefined;
|
|
2035
|
+
only_include_allocated_payments?: 0 | 1 | undefined;
|
|
2036
|
+
write_off_outstanding_amount_automatically?: 0 | 1 | undefined;
|
|
2345
2037
|
write_off_account?: string | null | undefined;
|
|
2346
2038
|
write_off_cost_center?: string | null | undefined;
|
|
2039
|
+
redeem_loyalty_points?: 0 | 1 | undefined;
|
|
2347
2040
|
loyalty_points?: number | null | undefined;
|
|
2348
2041
|
loyalty_amount?: number | null | undefined;
|
|
2349
2042
|
loyalty_program?: string | null | undefined;
|
|
2043
|
+
dont_create_loyalty_points?: 0 | 1 | undefined;
|
|
2350
2044
|
loyalty_redemption_account?: string | null | undefined;
|
|
2351
2045
|
loyalty_redemption_cost_center?: string | null | undefined;
|
|
2352
2046
|
unrealized_profit_loss_account?: string | null | undefined;
|
|
@@ -2355,40 +2049,23 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2355
2049
|
from_date?: string | null | undefined;
|
|
2356
2050
|
to_date?: string | null | undefined;
|
|
2357
2051
|
update_auto_repeat_reference?: string | null | undefined;
|
|
2052
|
+
is_discounted?: 0 | 1 | undefined;
|
|
2358
2053
|
inter_company_invoice_reference?: string | null | undefined;
|
|
2054
|
+
repost_required?: 0 | 1 | undefined;
|
|
2359
2055
|
}, {
|
|
2360
|
-
owner: string;
|
|
2361
|
-
creation: string;
|
|
2362
|
-
modified: string;
|
|
2363
|
-
modified_by: string;
|
|
2364
|
-
idx: number;
|
|
2365
|
-
doctype: string;
|
|
2366
2056
|
company: string;
|
|
2367
2057
|
customer: string;
|
|
2368
2058
|
posting_date: string;
|
|
2369
2059
|
currency: string;
|
|
2370
2060
|
items: {
|
|
2371
|
-
name: string;
|
|
2372
|
-
owner: string;
|
|
2373
|
-
creation: string;
|
|
2374
|
-
modified: string;
|
|
2375
|
-
modified_by: string;
|
|
2376
|
-
idx: number;
|
|
2377
|
-
doctype: string;
|
|
2378
|
-
parent: string;
|
|
2379
|
-
parenttype: string;
|
|
2380
|
-
parentfield: string;
|
|
2381
2061
|
item_code: string;
|
|
2382
|
-
item_name: string;
|
|
2383
2062
|
qty: number;
|
|
2384
2063
|
rate: number;
|
|
2385
2064
|
uom: string;
|
|
2386
|
-
income_account: string;
|
|
2387
2065
|
description?: string | null | undefined;
|
|
2388
2066
|
brand?: string | null | undefined;
|
|
2389
|
-
docstatus?: number | undefined;
|
|
2390
|
-
_user_tags?: string | null | undefined;
|
|
2391
2067
|
image?: string | null | undefined;
|
|
2068
|
+
item_name?: string | undefined;
|
|
2392
2069
|
item_tax_template?: string | null | undefined;
|
|
2393
2070
|
amount?: number | null | undefined;
|
|
2394
2071
|
base_rate?: number | null | undefined;
|
|
@@ -2444,6 +2121,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2444
2121
|
purchase_order_item?: string | null | undefined;
|
|
2445
2122
|
has_item_scanned?: unknown;
|
|
2446
2123
|
delivered_qty?: number | null | undefined;
|
|
2124
|
+
income_account?: string | undefined;
|
|
2447
2125
|
discount_account?: string | null | undefined;
|
|
2448
2126
|
deferred_revenue_account?: string | null | undefined;
|
|
2449
2127
|
service_start_date?: string | null | undefined;
|
|
@@ -2455,12 +2133,10 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2455
2133
|
serial_and_batch_bundle?: string | null | undefined;
|
|
2456
2134
|
}[];
|
|
2457
2135
|
selling_price_list: string;
|
|
2458
|
-
custom_invoice_no: string;
|
|
2459
2136
|
debit_to: string;
|
|
2460
2137
|
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;
|
|
2461
2138
|
docstatus?: number | undefined;
|
|
2462
2139
|
amended_from?: string | null | undefined;
|
|
2463
|
-
_user_tags?: string | null | undefined;
|
|
2464
2140
|
tax_category?: string | null | undefined;
|
|
2465
2141
|
naming_series?: "INV-.#" | "INV-.#-GS" | undefined;
|
|
2466
2142
|
language?: string | null | undefined;
|
|
@@ -2541,21 +2217,9 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2541
2217
|
total_commission?: number | null | undefined;
|
|
2542
2218
|
packed_items?: any[] | null | undefined;
|
|
2543
2219
|
taxes?: {
|
|
2544
|
-
name: string;
|
|
2545
|
-
owner: string;
|
|
2546
|
-
creation: string;
|
|
2547
|
-
modified: string;
|
|
2548
|
-
modified_by: string;
|
|
2549
|
-
idx: number;
|
|
2550
|
-
doctype: string;
|
|
2551
|
-
parent: string;
|
|
2552
|
-
parenttype: string;
|
|
2553
|
-
parentfield: string;
|
|
2554
2220
|
charge_type: "Actual" | "On Net Total" | "On Previous Row Amount" | "On Previous Row Total" | "On Item Quantity";
|
|
2555
2221
|
account_head: string;
|
|
2556
2222
|
description?: string | undefined;
|
|
2557
|
-
docstatus?: number | undefined;
|
|
2558
|
-
_user_tags?: string | null | undefined;
|
|
2559
2223
|
account_currency?: string | undefined;
|
|
2560
2224
|
rate?: number | undefined;
|
|
2561
2225
|
base_total?: number | undefined;
|
|
@@ -2583,26 +2247,16 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2583
2247
|
party_account_currency?: string | null | undefined;
|
|
2584
2248
|
is_opening?: "No" | "Yes" | undefined;
|
|
2585
2249
|
advances?: {
|
|
2586
|
-
name: string;
|
|
2587
|
-
owner: string;
|
|
2588
|
-
creation: string;
|
|
2589
|
-
modified: string;
|
|
2590
|
-
modified_by: string;
|
|
2591
|
-
idx: number;
|
|
2592
2250
|
doctype: "Sales Invoice Advance";
|
|
2593
|
-
parent: string;
|
|
2594
|
-
parenttype: string;
|
|
2595
|
-
parentfield: string;
|
|
2596
2251
|
reference_name: string;
|
|
2597
2252
|
reference_type: string;
|
|
2598
2253
|
advance_amount: number;
|
|
2599
|
-
docstatus?: number | undefined;
|
|
2600
|
-
_user_tags?: string | null | undefined;
|
|
2601
2254
|
allocated_amount?: number | null | undefined;
|
|
2602
2255
|
remarks?: string | null | undefined;
|
|
2603
2256
|
reference_row?: string | null | undefined;
|
|
2604
2257
|
}[] | null | undefined;
|
|
2605
2258
|
payment_schedule?: any[] | null | undefined;
|
|
2259
|
+
custom_invoice_no?: string | null | undefined;
|
|
2606
2260
|
is_pos?: unknown;
|
|
2607
2261
|
pos_profile?: string | null | undefined;
|
|
2608
2262
|
is_debit_note?: unknown;
|
|
@@ -2620,20 +2274,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2620
2274
|
total_billing_amount?: number | null | undefined;
|
|
2621
2275
|
cash_bank_account?: string | null | undefined;
|
|
2622
2276
|
payments?: {
|
|
2623
|
-
name: string;
|
|
2624
|
-
owner: string;
|
|
2625
|
-
creation: string;
|
|
2626
|
-
modified: string;
|
|
2627
|
-
modified_by: string;
|
|
2628
|
-
idx: number;
|
|
2629
|
-
doctype: string;
|
|
2630
|
-
parent: string;
|
|
2631
|
-
parenttype: string;
|
|
2632
|
-
parentfield: string;
|
|
2633
2277
|
amount: number;
|
|
2634
2278
|
mode_of_payment: string;
|
|
2635
|
-
docstatus?: number | undefined;
|
|
2636
|
-
_user_tags?: string | null | undefined;
|
|
2637
2279
|
base_amount?: number | null | undefined;
|
|
2638
2280
|
account?: string | null | undefined;
|
|
2639
2281
|
reference_no?: string | null | undefined;
|