erpnext-queue-client 2.1.0 → 2.1.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/erpnext/doctypes/paymentEntry.d.ts +91 -0
- package/dist/erpnext/doctypes/purchaseInvoice.d.ts +14 -14
- package/dist/erpnext/doctypes/salesInvoice.d.ts +29 -29
- package/dist/erpnext/model/PaymentEntry.d.ts +93 -2
- package/dist/erpnext/model/PaymentEntry.js +7 -0
- package/dist/erpnext/model/PurchaseInvoice.d.ts +4 -4
- package/dist/erpnext/model/PurchaseOrder.d.ts +4 -4
- package/dist/erpnext/model/SalesInvoice.d.ts +14 -14
- package/dist/erpnext/model/StockEntry.d.ts +2 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
6
6
|
protected temporalClient: TemporalClient;
|
|
7
7
|
protected baseRequest: ERPNextDoctypeSubmittableResourceRequest<typeof SalesInvoice>;
|
|
8
8
|
protected methodRequest: ERPNextMethodRequest;
|
|
9
|
-
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "
|
|
9
|
+
getList: <TFieldOptions extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "payment_terms_template" | "party_account_currency" | "advances" | "payment_schedule" | "company_tax_id" | "pos_profile" | "named_place" | "coupon_code" | "additional_discount_account" | "timesheets" | "total_billing_hours" | "total_billing_amount" | "cash_bank_account" | "payments" | "base_change_amount" | "change_amount" | "account_for_change_amount" | "write_off_account" | "write_off_cost_center" | "loyalty_points" | "loyalty_amount" | "loyalty_program" | "loyalty_redemption_account" | "loyalty_redemption_cost_center" | "unrealized_profit_loss_account" | "against_income_account" | "subscription" | "from_date" | "to_date" | "update_auto_repeat_reference" | "inter_company_invoice_reference"), TSelectedFields extends readonly ["*"] | TFieldOptions[] | undefined = undefined, TAsDict extends boolean | undefined = undefined>({ fields, filters, skip, limit, priority, asDict, params, }?: {
|
|
10
10
|
fields?: TSelectedFields;
|
|
11
11
|
filters?: (string | string[])[][];
|
|
12
12
|
skip?: number;
|
|
@@ -144,12 +144,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
144
144
|
base_tax_amount?: number | undefined;
|
|
145
145
|
}[] | null | undefined;
|
|
146
146
|
sales_team?: any[] | null | undefined;
|
|
147
|
+
outstanding_amount?: number | null | undefined;
|
|
147
148
|
paid_amount?: number | null | undefined;
|
|
148
149
|
base_paid_amount?: number | null | undefined;
|
|
149
150
|
remarks?: string | null | undefined;
|
|
150
151
|
due_date?: string | null | undefined;
|
|
151
152
|
total_advance?: number | null | undefined;
|
|
152
|
-
outstanding_amount?: number | null | undefined;
|
|
153
153
|
write_off_amount?: number | null | undefined;
|
|
154
154
|
base_write_off_amount?: number | null | undefined;
|
|
155
155
|
payment_terms_template?: string | null | undefined;
|
|
@@ -177,8 +177,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
177
177
|
amount: number;
|
|
178
178
|
mode_of_payment: string;
|
|
179
179
|
base_amount?: number | null | undefined;
|
|
180
|
-
reference_no?: string | null | undefined;
|
|
181
180
|
account?: string | null | undefined;
|
|
181
|
+
reference_no?: string | null | undefined;
|
|
182
182
|
clearance_date?: string | null | undefined;
|
|
183
183
|
}[] | null | undefined;
|
|
184
184
|
base_change_amount?: number | null | undefined;
|
|
@@ -198,7 +198,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
198
198
|
to_date?: string | null | undefined;
|
|
199
199
|
update_auto_repeat_reference?: string | null | undefined;
|
|
200
200
|
inter_company_invoice_reference?: string | null | undefined;
|
|
201
|
-
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "
|
|
201
|
+
}[] : TSelectedFields extends TFieldOptions[] ? { [K_1 in TSelectedFields[number] as K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1]: (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1) extends ("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "payment_terms_template" | "party_account_currency" | "advances" | "payment_schedule" | "company_tax_id" | "pos_profile" | "named_place" | "coupon_code" | "additional_discount_account" | "timesheets" | "total_billing_hours" | "total_billing_amount" | "cash_bank_account" | "payments" | "base_change_amount" | "change_amount" | "account_for_change_amount" | "write_off_account" | "write_off_cost_center" | "loyalty_points" | "loyalty_amount" | "loyalty_program" | "loyalty_redemption_account" | "loyalty_redemption_cost_center" | "unrealized_profit_loss_account" | "against_income_account" | "subscription" | "from_date" | "to_date" | "update_auto_repeat_reference" | "inter_company_invoice_reference") ? {
|
|
202
202
|
status: "Internal Transfer" | "Draft" | "Return" | "Credit Note Issued" | "Submitted" | "Paid" | "Partly Paid" | "Unpaid" | "Unpaid and Discounted" | "Partly Paid and Discounted" | "Overdue and Discounted" | "Overdue" | "Cancelled";
|
|
203
203
|
docstatus: number;
|
|
204
204
|
name: string;
|
|
@@ -326,12 +326,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
326
326
|
base_tax_amount?: number | undefined;
|
|
327
327
|
}[] | null | undefined;
|
|
328
328
|
sales_team?: any[] | null | undefined;
|
|
329
|
+
outstanding_amount?: number | null | undefined;
|
|
329
330
|
paid_amount?: number | null | undefined;
|
|
330
331
|
base_paid_amount?: number | null | undefined;
|
|
331
332
|
remarks?: string | null | undefined;
|
|
332
333
|
due_date?: string | null | undefined;
|
|
333
334
|
total_advance?: number | null | undefined;
|
|
334
|
-
outstanding_amount?: number | null | undefined;
|
|
335
335
|
write_off_amount?: number | null | undefined;
|
|
336
336
|
base_write_off_amount?: number | null | undefined;
|
|
337
337
|
payment_terms_template?: string | null | undefined;
|
|
@@ -359,8 +359,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
359
359
|
amount: number;
|
|
360
360
|
mode_of_payment: string;
|
|
361
361
|
base_amount?: number | null | undefined;
|
|
362
|
-
reference_no?: string | null | undefined;
|
|
363
362
|
account?: string | null | undefined;
|
|
363
|
+
reference_no?: string | null | undefined;
|
|
364
364
|
clearance_date?: string | null | undefined;
|
|
365
365
|
}[] | null | undefined;
|
|
366
366
|
base_change_amount?: number | null | undefined;
|
|
@@ -380,7 +380,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
380
380
|
to_date?: string | null | undefined;
|
|
381
381
|
update_auto_repeat_reference?: string | null | undefined;
|
|
382
382
|
inter_company_invoice_reference?: string | null | undefined;
|
|
383
|
-
}[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "
|
|
383
|
+
}[(("status" | "docstatus" | "name" | "owner" | "creation" | "modified" | "modified_by" | "idx" | "company" | "naming_series" | "customer" | "posting_date" | "set_posting_time" | "is_return" | "currency" | "conversion_rate" | "selling_price_list" | "plc_conversion_rate" | "ignore_pricing_rule" | "apply_discount_on" | "disable_rounded_total" | "is_internal_customer" | "group_same_items" | "update_stock" | "allocate_advances_automatically" | "ignore_default_payment_terms_template" | "is_opening" | "custom_invoice_no" | "is_pos" | "is_debit_note" | "update_outstanding_for_self" | "update_billed_amount_in_sales_order" | "update_billed_amount_in_delivery_note" | "is_consolidated" | "use_company_roundoff_cost_center" | "is_cash_or_non_trade_discount" | "only_include_allocated_payments" | "write_off_outstanding_amount_automatically" | "redeem_loyalty_points" | "dont_create_loyalty_points" | "debit_to" | "is_discounted" | "repost_required") | ("amended_from" | "_user_tags" | "tax_category" | "language" | "discount_amount" | "pricing_rules" | "cost_center" | "project" | "title" | "customer_name" | "posting_time" | "return_against" | "po_no" | "po_date" | "shipping_address_name" | "shipping_address" | "dispatch_address_name" | "dispatch_address" | "contact_person" | "contact_display" | "contact_mobile" | "contact_email" | "customer_address" | "tax_id" | "address_display" | "company_address" | "company_address_display" | "price_list_currency" | "set_warehouse" | "set_target_warehouse" | "scan_barcode" | "total_qty" | "base_total" | "base_net_total" | "total_net_weight" | "total" | "net_total" | "shipping_rule" | "incoterm" | "taxes_and_charges" | "other_charges_calculation" | "base_total_taxes_and_charges" | "total_taxes_and_charges" | "base_discount_amount" | "additional_discount_percentage" | "base_grand_total" | "base_rounding_adjustment" | "base_rounded_total" | "base_in_words" | "grand_total" | "rounding_adjustment" | "rounded_total" | "in_words" | "tc_name" | "terms" | "campaign" | "source" | "represents_company" | "customer_group" | "territory" | "letter_head" | "select_print_heading" | "auto_repeat" | "sales_partner" | "amount_eligible_for_commission" | "commission_rate" | "total_commission" | "packed_items" | "taxes" | "sales_team" | "outstanding_amount" | "paid_amount" | "base_paid_amount" | "remarks" | "due_date" | "total_advance" | "write_off_amount" | "base_write_off_amount" | "payment_terms_template" | "party_account_currency" | "advances" | "payment_schedule" | "company_tax_id" | "pos_profile" | "named_place" | "coupon_code" | "additional_discount_account" | "timesheets" | "total_billing_hours" | "total_billing_amount" | "cash_bank_account" | "payments" | "base_change_amount" | "change_amount" | "account_for_change_amount" | "write_off_account" | "write_off_cost_center" | "loyalty_points" | "loyalty_amount" | "loyalty_program" | "loyalty_redemption_account" | "loyalty_redemption_cost_center" | "unrealized_profit_loss_account" | "against_income_account" | "subscription" | "from_date" | "to_date" | "update_auto_repeat_reference" | "inter_company_invoice_reference")) & (K_1 extends `${infer _Before} as ${infer Alias}` ? Alias : K_1)] : never; }[] : any) extends infer T ? { [K in keyof T]: T[K]; } : never>;
|
|
384
384
|
getById: ({ resourceId, priority, }: {
|
|
385
385
|
resourceId: string;
|
|
386
386
|
priority?: number;
|
|
@@ -599,12 +599,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
599
599
|
base_tax_amount?: number | undefined;
|
|
600
600
|
}[] | null | undefined;
|
|
601
601
|
sales_team?: any[] | null | undefined;
|
|
602
|
+
outstanding_amount?: number | null | undefined;
|
|
602
603
|
paid_amount?: number | null | undefined;
|
|
603
604
|
base_paid_amount?: number | null | undefined;
|
|
604
605
|
remarks?: string | null | undefined;
|
|
605
606
|
due_date?: string | null | undefined;
|
|
606
607
|
total_advance?: number | null | undefined;
|
|
607
|
-
outstanding_amount?: number | null | undefined;
|
|
608
608
|
write_off_amount?: number | null | undefined;
|
|
609
609
|
base_write_off_amount?: number | null | undefined;
|
|
610
610
|
payment_terms_template?: string | null | undefined;
|
|
@@ -632,8 +632,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
632
632
|
amount: number;
|
|
633
633
|
mode_of_payment: string;
|
|
634
634
|
base_amount?: number | null | undefined;
|
|
635
|
-
reference_no?: string | null | undefined;
|
|
636
635
|
account?: string | null | undefined;
|
|
636
|
+
reference_no?: string | null | undefined;
|
|
637
637
|
clearance_date?: string | null | undefined;
|
|
638
638
|
}[] | null | undefined;
|
|
639
639
|
base_change_amount?: number | null | undefined;
|
|
@@ -832,13 +832,13 @@ export declare class ERPNextSalesInvoice {
|
|
|
832
832
|
base_tax_amount?: number | undefined;
|
|
833
833
|
}[] | null | undefined;
|
|
834
834
|
sales_team?: any[] | null | undefined;
|
|
835
|
+
outstanding_amount?: number | null | undefined;
|
|
835
836
|
paid_amount?: number | null | undefined;
|
|
836
837
|
base_paid_amount?: number | null | undefined;
|
|
837
838
|
remarks?: string | null | undefined;
|
|
838
839
|
due_date?: string | null | undefined;
|
|
839
840
|
update_stock?: 0 | 1 | undefined;
|
|
840
841
|
total_advance?: number | null | undefined;
|
|
841
|
-
outstanding_amount?: number | null | undefined;
|
|
842
842
|
write_off_amount?: number | null | undefined;
|
|
843
843
|
base_write_off_amount?: number | null | undefined;
|
|
844
844
|
allocate_advances_automatically?: 0 | 1 | undefined;
|
|
@@ -877,8 +877,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
877
877
|
amount: number;
|
|
878
878
|
mode_of_payment: string;
|
|
879
879
|
base_amount?: number | null | undefined;
|
|
880
|
-
reference_no?: string | null | undefined;
|
|
881
880
|
account?: string | null | undefined;
|
|
881
|
+
reference_no?: string | null | undefined;
|
|
882
882
|
clearance_date?: string | null | undefined;
|
|
883
883
|
}[] | null | undefined;
|
|
884
884
|
base_change_amount?: number | null | undefined;
|
|
@@ -1124,12 +1124,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1124
1124
|
base_tax_amount?: number | undefined;
|
|
1125
1125
|
}[] | null | undefined;
|
|
1126
1126
|
sales_team?: any[] | null | undefined;
|
|
1127
|
+
outstanding_amount?: number | null | undefined;
|
|
1127
1128
|
paid_amount?: number | null | undefined;
|
|
1128
1129
|
base_paid_amount?: number | null | undefined;
|
|
1129
1130
|
remarks?: string | null | undefined;
|
|
1130
1131
|
due_date?: string | null | undefined;
|
|
1131
1132
|
total_advance?: number | null | undefined;
|
|
1132
|
-
outstanding_amount?: number | null | undefined;
|
|
1133
1133
|
write_off_amount?: number | null | undefined;
|
|
1134
1134
|
base_write_off_amount?: number | null | undefined;
|
|
1135
1135
|
payment_terms_template?: string | null | undefined;
|
|
@@ -1157,8 +1157,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1157
1157
|
amount: number;
|
|
1158
1158
|
mode_of_payment: string;
|
|
1159
1159
|
base_amount?: number | null | undefined;
|
|
1160
|
-
reference_no?: string | null | undefined;
|
|
1161
1160
|
account?: string | null | undefined;
|
|
1161
|
+
reference_no?: string | null | undefined;
|
|
1162
1162
|
clearance_date?: string | null | undefined;
|
|
1163
1163
|
}[] | null | undefined;
|
|
1164
1164
|
base_change_amount?: number | null | undefined;
|
|
@@ -1357,13 +1357,13 @@ export declare class ERPNextSalesInvoice {
|
|
|
1357
1357
|
base_tax_amount?: number | undefined;
|
|
1358
1358
|
}[] | null | undefined;
|
|
1359
1359
|
sales_team?: any[] | null | undefined;
|
|
1360
|
+
outstanding_amount?: number | null | undefined;
|
|
1360
1361
|
paid_amount?: number | null | undefined;
|
|
1361
1362
|
base_paid_amount?: number | null | undefined;
|
|
1362
1363
|
remarks?: string | null | undefined;
|
|
1363
1364
|
due_date?: string | null | undefined;
|
|
1364
1365
|
update_stock?: 0 | 1 | undefined;
|
|
1365
1366
|
total_advance?: number | null | undefined;
|
|
1366
|
-
outstanding_amount?: number | null | undefined;
|
|
1367
1367
|
write_off_amount?: number | null | undefined;
|
|
1368
1368
|
base_write_off_amount?: number | null | undefined;
|
|
1369
1369
|
allocate_advances_automatically?: 0 | 1 | undefined;
|
|
@@ -1402,8 +1402,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1402
1402
|
amount: number;
|
|
1403
1403
|
mode_of_payment: string;
|
|
1404
1404
|
base_amount?: number | null | undefined;
|
|
1405
|
-
reference_no?: string | null | undefined;
|
|
1406
1405
|
account?: string | null | undefined;
|
|
1406
|
+
reference_no?: string | null | undefined;
|
|
1407
1407
|
clearance_date?: string | null | undefined;
|
|
1408
1408
|
}[] | null | undefined;
|
|
1409
1409
|
base_change_amount?: number | null | undefined;
|
|
@@ -1649,12 +1649,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1649
1649
|
base_tax_amount?: number | undefined;
|
|
1650
1650
|
}[] | null | undefined;
|
|
1651
1651
|
sales_team?: any[] | null | undefined;
|
|
1652
|
+
outstanding_amount?: number | null | undefined;
|
|
1652
1653
|
paid_amount?: number | null | undefined;
|
|
1653
1654
|
base_paid_amount?: number | null | undefined;
|
|
1654
1655
|
remarks?: string | null | undefined;
|
|
1655
1656
|
due_date?: string | null | undefined;
|
|
1656
1657
|
total_advance?: number | null | undefined;
|
|
1657
|
-
outstanding_amount?: number | null | undefined;
|
|
1658
1658
|
write_off_amount?: number | null | undefined;
|
|
1659
1659
|
base_write_off_amount?: number | null | undefined;
|
|
1660
1660
|
payment_terms_template?: string | null | undefined;
|
|
@@ -1682,8 +1682,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1682
1682
|
amount: number;
|
|
1683
1683
|
mode_of_payment: string;
|
|
1684
1684
|
base_amount?: number | null | undefined;
|
|
1685
|
-
reference_no?: string | null | undefined;
|
|
1686
1685
|
account?: string | null | undefined;
|
|
1686
|
+
reference_no?: string | null | undefined;
|
|
1687
1687
|
clearance_date?: string | null | undefined;
|
|
1688
1688
|
}[] | null | undefined;
|
|
1689
1689
|
base_change_amount?: number | null | undefined;
|
|
@@ -1925,12 +1925,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
1925
1925
|
base_tax_amount?: number | undefined;
|
|
1926
1926
|
}[] | null | undefined;
|
|
1927
1927
|
sales_team?: any[] | null | undefined;
|
|
1928
|
+
outstanding_amount?: number | null | undefined;
|
|
1928
1929
|
paid_amount?: number | null | undefined;
|
|
1929
1930
|
base_paid_amount?: number | null | undefined;
|
|
1930
1931
|
remarks?: string | null | undefined;
|
|
1931
1932
|
due_date?: string | null | undefined;
|
|
1932
1933
|
total_advance?: number | null | undefined;
|
|
1933
|
-
outstanding_amount?: number | null | undefined;
|
|
1934
1934
|
write_off_amount?: number | null | undefined;
|
|
1935
1935
|
base_write_off_amount?: number | null | undefined;
|
|
1936
1936
|
payment_terms_template?: string | null | undefined;
|
|
@@ -1958,8 +1958,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1958
1958
|
amount: number;
|
|
1959
1959
|
mode_of_payment: string;
|
|
1960
1960
|
base_amount?: number | null | undefined;
|
|
1961
|
-
reference_no?: string | null | undefined;
|
|
1962
1961
|
account?: string | null | undefined;
|
|
1962
|
+
reference_no?: string | null | undefined;
|
|
1963
1963
|
clearance_date?: string | null | undefined;
|
|
1964
1964
|
}[] | null | undefined;
|
|
1965
1965
|
base_change_amount?: number | null | undefined;
|
|
@@ -2197,12 +2197,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2197
2197
|
base_tax_amount?: number | undefined;
|
|
2198
2198
|
}[] | null | undefined;
|
|
2199
2199
|
sales_team?: any[] | null | undefined;
|
|
2200
|
+
outstanding_amount?: number | null | undefined;
|
|
2200
2201
|
paid_amount?: number | null | undefined;
|
|
2201
2202
|
base_paid_amount?: number | null | undefined;
|
|
2202
2203
|
remarks?: string | null | undefined;
|
|
2203
2204
|
due_date?: string | null | undefined;
|
|
2204
2205
|
total_advance?: number | null | undefined;
|
|
2205
|
-
outstanding_amount?: number | null | undefined;
|
|
2206
2206
|
write_off_amount?: number | null | undefined;
|
|
2207
2207
|
base_write_off_amount?: number | null | undefined;
|
|
2208
2208
|
payment_terms_template?: string | null | undefined;
|
|
@@ -2230,8 +2230,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
2230
2230
|
amount: number;
|
|
2231
2231
|
mode_of_payment: string;
|
|
2232
2232
|
base_amount?: number | null | undefined;
|
|
2233
|
-
reference_no?: string | null | undefined;
|
|
2234
2233
|
account?: string | null | undefined;
|
|
2234
|
+
reference_no?: string | null | undefined;
|
|
2235
2235
|
clearance_date?: string | null | undefined;
|
|
2236
2236
|
}[] | null | undefined;
|
|
2237
2237
|
base_change_amount?: number | null | undefined;
|
|
@@ -2467,12 +2467,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2467
2467
|
base_tax_amount?: number | undefined;
|
|
2468
2468
|
}[] | null | undefined;
|
|
2469
2469
|
sales_team?: any[] | null | undefined;
|
|
2470
|
+
outstanding_amount?: number | null | undefined;
|
|
2470
2471
|
paid_amount?: number | null | undefined;
|
|
2471
2472
|
base_paid_amount?: number | null | undefined;
|
|
2472
2473
|
remarks?: string | null | undefined;
|
|
2473
2474
|
due_date?: string | null | undefined;
|
|
2474
2475
|
total_advance?: number | null | undefined;
|
|
2475
|
-
outstanding_amount?: number | null | undefined;
|
|
2476
2476
|
write_off_amount?: number | null | undefined;
|
|
2477
2477
|
base_write_off_amount?: number | null | undefined;
|
|
2478
2478
|
payment_terms_template?: string | null | undefined;
|
|
@@ -2500,8 +2500,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
2500
2500
|
amount: number;
|
|
2501
2501
|
mode_of_payment: string;
|
|
2502
2502
|
base_amount?: number | null | undefined;
|
|
2503
|
-
reference_no?: string | null | undefined;
|
|
2504
2503
|
account?: string | null | undefined;
|
|
2504
|
+
reference_no?: string | null | undefined;
|
|
2505
2505
|
clearance_date?: string | null | undefined;
|
|
2506
2506
|
}[] | null | undefined;
|
|
2507
2507
|
base_change_amount?: number | null | undefined;
|
|
@@ -2737,12 +2737,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
2737
2737
|
base_tax_amount?: number | undefined;
|
|
2738
2738
|
}[] | null | undefined;
|
|
2739
2739
|
sales_team?: any[] | null | undefined;
|
|
2740
|
+
outstanding_amount?: number | null | undefined;
|
|
2740
2741
|
paid_amount?: number | null | undefined;
|
|
2741
2742
|
base_paid_amount?: number | null | undefined;
|
|
2742
2743
|
remarks?: string | null | undefined;
|
|
2743
2744
|
due_date?: string | null | undefined;
|
|
2744
2745
|
total_advance?: number | null | undefined;
|
|
2745
|
-
outstanding_amount?: number | null | undefined;
|
|
2746
2746
|
write_off_amount?: number | null | undefined;
|
|
2747
2747
|
base_write_off_amount?: number | null | undefined;
|
|
2748
2748
|
payment_terms_template?: string | null | undefined;
|
|
@@ -2770,8 +2770,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
2770
2770
|
amount: number;
|
|
2771
2771
|
mode_of_payment: string;
|
|
2772
2772
|
base_amount?: number | null | undefined;
|
|
2773
|
-
reference_no?: string | null | undefined;
|
|
2774
2773
|
account?: string | null | undefined;
|
|
2774
|
+
reference_no?: string | null | undefined;
|
|
2775
2775
|
clearance_date?: string | null | undefined;
|
|
2776
2776
|
}[] | null | undefined;
|
|
2777
2777
|
base_change_amount?: number | null | undefined;
|
|
@@ -3006,12 +3006,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
3006
3006
|
base_tax_amount?: number | undefined;
|
|
3007
3007
|
}[] | null | undefined;
|
|
3008
3008
|
sales_team?: any[] | null | undefined;
|
|
3009
|
+
outstanding_amount?: number | null | undefined;
|
|
3009
3010
|
paid_amount?: number | null | undefined;
|
|
3010
3011
|
base_paid_amount?: number | null | undefined;
|
|
3011
3012
|
remarks?: string | null | undefined;
|
|
3012
3013
|
due_date?: string | null | undefined;
|
|
3013
3014
|
total_advance?: number | null | undefined;
|
|
3014
|
-
outstanding_amount?: number | null | undefined;
|
|
3015
3015
|
write_off_amount?: number | null | undefined;
|
|
3016
3016
|
base_write_off_amount?: number | null | undefined;
|
|
3017
3017
|
payment_terms_template?: string | null | undefined;
|
|
@@ -3039,8 +3039,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
3039
3039
|
amount: number;
|
|
3040
3040
|
mode_of_payment: string;
|
|
3041
3041
|
base_amount?: number | null | undefined;
|
|
3042
|
-
reference_no?: string | null | undefined;
|
|
3043
3042
|
account?: string | null | undefined;
|
|
3043
|
+
reference_no?: string | null | undefined;
|
|
3044
3044
|
clearance_date?: string | null | undefined;
|
|
3045
3045
|
}[] | null | undefined;
|
|
3046
3046
|
base_change_amount?: number | null | undefined;
|
|
@@ -3276,12 +3276,12 @@ export declare class ERPNextSalesInvoice {
|
|
|
3276
3276
|
base_tax_amount?: number | undefined;
|
|
3277
3277
|
}[] | null | undefined;
|
|
3278
3278
|
sales_team?: any[] | null | undefined;
|
|
3279
|
+
outstanding_amount?: number | null | undefined;
|
|
3279
3280
|
paid_amount?: number | null | undefined;
|
|
3280
3281
|
base_paid_amount?: number | null | undefined;
|
|
3281
3282
|
remarks?: string | null | undefined;
|
|
3282
3283
|
due_date?: string | null | undefined;
|
|
3283
3284
|
total_advance?: number | null | undefined;
|
|
3284
|
-
outstanding_amount?: number | null | undefined;
|
|
3285
3285
|
write_off_amount?: number | null | undefined;
|
|
3286
3286
|
base_write_off_amount?: number | null | undefined;
|
|
3287
3287
|
payment_terms_template?: string | null | undefined;
|
|
@@ -3309,8 +3309,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
3309
3309
|
amount: number;
|
|
3310
3310
|
mode_of_payment: string;
|
|
3311
3311
|
base_amount?: number | null | undefined;
|
|
3312
|
-
reference_no?: string | null | undefined;
|
|
3313
3312
|
account?: string | null | undefined;
|
|
3313
|
+
reference_no?: string | null | undefined;
|
|
3314
3314
|
clearance_date?: string | null | undefined;
|
|
3315
3315
|
}[] | null | undefined;
|
|
3316
3316
|
base_change_amount?: number | null | undefined;
|
|
@@ -2,15 +2,36 @@ import { z } from "zod";
|
|
|
2
2
|
declare const PaymentEntryReference: z.ZodObject<{
|
|
3
3
|
reference_doctype: z.ZodString;
|
|
4
4
|
reference_name: z.ZodString;
|
|
5
|
+
payment_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
7
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
total_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
9
|
+
outstanding_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
5
10
|
allocated_amount: z.ZodNumber;
|
|
11
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
13
|
}, "strip", z.ZodTypeAny, {
|
|
7
14
|
reference_doctype: string;
|
|
8
15
|
reference_name: string;
|
|
9
16
|
allocated_amount: number;
|
|
17
|
+
account_type?: string | null | undefined;
|
|
18
|
+
payment_term?: string | null | undefined;
|
|
19
|
+
payment_type?: string | null | undefined;
|
|
20
|
+
total_amount?: number | null | undefined;
|
|
21
|
+
outstanding_amount?: number | null | undefined;
|
|
22
|
+
account?: string | null | undefined;
|
|
23
|
+
payment_request?: string | null | undefined;
|
|
10
24
|
}, {
|
|
11
25
|
reference_doctype: string;
|
|
12
26
|
reference_name: string;
|
|
13
27
|
allocated_amount: number;
|
|
28
|
+
account_type?: string | null | undefined;
|
|
29
|
+
payment_term?: string | null | undefined;
|
|
30
|
+
payment_type?: string | null | undefined;
|
|
31
|
+
total_amount?: number | null | undefined;
|
|
32
|
+
outstanding_amount?: number | null | undefined;
|
|
33
|
+
account?: string | null | undefined;
|
|
34
|
+
payment_request?: string | null | undefined;
|
|
14
35
|
}>;
|
|
15
36
|
export type PaymentEntryReferenceType = z.infer<typeof PaymentEntryReference>;
|
|
16
37
|
export declare const PaymentEntry: z.ZodObject<{
|
|
@@ -89,15 +110,36 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
89
110
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
111
|
reference_doctype: z.ZodString;
|
|
91
112
|
reference_name: z.ZodString;
|
|
113
|
+
payment_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
114
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
115
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
116
|
+
total_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
117
|
+
outstanding_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
92
118
|
allocated_amount: z.ZodNumber;
|
|
119
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
93
121
|
}, "strip", z.ZodTypeAny, {
|
|
94
122
|
reference_doctype: string;
|
|
95
123
|
reference_name: string;
|
|
96
124
|
allocated_amount: number;
|
|
125
|
+
account_type?: string | null | undefined;
|
|
126
|
+
payment_term?: string | null | undefined;
|
|
127
|
+
payment_type?: string | null | undefined;
|
|
128
|
+
total_amount?: number | null | undefined;
|
|
129
|
+
outstanding_amount?: number | null | undefined;
|
|
130
|
+
account?: string | null | undefined;
|
|
131
|
+
payment_request?: string | null | undefined;
|
|
97
132
|
}, {
|
|
98
133
|
reference_doctype: string;
|
|
99
134
|
reference_name: string;
|
|
100
135
|
allocated_amount: number;
|
|
136
|
+
account_type?: string | null | undefined;
|
|
137
|
+
payment_term?: string | null | undefined;
|
|
138
|
+
payment_type?: string | null | undefined;
|
|
139
|
+
total_amount?: number | null | undefined;
|
|
140
|
+
outstanding_amount?: number | null | undefined;
|
|
141
|
+
account?: string | null | undefined;
|
|
142
|
+
payment_request?: string | null | undefined;
|
|
101
143
|
}>, "many">>;
|
|
102
144
|
taxes: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
103
145
|
deductions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -151,6 +193,13 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
151
193
|
reference_doctype: string;
|
|
152
194
|
reference_name: string;
|
|
153
195
|
allocated_amount: number;
|
|
196
|
+
account_type?: string | null | undefined;
|
|
197
|
+
payment_term?: string | null | undefined;
|
|
198
|
+
payment_type?: string | null | undefined;
|
|
199
|
+
total_amount?: number | null | undefined;
|
|
200
|
+
outstanding_amount?: number | null | undefined;
|
|
201
|
+
account?: string | null | undefined;
|
|
202
|
+
payment_request?: string | null | undefined;
|
|
154
203
|
}[] | undefined;
|
|
155
204
|
deductions?: unknown[] | undefined;
|
|
156
205
|
}, {
|
|
@@ -179,8 +228,8 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
179
228
|
base_total_taxes_and_charges?: number | undefined;
|
|
180
229
|
total_taxes_and_charges?: number | undefined;
|
|
181
230
|
taxes?: unknown[] | undefined;
|
|
182
|
-
payment_number?: string | undefined;
|
|
183
231
|
payment_type?: "Receive" | "Pay" | "Internal Transfer" | undefined;
|
|
232
|
+
payment_number?: string | undefined;
|
|
184
233
|
internal_reference?: string | undefined;
|
|
185
234
|
mode_of_payment?: string | undefined;
|
|
186
235
|
custom_external_payment_method?: string | undefined;
|
|
@@ -203,6 +252,13 @@ export declare const PaymentEntry: z.ZodObject<{
|
|
|
203
252
|
reference_doctype: string;
|
|
204
253
|
reference_name: string;
|
|
205
254
|
allocated_amount: number;
|
|
255
|
+
account_type?: string | null | undefined;
|
|
256
|
+
payment_term?: string | null | undefined;
|
|
257
|
+
payment_type?: string | null | undefined;
|
|
258
|
+
total_amount?: number | null | undefined;
|
|
259
|
+
outstanding_amount?: number | null | undefined;
|
|
260
|
+
account?: string | null | undefined;
|
|
261
|
+
payment_request?: string | null | undefined;
|
|
206
262
|
}[] | undefined;
|
|
207
263
|
deductions?: unknown[] | undefined;
|
|
208
264
|
}>;
|
|
@@ -254,15 +310,36 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
254
310
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
255
311
|
reference_doctype: z.ZodString;
|
|
256
312
|
reference_name: z.ZodString;
|
|
313
|
+
payment_term: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
314
|
+
account_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
315
|
+
payment_type: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
316
|
+
total_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
317
|
+
outstanding_amount: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
257
318
|
allocated_amount: z.ZodNumber;
|
|
319
|
+
account: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
320
|
+
payment_request: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
258
321
|
}, "strip", z.ZodTypeAny, {
|
|
259
322
|
reference_doctype: string;
|
|
260
323
|
reference_name: string;
|
|
261
324
|
allocated_amount: number;
|
|
325
|
+
account_type?: string | null | undefined;
|
|
326
|
+
payment_term?: string | null | undefined;
|
|
327
|
+
payment_type?: string | null | undefined;
|
|
328
|
+
total_amount?: number | null | undefined;
|
|
329
|
+
outstanding_amount?: number | null | undefined;
|
|
330
|
+
account?: string | null | undefined;
|
|
331
|
+
payment_request?: string | null | undefined;
|
|
262
332
|
}, {
|
|
263
333
|
reference_doctype: string;
|
|
264
334
|
reference_name: string;
|
|
265
335
|
allocated_amount: number;
|
|
336
|
+
account_type?: string | null | undefined;
|
|
337
|
+
payment_term?: string | null | undefined;
|
|
338
|
+
payment_type?: string | null | undefined;
|
|
339
|
+
total_amount?: number | null | undefined;
|
|
340
|
+
outstanding_amount?: number | null | undefined;
|
|
341
|
+
account?: string | null | undefined;
|
|
342
|
+
payment_request?: string | null | undefined;
|
|
266
343
|
}>, "many">>;
|
|
267
344
|
taxes: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
268
345
|
deductions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
@@ -318,6 +395,13 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
318
395
|
reference_doctype: string;
|
|
319
396
|
reference_name: string;
|
|
320
397
|
allocated_amount: number;
|
|
398
|
+
account_type?: string | null | undefined;
|
|
399
|
+
payment_term?: string | null | undefined;
|
|
400
|
+
payment_type?: string | null | undefined;
|
|
401
|
+
total_amount?: number | null | undefined;
|
|
402
|
+
outstanding_amount?: number | null | undefined;
|
|
403
|
+
account?: string | null | undefined;
|
|
404
|
+
payment_request?: string | null | undefined;
|
|
321
405
|
}[] | undefined;
|
|
322
406
|
deductions?: unknown[] | undefined;
|
|
323
407
|
}, {
|
|
@@ -333,8 +417,8 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
333
417
|
base_total_taxes_and_charges?: number | undefined;
|
|
334
418
|
total_taxes_and_charges?: number | undefined;
|
|
335
419
|
taxes?: unknown[] | undefined;
|
|
336
|
-
payment_number?: string | undefined;
|
|
337
420
|
payment_type?: "Receive" | "Pay" | "Internal Transfer" | undefined;
|
|
421
|
+
payment_number?: string | undefined;
|
|
338
422
|
payment_order_status?: "Initiated" | "Payment Ordered" | undefined;
|
|
339
423
|
internal_reference?: string | undefined;
|
|
340
424
|
mode_of_payment?: string | undefined;
|
|
@@ -370,6 +454,13 @@ export declare const PaymentEntryDraft: z.ZodObject<{
|
|
|
370
454
|
reference_doctype: string;
|
|
371
455
|
reference_name: string;
|
|
372
456
|
allocated_amount: number;
|
|
457
|
+
account_type?: string | null | undefined;
|
|
458
|
+
payment_term?: string | null | undefined;
|
|
459
|
+
payment_type?: string | null | undefined;
|
|
460
|
+
total_amount?: number | null | undefined;
|
|
461
|
+
outstanding_amount?: number | null | undefined;
|
|
462
|
+
account?: string | null | undefined;
|
|
463
|
+
payment_request?: string | null | undefined;
|
|
373
464
|
}[] | undefined;
|
|
374
465
|
deductions?: unknown[] | undefined;
|
|
375
466
|
}>;
|
|
@@ -7,7 +7,14 @@ const PaymentEntryReference = zod_1.z
|
|
|
7
7
|
.object({
|
|
8
8
|
reference_doctype: zod_1.z.string(),
|
|
9
9
|
reference_name: zod_1.z.string(),
|
|
10
|
+
payment_term: zod_1.z.string().optional().nullable(),
|
|
11
|
+
account_type: zod_1.z.string().optional().nullable(),
|
|
12
|
+
payment_type: zod_1.z.string().optional().nullable(),
|
|
13
|
+
total_amount: zod_1.z.number().optional().nullable(),
|
|
14
|
+
outstanding_amount: zod_1.z.number().optional().nullable(),
|
|
10
15
|
allocated_amount: zod_1.z.number(),
|
|
16
|
+
account: zod_1.z.string().optional().nullable(),
|
|
17
|
+
payment_request: zod_1.z.string().optional().nullable(),
|
|
11
18
|
})
|
|
12
19
|
.describe("Payment Entry Reference");
|
|
13
20
|
const PaymentTypes = zod_1.z.enum(["Receive", "Pay", "Internal Transfer"]);
|
|
@@ -651,6 +651,7 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
651
651
|
pr_detail?: string | null | undefined;
|
|
652
652
|
}[] | null | undefined;
|
|
653
653
|
supplier?: string | null | undefined;
|
|
654
|
+
outstanding_amount?: number | null | undefined;
|
|
654
655
|
paid_amount?: number | null | undefined;
|
|
655
656
|
base_paid_amount?: number | null | undefined;
|
|
656
657
|
remarks?: string | null | undefined;
|
|
@@ -671,7 +672,6 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
671
672
|
taxes_and_charges_added?: number | null | undefined;
|
|
672
673
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
673
674
|
total_advance?: number | null | undefined;
|
|
674
|
-
outstanding_amount?: number | null | undefined;
|
|
675
675
|
write_off_amount?: number | null | undefined;
|
|
676
676
|
base_write_off_amount?: number | null | undefined;
|
|
677
677
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -822,6 +822,7 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
822
822
|
pr_detail?: string | null | undefined;
|
|
823
823
|
}[] | null | undefined;
|
|
824
824
|
supplier?: string | null | undefined;
|
|
825
|
+
outstanding_amount?: number | null | undefined;
|
|
825
826
|
paid_amount?: number | null | undefined;
|
|
826
827
|
base_paid_amount?: number | null | undefined;
|
|
827
828
|
remarks?: string | null | undefined;
|
|
@@ -842,7 +843,6 @@ export declare const PurchaseInvoice: z.ZodObject<{
|
|
|
842
843
|
taxes_and_charges_added?: number | null | undefined;
|
|
843
844
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
844
845
|
total_advance?: number | null | undefined;
|
|
845
|
-
outstanding_amount?: number | null | undefined;
|
|
846
846
|
write_off_amount?: number | null | undefined;
|
|
847
847
|
base_write_off_amount?: number | null | undefined;
|
|
848
848
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1459,6 +1459,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1459
1459
|
pr_detail?: string | null | undefined;
|
|
1460
1460
|
}[] | null | undefined;
|
|
1461
1461
|
supplier?: string | null | undefined;
|
|
1462
|
+
outstanding_amount?: number | null | undefined;
|
|
1462
1463
|
paid_amount?: number | null | undefined;
|
|
1463
1464
|
base_paid_amount?: number | null | undefined;
|
|
1464
1465
|
remarks?: string | null | undefined;
|
|
@@ -1479,7 +1480,6 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1479
1480
|
taxes_and_charges_added?: number | null | undefined;
|
|
1480
1481
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1481
1482
|
total_advance?: number | null | undefined;
|
|
1482
|
-
outstanding_amount?: number | null | undefined;
|
|
1483
1483
|
write_off_amount?: number | null | undefined;
|
|
1484
1484
|
base_write_off_amount?: number | null | undefined;
|
|
1485
1485
|
allocate_advances_automatically?: number | null | undefined;
|
|
@@ -1660,6 +1660,7 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1660
1660
|
pr_detail?: string | null | undefined;
|
|
1661
1661
|
}[] | null | undefined;
|
|
1662
1662
|
supplier?: string | null | undefined;
|
|
1663
|
+
outstanding_amount?: number | null | undefined;
|
|
1663
1664
|
paid_amount?: number | null | undefined;
|
|
1664
1665
|
base_paid_amount?: number | null | undefined;
|
|
1665
1666
|
remarks?: string | null | undefined;
|
|
@@ -1680,7 +1681,6 @@ export declare const PurchaseInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1680
1681
|
taxes_and_charges_added?: number | null | undefined;
|
|
1681
1682
|
taxes_and_charges_deducted?: number | null | undefined;
|
|
1682
1683
|
total_advance?: number | null | undefined;
|
|
1683
|
-
outstanding_amount?: number | null | undefined;
|
|
1684
1684
|
write_off_amount?: number | null | undefined;
|
|
1685
1685
|
base_write_off_amount?: number | null | undefined;
|
|
1686
1686
|
allocate_advances_automatically?: number | null | undefined;
|