From 2aeee31deb1e055f6611f89eb81c422524c0b3a3 Mon Sep 17 00:00:00 2001 From: Ashkar Date: Tue, 6 May 2025 20:27:13 +0530 Subject: [PATCH] fix: product bundle --- posnext/fixtures/custom_field.json | 56 +++++++++++++++++++++++++++++ posnext/public/js/pos_controller.js | 3 +- 2 files changed, 58 insertions(+), 1 deletion(-) diff --git a/posnext/fixtures/custom_field.json b/posnext/fixtures/custom_field.json index 57b06cd..c04e8bf 100644 --- a/posnext/fixtures/custom_field.json +++ b/posnext/fixtures/custom_field.json @@ -2855,6 +2855,62 @@ "unique": 0, "width": null }, + { + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "doctype": "Custom Field", + "dt": "Sales Invoice Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_bundle_id", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 0, + "insert_after": "actual_batch_qty", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Bundle ID", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-05-03 14:53:55.147690", + "module": "Posnext", + "name": "Sales Invoice Item-custom_bundle_id", + "no_copy": 0, + "non_negative": 0, + "options": "Product Bundle", + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": null, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + }, { "allow_in_quick_entry": 0, "allow_on_submit": 0, diff --git a/posnext/public/js/pos_controller.js b/posnext/public/js/pos_controller.js index c86d1cd..9a34111 100644 --- a/posnext/public/js/pos_controller.js +++ b/posnext/public/js/pos_controller.js @@ -670,7 +670,8 @@ posnext.PointOfSale.Controller = class { item_code: bundle_item.item_code, qty: bundle_item.qty * value, rate: bundle_item.rate, - uom: bundle_item.uom + uom: bundle_item.uom, + custom_bundle_id: product_bundle.name })); for (const bundle_item of bundle_items) {