erpnext-queue-client 2.1.3 → 2.1.5
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.
|
@@ -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" | "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, }?: {
|
|
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" | "custom_tax_included_in_shipping_cost" | "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" | "custom_shipping_cost" | "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;
|
|
@@ -36,6 +36,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
36
36
|
selling_price_list: string;
|
|
37
37
|
plc_conversion_rate: number;
|
|
38
38
|
ignore_pricing_rule: 0 | 1;
|
|
39
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
39
40
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
40
41
|
disable_rounded_total: 0 | 1;
|
|
41
42
|
is_internal_customer: 0 | 1;
|
|
@@ -99,6 +100,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
99
100
|
net_total?: number | null | undefined;
|
|
100
101
|
shipping_rule?: string | null | undefined;
|
|
101
102
|
incoterm?: string | null | undefined;
|
|
103
|
+
custom_shipping_cost?: number | null | undefined;
|
|
102
104
|
taxes_and_charges?: string | null | undefined;
|
|
103
105
|
other_charges_calculation?: string | null | undefined;
|
|
104
106
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -198,7 +200,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
198
200
|
to_date?: string | null | undefined;
|
|
199
201
|
update_auto_repeat_reference?: string | null | undefined;
|
|
200
202
|
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" | "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") ? {
|
|
203
|
+
}[] : 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" | "custom_tax_included_in_shipping_cost" | "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" | "custom_shipping_cost" | "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
204
|
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
205
|
docstatus: number;
|
|
204
206
|
name: string;
|
|
@@ -218,6 +220,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
218
220
|
selling_price_list: string;
|
|
219
221
|
plc_conversion_rate: number;
|
|
220
222
|
ignore_pricing_rule: 0 | 1;
|
|
223
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
221
224
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
222
225
|
disable_rounded_total: 0 | 1;
|
|
223
226
|
is_internal_customer: 0 | 1;
|
|
@@ -281,6 +284,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
281
284
|
net_total?: number | null | undefined;
|
|
282
285
|
shipping_rule?: string | null | undefined;
|
|
283
286
|
incoterm?: string | null | undefined;
|
|
287
|
+
custom_shipping_cost?: number | null | undefined;
|
|
284
288
|
taxes_and_charges?: string | null | undefined;
|
|
285
289
|
other_charges_calculation?: string | null | undefined;
|
|
286
290
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -380,7 +384,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
380
384
|
to_date?: string | null | undefined;
|
|
381
385
|
update_auto_repeat_reference?: string | null | undefined;
|
|
382
386
|
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" | "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>;
|
|
387
|
+
}[(("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" | "custom_tax_included_in_shipping_cost" | "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" | "custom_shipping_cost" | "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
388
|
getById: ({ resourceId, priority, }: {
|
|
385
389
|
resourceId: string;
|
|
386
390
|
priority?: number;
|
|
@@ -405,6 +409,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
405
409
|
selling_price_list: string;
|
|
406
410
|
plc_conversion_rate: number;
|
|
407
411
|
ignore_pricing_rule: 0 | 1;
|
|
412
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
408
413
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
409
414
|
disable_rounded_total: 0 | 1;
|
|
410
415
|
is_internal_customer: 0 | 1;
|
|
@@ -554,6 +559,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
554
559
|
net_total?: number | null | undefined;
|
|
555
560
|
shipping_rule?: string | null | undefined;
|
|
556
561
|
incoterm?: string | null | undefined;
|
|
562
|
+
custom_shipping_cost?: number | null | undefined;
|
|
557
563
|
taxes_and_charges?: string | null | undefined;
|
|
558
564
|
other_charges_calculation?: string | null | undefined;
|
|
559
565
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -783,6 +789,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
783
789
|
net_total?: number | null | undefined;
|
|
784
790
|
shipping_rule?: string | null | undefined;
|
|
785
791
|
incoterm?: string | null | undefined;
|
|
792
|
+
custom_shipping_cost?: number | null | undefined;
|
|
793
|
+
custom_tax_included_in_shipping_cost?: 0 | 1 | undefined;
|
|
786
794
|
taxes_and_charges?: string | null | undefined;
|
|
787
795
|
other_charges_calculation?: string | null | undefined;
|
|
788
796
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -930,6 +938,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
930
938
|
selling_price_list: string;
|
|
931
939
|
plc_conversion_rate: number;
|
|
932
940
|
ignore_pricing_rule: 0 | 1;
|
|
941
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
933
942
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
934
943
|
disable_rounded_total: 0 | 1;
|
|
935
944
|
is_internal_customer: 0 | 1;
|
|
@@ -1079,6 +1088,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
1079
1088
|
net_total?: number | null | undefined;
|
|
1080
1089
|
shipping_rule?: string | null | undefined;
|
|
1081
1090
|
incoterm?: string | null | undefined;
|
|
1091
|
+
custom_shipping_cost?: number | null | undefined;
|
|
1082
1092
|
taxes_and_charges?: string | null | undefined;
|
|
1083
1093
|
other_charges_calculation?: string | null | undefined;
|
|
1084
1094
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -1308,6 +1318,8 @@ export declare class ERPNextSalesInvoice {
|
|
|
1308
1318
|
net_total?: number | null | undefined;
|
|
1309
1319
|
shipping_rule?: string | null | undefined;
|
|
1310
1320
|
incoterm?: string | null | undefined;
|
|
1321
|
+
custom_shipping_cost?: number | null | undefined;
|
|
1322
|
+
custom_tax_included_in_shipping_cost?: 0 | 1 | undefined;
|
|
1311
1323
|
taxes_and_charges?: string | null | undefined;
|
|
1312
1324
|
other_charges_calculation?: string | null | undefined;
|
|
1313
1325
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -1455,6 +1467,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
1455
1467
|
selling_price_list: string;
|
|
1456
1468
|
plc_conversion_rate: number;
|
|
1457
1469
|
ignore_pricing_rule: 0 | 1;
|
|
1470
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
1458
1471
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
1459
1472
|
disable_rounded_total: 0 | 1;
|
|
1460
1473
|
is_internal_customer: 0 | 1;
|
|
@@ -1604,6 +1617,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
1604
1617
|
net_total?: number | null | undefined;
|
|
1605
1618
|
shipping_rule?: string | null | undefined;
|
|
1606
1619
|
incoterm?: string | null | undefined;
|
|
1620
|
+
custom_shipping_cost?: number | null | undefined;
|
|
1607
1621
|
taxes_and_charges?: string | null | undefined;
|
|
1608
1622
|
other_charges_calculation?: string | null | undefined;
|
|
1609
1623
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -1731,6 +1745,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
1731
1745
|
selling_price_list: string;
|
|
1732
1746
|
plc_conversion_rate: number;
|
|
1733
1747
|
ignore_pricing_rule: 0 | 1;
|
|
1748
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
1734
1749
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
1735
1750
|
disable_rounded_total: 0 | 1;
|
|
1736
1751
|
is_internal_customer: 0 | 1;
|
|
@@ -1880,6 +1895,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
1880
1895
|
net_total?: number | null | undefined;
|
|
1881
1896
|
shipping_rule?: string | null | undefined;
|
|
1882
1897
|
incoterm?: string | null | undefined;
|
|
1898
|
+
custom_shipping_cost?: number | null | undefined;
|
|
1883
1899
|
taxes_and_charges?: string | null | undefined;
|
|
1884
1900
|
other_charges_calculation?: string | null | undefined;
|
|
1885
1901
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -2003,6 +2019,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2003
2019
|
selling_price_list: string;
|
|
2004
2020
|
plc_conversion_rate: number;
|
|
2005
2021
|
ignore_pricing_rule: 0 | 1;
|
|
2022
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
2006
2023
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
2007
2024
|
disable_rounded_total: 0 | 1;
|
|
2008
2025
|
is_internal_customer: 0 | 1;
|
|
@@ -2152,6 +2169,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2152
2169
|
net_total?: number | null | undefined;
|
|
2153
2170
|
shipping_rule?: string | null | undefined;
|
|
2154
2171
|
incoterm?: string | null | undefined;
|
|
2172
|
+
custom_shipping_cost?: number | null | undefined;
|
|
2155
2173
|
taxes_and_charges?: string | null | undefined;
|
|
2156
2174
|
other_charges_calculation?: string | null | undefined;
|
|
2157
2175
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -2273,6 +2291,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2273
2291
|
selling_price_list: string;
|
|
2274
2292
|
plc_conversion_rate: number;
|
|
2275
2293
|
ignore_pricing_rule: 0 | 1;
|
|
2294
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
2276
2295
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
2277
2296
|
disable_rounded_total: 0 | 1;
|
|
2278
2297
|
is_internal_customer: 0 | 1;
|
|
@@ -2422,6 +2441,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2422
2441
|
net_total?: number | null | undefined;
|
|
2423
2442
|
shipping_rule?: string | null | undefined;
|
|
2424
2443
|
incoterm?: string | null | undefined;
|
|
2444
|
+
custom_shipping_cost?: number | null | undefined;
|
|
2425
2445
|
taxes_and_charges?: string | null | undefined;
|
|
2426
2446
|
other_charges_calculation?: string | null | undefined;
|
|
2427
2447
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -2543,6 +2563,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2543
2563
|
selling_price_list: string;
|
|
2544
2564
|
plc_conversion_rate: number;
|
|
2545
2565
|
ignore_pricing_rule: 0 | 1;
|
|
2566
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
2546
2567
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
2547
2568
|
disable_rounded_total: 0 | 1;
|
|
2548
2569
|
is_internal_customer: 0 | 1;
|
|
@@ -2692,6 +2713,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2692
2713
|
net_total?: number | null | undefined;
|
|
2693
2714
|
shipping_rule?: string | null | undefined;
|
|
2694
2715
|
incoterm?: string | null | undefined;
|
|
2716
|
+
custom_shipping_cost?: number | null | undefined;
|
|
2695
2717
|
taxes_and_charges?: string | null | undefined;
|
|
2696
2718
|
other_charges_calculation?: string | null | undefined;
|
|
2697
2719
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -2812,6 +2834,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2812
2834
|
selling_price_list: string;
|
|
2813
2835
|
plc_conversion_rate: number;
|
|
2814
2836
|
ignore_pricing_rule: 0 | 1;
|
|
2837
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
2815
2838
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
2816
2839
|
disable_rounded_total: 0 | 1;
|
|
2817
2840
|
is_internal_customer: 0 | 1;
|
|
@@ -2961,6 +2984,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
2961
2984
|
net_total?: number | null | undefined;
|
|
2962
2985
|
shipping_rule?: string | null | undefined;
|
|
2963
2986
|
incoterm?: string | null | undefined;
|
|
2987
|
+
custom_shipping_cost?: number | null | undefined;
|
|
2964
2988
|
taxes_and_charges?: string | null | undefined;
|
|
2965
2989
|
other_charges_calculation?: string | null | undefined;
|
|
2966
2990
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -3082,6 +3106,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
3082
3106
|
selling_price_list: string;
|
|
3083
3107
|
plc_conversion_rate: number;
|
|
3084
3108
|
ignore_pricing_rule: 0 | 1;
|
|
3109
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
3085
3110
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
3086
3111
|
disable_rounded_total: 0 | 1;
|
|
3087
3112
|
is_internal_customer: 0 | 1;
|
|
@@ -3231,6 +3256,7 @@ export declare class ERPNextSalesInvoice {
|
|
|
3231
3256
|
net_total?: number | null | undefined;
|
|
3232
3257
|
shipping_rule?: string | null | undefined;
|
|
3233
3258
|
incoterm?: string | null | undefined;
|
|
3259
|
+
custom_shipping_cost?: number | null | undefined;
|
|
3234
3260
|
taxes_and_charges?: string | null | undefined;
|
|
3235
3261
|
other_charges_calculation?: string | null | undefined;
|
|
3236
3262
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -345,6 +345,10 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
345
345
|
ignore_pricing_rule: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
346
346
|
__optionalForInput: true;
|
|
347
347
|
};
|
|
348
|
+
custom_shipping_cost: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
349
|
+
custom_tax_included_in_shipping_cost: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
350
|
+
__optionalForInput: true;
|
|
351
|
+
};
|
|
348
352
|
update_stock: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
349
353
|
__optionalForInput: true;
|
|
350
354
|
};
|
|
@@ -840,6 +844,7 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
840
844
|
selling_price_list: string;
|
|
841
845
|
plc_conversion_rate: number;
|
|
842
846
|
ignore_pricing_rule: 0 | 1;
|
|
847
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
843
848
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
844
849
|
disable_rounded_total: 0 | 1;
|
|
845
850
|
is_internal_customer: 0 | 1;
|
|
@@ -977,6 +982,7 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
977
982
|
net_total?: number | null | undefined;
|
|
978
983
|
shipping_rule?: string | null | undefined;
|
|
979
984
|
incoterm?: string | null | undefined;
|
|
985
|
+
custom_shipping_cost?: number | null | undefined;
|
|
980
986
|
taxes_and_charges?: string | null | undefined;
|
|
981
987
|
other_charges_calculation?: string | null | undefined;
|
|
982
988
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -1204,6 +1210,8 @@ export declare const SalesInvoice: z.ZodObject<{
|
|
|
1204
1210
|
net_total?: number | null | undefined;
|
|
1205
1211
|
shipping_rule?: string | null | undefined;
|
|
1206
1212
|
incoterm?: string | null | undefined;
|
|
1213
|
+
custom_shipping_cost?: number | null | undefined;
|
|
1214
|
+
custom_tax_included_in_shipping_cost?: unknown;
|
|
1207
1215
|
taxes_and_charges?: string | null | undefined;
|
|
1208
1216
|
other_charges_calculation?: string | null | undefined;
|
|
1209
1217
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -1380,6 +1388,10 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1380
1388
|
ignore_pricing_rule: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1381
1389
|
__optionalForInput: true;
|
|
1382
1390
|
};
|
|
1391
|
+
custom_shipping_cost: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
1392
|
+
custom_tax_included_in_shipping_cost: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1393
|
+
__optionalForInput: true;
|
|
1394
|
+
};
|
|
1383
1395
|
update_stock: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>, 0 | 1, unknown>> & {
|
|
1384
1396
|
__optionalForInput: true;
|
|
1385
1397
|
};
|
|
@@ -1931,6 +1943,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
1931
1943
|
selling_price_list: string;
|
|
1932
1944
|
plc_conversion_rate: number;
|
|
1933
1945
|
ignore_pricing_rule: 0 | 1;
|
|
1946
|
+
custom_tax_included_in_shipping_cost: 0 | 1;
|
|
1934
1947
|
apply_discount_on: "" | "Grand Total" | "Net Total";
|
|
1935
1948
|
disable_rounded_total: 0 | 1;
|
|
1936
1949
|
is_internal_customer: 0 | 1;
|
|
@@ -2080,6 +2093,7 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2080
2093
|
net_total?: number | null | undefined;
|
|
2081
2094
|
shipping_rule?: string | null | undefined;
|
|
2082
2095
|
incoterm?: string | null | undefined;
|
|
2096
|
+
custom_shipping_cost?: number | null | undefined;
|
|
2083
2097
|
taxes_and_charges?: string | null | undefined;
|
|
2084
2098
|
other_charges_calculation?: string | null | undefined;
|
|
2085
2099
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -2326,6 +2340,8 @@ export declare const SalesInvoiceDraft: z.ZodObject<Omit<{
|
|
|
2326
2340
|
net_total?: number | null | undefined;
|
|
2327
2341
|
shipping_rule?: string | null | undefined;
|
|
2328
2342
|
incoterm?: string | null | undefined;
|
|
2343
|
+
custom_shipping_cost?: number | null | undefined;
|
|
2344
|
+
custom_tax_included_in_shipping_cost?: unknown;
|
|
2329
2345
|
taxes_and_charges?: string | null | undefined;
|
|
2330
2346
|
other_charges_calculation?: string | null | undefined;
|
|
2331
2347
|
base_total_taxes_and_charges?: number | null | undefined;
|
|
@@ -162,6 +162,9 @@ exports.SalesInvoice = zod_1.z
|
|
|
162
162
|
price_list_currency: zod_1.z.string().optional().nullable(),
|
|
163
163
|
plc_conversion_rate: (0, zodContextOptionals_1.optionalForInput)(zod_1.z.number().min(0).default(1)),
|
|
164
164
|
ignore_pricing_rule: Boolean_1.ERPNextBoolean,
|
|
165
|
+
// Custom Shipping Cost and Tax Included in Shipping Cost
|
|
166
|
+
custom_shipping_cost: zod_1.z.number().optional().nullable(),
|
|
167
|
+
custom_tax_included_in_shipping_cost: Boolean_1.ERPNextBoolean,
|
|
165
168
|
// Stock Management
|
|
166
169
|
update_stock: Boolean_1.ERPNextBoolean,
|
|
167
170
|
scan_barcode: zod_1.z.string().optional().nullable(),
|