erpnext-queue-client 2.1.2 → 2.1.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.
@@ -666,7 +666,6 @@ export declare class ERPNextSalesInvoice {
666
666
  qty: number;
667
667
  uom: string;
668
668
  rate: number;
669
- income_account: string;
670
669
  description?: string | null | undefined;
671
670
  brand?: string | null | undefined;
672
671
  image?: string | null | undefined;
@@ -725,6 +724,7 @@ export declare class ERPNextSalesInvoice {
725
724
  delivery_note?: string | null | undefined;
726
725
  delivered_qty?: number | null | undefined;
727
726
  sales_invoice_item?: string | null | undefined;
727
+ income_account?: string | undefined;
728
728
  discount_account?: string | null | undefined;
729
729
  deferred_revenue_account?: string | null | undefined;
730
730
  service_start_date?: string | null | undefined;
@@ -1191,7 +1191,6 @@ export declare class ERPNextSalesInvoice {
1191
1191
  qty: number;
1192
1192
  uom: string;
1193
1193
  rate: number;
1194
- income_account: string;
1195
1194
  description?: string | null | undefined;
1196
1195
  brand?: string | null | undefined;
1197
1196
  image?: string | null | undefined;
@@ -1250,6 +1249,7 @@ export declare class ERPNextSalesInvoice {
1250
1249
  delivery_note?: string | null | undefined;
1251
1250
  delivered_qty?: number | null | undefined;
1252
1251
  sales_invoice_item?: string | null | undefined;
1252
+ income_account?: string | undefined;
1253
1253
  discount_account?: string | null | undefined;
1254
1254
  deferred_revenue_account?: string | null | undefined;
1255
1255
  service_start_date?: string | null | undefined;
@@ -65,7 +65,9 @@ export declare const SalesInvoiceItem: z.ZodObject<{
65
65
  dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
66
  delivered_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
67
67
  sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
68
- income_account: z.ZodString;
68
+ income_account: z.ZodString & {
69
+ __optionalForInput: true;
70
+ };
69
71
  expense_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
70
72
  cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71
73
  discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -415,7 +417,9 @@ export declare const SalesInvoice: z.ZodObject<{
415
417
  dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
416
418
  delivered_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
417
419
  sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
418
- income_account: z.ZodString;
420
+ income_account: z.ZodString & {
421
+ __optionalForInput: true;
422
+ };
419
423
  expense_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
420
424
  cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
421
425
  discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -1448,7 +1452,9 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
1448
1452
  dn_detail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1449
1453
  delivered_qty: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1450
1454
  sales_invoice_item: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1451
- income_account: z.ZodString;
1455
+ income_account: z.ZodString & {
1456
+ __optionalForInput: true;
1457
+ };
1452
1458
  expense_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1453
1459
  cost_center: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1454
1460
  discount_account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -76,7 +76,7 @@ exports.SalesInvoiceItem = zod_1.z
76
76
  delivered_qty: zod_1.z.number().optional().nullable(),
77
77
  sales_invoice_item: zod_1.z.string().optional().nullable(),
78
78
  // Accounting
79
- income_account: zod_1.z.string().min(1, "Income Account is required"),
79
+ income_account: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.string()),
80
80
  expense_account: zod_1.z.string().optional().nullable(),
81
81
  cost_center: zod_1.z.string().optional().nullable(),
82
82
  discount_account: zod_1.z.string().optional().nullable(),
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "winston": "^3.15.0",
31
31
  "zod": "3.25.76"
32
32
  },
33
- "version": "2.1.2",
33
+ "version": "2.1.3",
34
34
  "devDependencies": {
35
35
  "@types/crypto-js": "^4.2.2",
36
36
  "@types/lodash": "^4.17.13",