From a80fb6e93018f83318a18455c367c66d63d761aa Mon Sep 17 00:00:00 2001 From: MohamedAliSmk Date: Mon, 9 Mar 2026 14:33:30 +0200 Subject: [PATCH 1/4] PN-34: Convert custom fields and print format from fixtures to exported customizations - Remove Custom Field and Print Format entries from fixtures in hooks.py - Delete fixtures/custom_field.json and fixtures/print_format.json - Add exported custom field JSONs under pos_next/pos_next/custom/ (item, mode_of_payment, pos_profile, pricing_rule, promotional_scheme, sales_invoice, sales_order) - Add exported print format under pos_next/pos_next/print_format/ (POS Next Receipt) --- pos_next/fixtures/custom_field.json | 629 ------------------ pos_next/fixtures/print_format.json | 15 - pos_next/hooks.py | 32 - pos_next/pos_next/custom/item.json | 73 ++ pos_next/pos_next/custom/mode_of_payment.json | 73 ++ pos_next/pos_next/custom/pos_profile.json | 403 +++++++++++ pos_next/pos_next/custom/pricing_rule.json | 73 ++ .../pos_next/custom/promotional_scheme.json | 73 ++ pos_next/pos_next/custom/sales_invoice.json | 137 ++++ pos_next/pos_next/custom/sales_order.json | 201 ++++++ pos_next/pos_next/print_format/__init__.py | 0 .../print_format/pos_next_receipt/__init__.py | 0 .../pos_next_receipt/pos_next_receipt.json | 30 + 13 files changed, 1063 insertions(+), 676 deletions(-) delete mode 100644 pos_next/fixtures/custom_field.json delete mode 100644 pos_next/fixtures/print_format.json create mode 100644 pos_next/pos_next/custom/item.json create mode 100644 pos_next/pos_next/custom/mode_of_payment.json create mode 100644 pos_next/pos_next/custom/pos_profile.json create mode 100644 pos_next/pos_next/custom/pricing_rule.json create mode 100644 pos_next/pos_next/custom/promotional_scheme.json create mode 100644 pos_next/pos_next/custom/sales_invoice.json create mode 100644 pos_next/pos_next/custom/sales_order.json create mode 100644 pos_next/pos_next/print_format/__init__.py create mode 100644 pos_next/pos_next/print_format/pos_next_receipt/__init__.py create mode 100644 pos_next/pos_next/print_format/pos_next_receipt/pos_next_receipt.json diff --git a/pos_next/fixtures/custom_field.json b/pos_next/fixtures/custom_field.json deleted file mode 100644 index 7cfb2bac..00000000 --- a/pos_next/fixtures/custom_field.json +++ /dev/null @@ -1,629 +0,0 @@ -[ - { - "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": "Leave empty for global items available to all companies", - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Item", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "custom_company", - "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": 1, - "insert_after": "stock_uom", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Company", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-10-31 17:41:05.902075", - "module": "POS Next", - "name": "Item-custom_company", - "no_copy": 0, - "non_negative": 0, - "options": "Company", - "permlevel": 0, - "placeholder": null, - "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, - "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", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_pos_opening_shift", - "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": "pos_profile", - "is_system_generated": 0, - "is_virtual": 0, - "label": "POS Opening Shift", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-10-09 18:30:00", - "module": "POS Next", - "name": "Sales Invoice-posa_pos_opening_shift", - "no_copy": 1, - "non_negative": 0, - "options": "POS Opening Shift", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 1, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": "0", - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Sales Invoice", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_is_printed", - "fieldtype": "Check", - "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": "posa_pos_opening_shift", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Is Printed", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-10-09 18:30:00", - "module": "POS Next", - "name": "Sales Invoice-posa_is_printed", - "no_copy": 1, - "non_negative": 0, - "options": null, - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 1, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": null, - "depends_on": null, - "description": "Default cash mode of payment for POS transactions", - "docstatus": 0, - "doctype": "Custom Field", - "dt": "POS Profile", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_cash_mode_of_payment", - "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": "update_stock", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Cash Mode of Payment", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-11-05 19:52:57.371047", - "module": "POS Next", - "name": "POS Profile-posa_cash_mode_of_payment", - "no_copy": 0, - "non_negative": 0, - "options": "Mode of Payment", - "permlevel": 0, - "placeholder": null, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": "1", - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "POS Profile", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_block_sale_beyond_available_qty", - "fieldtype": "Check", - "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": "posa_default_sales_order", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Block Sale Beyond Available Qty", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-11-05 20:00:57.329414", - "module": "POS Next", - "name": "POS Profile-posa_block_sale_beyond_available_qty", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "placeholder": null, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": "0", - "depends_on": null, - "description": "Allow deletion of draft invoices during shift closing", - "docstatus": 0, - "doctype": "Custom Field", - "dt": "POS Profile", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_allow_delete", - "fieldtype": "Check", - "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": "posa_cash_mode_of_payment", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Allow Delete Draft Invoices", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-11-05 19:52:58.088362", - "module": "POS Next", - "name": "POS Profile-posa_allow_delete", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "placeholder": null, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Sales Order", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "pos_profile", - "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": "customer", - "is_system_generated": 0, - "is_virtual": 0, - "label": "POS Profile", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-11-05 20:30:00", - "module": "POS Next", - "name": "Sales Order-pos_profile", - "no_copy": 0, - "non_negative": 0, - "options": "POS Profile", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 1, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Sales Order", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_pos_opening_shift", - "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": "pos_profile", - "is_system_generated": 0, - "is_virtual": 0, - "label": "POS Opening Shift", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-11-05 20:30:00", - "module": "POS Next", - "name": "Sales Order-posa_pos_opening_shift", - "no_copy": 1, - "non_negative": 0, - "options": "POS Opening Shift", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 1, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": "0", - "depends_on": null, - "description": "Mark this payment method as a wallet payment. When selected, the customer's wallet balance will be shown and used for payment.", - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Mode of Payment", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "is_wallet_payment", - "fieldtype": "Check", - "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": "enabled", - "is_system_generated": 0, - "is_virtual": 0, - "label": "Is Wallet Payment", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2024-12-17 12:30:00.000000", - "module": "POS Next", - "name": "Mode of Payment-is_wallet_payment", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "placeholder": null, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": "0", - "depends_on": "eval:doc.selling", - "description": "If checked, this scheme will only apply to POS transactions (Sales Invoices with is_pos=1 and POS Invoices)", - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Promotional Scheme", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "pos_only", - "fieldtype": "Check", - "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": "selling", - "is_system_generated": 0, - "is_virtual": 0, - "label": "POS Only", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2026-03-02 12:00:00.000000", - "module": "POS Next", - "name": "Promotional Scheme-pos_only", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "placeholder": null, - "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, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "default": "0", - "depends_on": null, - "description": "If checked, this rule only applies to POS transactions", - "docstatus": 0, - "doctype": "Custom Field", - "dt": "Pricing Rule", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "pos_only", - "fieldtype": "Check", - "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": "selling", - "is_system_generated": 0, - "is_virtual": 0, - "label": "POS Only", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2026-03-02 12:00:00.000000", - "module": "POS Next", - "name": "Pricing Rule-pos_only", - "no_copy": 0, - "non_negative": 0, - "options": null, - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 0, - "read_only_depends_on": "eval:doc.promotional_scheme", - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "show_dashboard": 0, - "sort_options": 0, - "translatable": 0, - "unique": 0, - "width": null - } -] diff --git a/pos_next/fixtures/print_format.json b/pos_next/fixtures/print_format.json deleted file mode 100644 index 762ef158..00000000 --- a/pos_next/fixtures/print_format.json +++ /dev/null @@ -1,15 +0,0 @@ -[ - { - "doc_type": "Sales Invoice", - "doctype": "Print Format", - "name": "POS Next Receipt", - "module": "POS Next", - "html": "\n\n{%- set currency_symbol = frappe.db.get_value(\"Currency\", doc.currency, \"symbol\") -%}\n{%- if not currency_symbol -%}\n\t{%- set currency_symbol = doc.currency -%}\n{%- endif -%}\n\n\n
{{ doc.company }}
\n
TAX INVOICE
\n\n\n
\n\t
Invoice: {{ doc.name }}
\n\t
Date: {{ doc.posting_date }} {{ (doc.posting_time|string).split('.')[0] if doc.posting_time else '' }}
\n\t{%- if doc.customer_name -%}\n\t
Customer: {{ doc.customer_name }}
\n\t{%- endif -%}\n\t{%- if doc.status == \"Partly Paid\" or (doc.outstanding_amount and doc.outstanding_amount > 0 and doc.outstanding_amount < doc.grand_total) -%}\n\t
Status: PARTIAL PAYMENT
\n\t{%- endif -%}\n
\n\n
\n\n\n{%- for item in doc.items -%}\n
\n\t
{{ item.item_name }}
\n\t
\n\t\t{{ \"%.0f\"|format(item.qty) }} × {{ currency_symbol }} {{ \"%.2f\"|format(item.price_list_rate or item.rate) }}\n\t\t{{ currency_symbol }} {{ \"%.2f\"|format(item.qty * (item.price_list_rate or item.rate)) }}\n\t
\n\t{%- if item.discount_percentage or item.discount_amount -%}\n\t
\n\t\tDiscount{%- if item.discount_percentage -%} ({{ \"%.1f\"|format(item.discount_percentage) }}%){%- endif -%}\n\t\t-{{ currency_symbol }} {{ \"%.2f\"|format(item.discount_amount or 0) }}\n\t
\n\t{%- endif -%}\n\t{%- if item.serial_no -%}\n\t
\n\t\t
Serial No:
\n\t\t
{{ item.serial_no | replace(\"\\n\", \", \") }}
\n\t
\n\t{%- endif -%}\n
\n{%- endfor -%}\n\n
\n\n\n{%- if doc.total_taxes_and_charges and doc.total_taxes_and_charges > 0 -%}\n
\n\tSubtotal:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.grand_total - doc.total_taxes_and_charges) }}\n
\n
\n\tTax:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.total_taxes_and_charges) }}\n
\n{%- endif -%}\n{%- if doc.discount_amount -%}\n
\n\tAdditional Discount{%- if doc.additional_discount_percentage -%} ({{ \"%.1f\"|format(doc.additional_discount_percentage) }}%){%- endif -%}:\n\t-{{ currency_symbol }} {{ \"%.2f\"|format(doc.discount_amount|abs) }}\n
\n{%- endif -%}\n
\n\tTOTAL:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.grand_total) }}\n
\n\n\n{%- if doc.payments -%}\n
\n
Payments:
\n{%- for payment in doc.payments -%}\n
\n\t{{ payment.mode_of_payment }}:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(payment.amount) }}\n
\n{%- endfor -%}\n
\n\tTotal Paid:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.paid_amount or 0) }}\n
\n{%- if doc.change_amount > 0 -%}\n
\n\tChange:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.change_amount) }}\n
\n{%- endif -%}\n{%- if doc.outstanding_amount and doc.outstanding_amount > 0 -%}\n
\n\tBALANCE DUE:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.outstanding_amount) }}\n
\n{%- endif -%}\n{%- endif -%}\n\n\n
\n\t
Thank you for your business!
\n\t
Powered by POS Next
\n
", - "custom_format": 1, - "disabled": 0, - "standard": "No", - "print_format_type": "Jinja", - "default_print_language": "en", - "font_size": 12 - } -] diff --git a/pos_next/hooks.py b/pos_next/hooks.py index df4727f8..764d9a71 100644 --- a/pos_next/hooks.py +++ b/pos_next/hooks.py @@ -87,38 +87,6 @@ # Fixtures # -------- fixtures = [ - { - "dt": "Custom Field", - "filters": [ - [ - "name", - "in", - [ - "Sales Invoice-posa_pos_opening_shift", - "Sales Invoice-posa_is_printed", - "Item-custom_company", - "POS Profile-posa_cash_mode_of_payment", - "POS Profile-posa_allow_delete", - "POS Profile-posa_block_sale_beyond_available_qty", - "Mode of Payment-is_wallet_payment", - "Promotional Scheme-pos_only", - "Pricing Rule-pos_only" - ] - ] - ] - }, - { - "dt": "Print Format", - "filters": [ - [ - "name", - "in", - [ - "POS Next Receipt" - ] - ] - ] - }, { "dt": "Role", "filters": [ diff --git a/pos_next/pos_next/custom/item.json b/pos_next/pos_next/custom/item.json new file mode 100644 index 00000000..a583213c --- /dev/null +++ b/pos_next/pos_next/custom/item.json @@ -0,0 +1,73 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-01 14:10:08.477134", + "default": null, + "depends_on": null, + "description": "Leave empty for global items available to all companies", + "docstatus": 0, + "dt": "Item", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "custom_company", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 6, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_global_search": 0, + "in_list_view": 0, + "in_preview": 0, + "in_standard_filter": 1, + "insert_after": "stock_uom", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Company", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-10-31 17:41:05.902075", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Item-custom_company", + "no_copy": 0, + "non_negative": 0, + "options": "Company", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "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 + } + ], + "custom_perms": [], + "doctype": "Item", + "links": [], + "property_setters": [], + "sync_on_migrate": 1 +} diff --git a/pos_next/pos_next/custom/mode_of_payment.json b/pos_next/pos_next/custom/mode_of_payment.json new file mode 100644 index 00000000..5ac969a4 --- /dev/null +++ b/pos_next/pos_next/custom/mode_of_payment.json @@ -0,0 +1,73 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-02-23 11:34:28.256273", + "default": "0", + "depends_on": null, + "description": "Mark this payment method as a wallet payment. When selected, the customer's wallet balance will be shown and used for payment.", + "docstatus": 0, + "dt": "Mode of Payment", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "is_wallet_payment", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 2, + "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": "enabled", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Is Wallet Payment", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2024-12-17 12:30:00", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Mode of Payment-is_wallet_payment", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "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 + } + ], + "custom_perms": [], + "doctype": "Mode of Payment", + "links": [], + "property_setters": [], + "sync_on_migrate": 1 +} diff --git a/pos_next/pos_next/custom/pos_profile.json b/pos_next/pos_next/custom/pos_profile.json new file mode 100644 index 00000000..a6f20783 --- /dev/null +++ b/pos_next/pos_next/custom/pos_profile.json @@ -0,0 +1,403 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-02-23 11:34:27.546703", + "default": "0", + "depends_on": null, + "description": "Allow deletion of draft invoices during shift closing", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_allow_delete", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 21, + "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": "posa_cash_mode_of_payment", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Allow Delete Draft Invoices", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-11-05 19:52:58.088362", + "modified_by": "Administrator", + "module": "POS Next", + "name": "POS Profile-posa_allow_delete", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "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 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-02-23 11:34:27.353168", + "default": "1", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_block_sale_beyond_available_qty", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 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": "posa_default_sales_order", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Block Sale Beyond Available Qty", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-11-05 20:00:57.329414", + "modified_by": "Administrator", + "module": "POS Next", + "name": "POS Profile-posa_block_sale_beyond_available_qty", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "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 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-02-23 11:34:27.182618", + "default": null, + "depends_on": null, + "description": "Default cash mode of payment for POS transactions", + "docstatus": 0, + "dt": "POS Profile", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_cash_mode_of_payment", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 20, + "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": "update_stock", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Cash Mode of Payment", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-11-05 19:52:57.371047", + "modified_by": "Administrator", + "module": "POS Next", + "name": "POS Profile-posa_cash_mode_of_payment", + "no_copy": 0, + "non_negative": 0, + "options": "Mode of Payment", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "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 + } + ], + "custom_perms": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "amend": 0, + "cancel": 0, + "create": 1, + "creation": "2026-02-23 11:34:24.474847", + "delete": 1, + "docstatus": 0, + "email": 1, + "export": 1, + "idx": 0, + "if_owner": 0, + "import": 1, + "modified": "2026-01-11 12:00:00", + "modified_by": "Administrator", + "name": "pos_profile_accounts_manager", + "owner": "Administrator", + "parent": "POS Profile", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts Manager", + "select": 0, + "set_user_permissions": 0, + "share": 1, + "submit": 0, + "write": 1 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "amend": 0, + "cancel": 0, + "create": 0, + "creation": "2026-02-23 11:34:24.507255", + "delete": 0, + "docstatus": 0, + "email": 1, + "export": 1, + "idx": 0, + "if_owner": 0, + "import": 0, + "modified": "2026-01-11 12:00:00", + "modified_by": "Administrator", + "name": "pos_profile_accounts_user", + "owner": "Administrator", + "parent": "POS Profile", + "permlevel": 0, + "print": 1, + "read": 1, + "report": 1, + "role": "Accounts User", + "select": 0, + "set_user_permissions": 0, + "share": 0, + "submit": 0, + "write": 0 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "amend": 0, + "cancel": 0, + "create": 0, + "creation": "2026-02-23 11:34:24.441984", + "delete": 0, + "docstatus": 0, + "email": 0, + "export": 1, + "idx": 0, + "if_owner": 0, + "import": 0, + "modified": "2025-12-28 10:59:51.867284", + "modified_by": "Administrator", + "name": "rqe6q5knl7", + "owner": "Administrator", + "parent": "POS Profile", + "permlevel": 0, + "print": 0, + "read": 1, + "report": 0, + "role": "POSNext Cashier", + "select": 0, + "set_user_permissions": 0, + "share": 0, + "submit": 0, + "write": 0 + } + ], + "doctype": "POS Profile", + "links": [ + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Opening & Closing", + "hidden": 0, + "idx": 4, + "is_child_table": 0, + "link_doctype": "POS Closing Entry", + "link_fieldname": "pos_profile", + "modified": "2026-02-11 16:45:38.715377", + "modified_by": "Administrator", + "name": "k0r557dckr", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + }, + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Opening & Closing", + "hidden": 0, + "idx": 3, + "is_child_table": 0, + "link_doctype": "POS Opening Entry", + "link_fieldname": "pos_profile", + "modified": "2026-02-11 16:45:38.715377", + "modified_by": "Administrator", + "name": "k0rn4g1na8", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + }, + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Invoices", + "hidden": 0, + "idx": 1, + "is_child_table": 0, + "link_doctype": "Sales Invoice", + "link_fieldname": "pos_profile", + "modified": "2026-02-11 16:45:38.715377", + "modified_by": "Administrator", + "name": "k0rtu0jsn6", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + }, + { + "creation": "2013-05-24 12:15:51", + "custom": 0, + "docstatus": 0, + "group": "Invoices", + "hidden": 0, + "idx": 2, + "is_child_table": 0, + "link_doctype": "POS Invoice", + "link_fieldname": "pos_profile", + "modified": "2026-02-11 16:45:38.715377", + "modified_by": "Administrator", + "name": "k0rvqet6nt", + "owner": "Administrator", + "parent": "POS Profile", + "parent_doctype": null, + "parentfield": "links", + "parenttype": "DocType", + "table_fieldname": null + } + ], + "property_setters": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "creation": "2026-02-19 15:25:11.078968", + "default_value": null, + "doc_type": "POS Profile", + "docstatus": 0, + "doctype_or_field": "DocType", + "field_name": null, + "idx": 0, + "is_system_generated": 0, + "modified": "2026-02-19 15:25:11.078968", + "modified_by": "Administrator", + "module": null, + "name": "POS Profile-main-field_order", + "owner": "Administrator", + "property": "field_order", + "property_type": "Data", + "row_name": null, + "value": "[\"company\", \"customer\", \"country\", \"disabled\", \"column_break_9\", \"warehouse\", \"campaign\", \"company_address\", \"section_break_15\", \"applicable_for_users\", \"section_break_11\", \"payments\", \"section_break_14\", \"hide_images\", \"hide_unavailable_items\", \"auto_add_item_to_cart\", \"validate_stock_on_save\", \"print_receipt_on_order_complete\", \"column_break_16\", \"update_stock\", \"posa_cash_mode_of_payment\", \"posa_allow_delete\", \"ignore_pricing_rule\", \"allow_rate_change\", \"allow_discount_change\", \"disable_grand_total_to_default_mop\", \"allow_partial_payment\", \"section_break_23\", \"item_groups\", \"column_break_25\", \"customer_groups\", \"section_break_16\", \"print_format\", \"letter_head\", \"column_break0\", \"tc_name\", \"select_print_heading\", \"section_break_19\", \"selling_price_list\", \"currency\", \"write_off_account\", \"write_off_cost_center\", \"write_off_limit\", \"account_for_change_amount\", \"disable_rounded_total\", \"column_break_23\", \"income_account\", \"expense_account\", \"taxes_and_charges\", \"tax_category\", \"apply_discount_on\", \"accounting_dimensions_section\", \"cost_center\", \"dimension_col_break\", \"project\", \"posa_block_sale_beyond_available_qty\"]" + } + ], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/pos_next/pos_next/custom/pricing_rule.json b/pos_next/pos_next/custom/pricing_rule.json new file mode 100644 index 00000000..30f611fa --- /dev/null +++ b/pos_next/pos_next/custom/pricing_rule.json @@ -0,0 +1,73 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-02 13:54:00.316039", + "default": null, + "depends_on": null, + "description": "If checked, this rule only applies to POS transactions", + "docstatus": 0, + "dt": "Pricing Rule", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "pos_only", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 16, + "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": "apply_rule_on_other", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Only", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2026-03-02 13:54:24.308912", + "modified_by": "Administrator", + "module": null, + "name": "Pricing Rule-custom_pos_only", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 0, + "read_only_depends_on": "eval:doc.promotional_scheme", + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "show_dashboard": 0, + "sort_options": 0, + "translatable": 0, + "unique": 0, + "width": null + } + ], + "custom_perms": [], + "doctype": "Pricing Rule", + "links": [], + "property_setters": [], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/pos_next/pos_next/custom/promotional_scheme.json b/pos_next/pos_next/custom/promotional_scheme.json new file mode 100644 index 00000000..038b9751 --- /dev/null +++ b/pos_next/pos_next/custom/promotional_scheme.json @@ -0,0 +1,73 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-02 13:51:19.810524", + "default": null, + "depends_on": "eval:doc.selling", + "description": "If checked, this scheme will only apply to POS transactions (Sales Invoices with is_pos=1 and POS Invoices)", + "docstatus": 0, + "dt": "Promotional Scheme", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "pos_only", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 3, + "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": "disable", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Only", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2026-03-02 13:54:14.946616", + "modified_by": "Administrator", + "module": null, + "name": "Promotional Scheme-custom_pos_only", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "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 + } + ], + "custom_perms": [], + "doctype": "Promotional Scheme", + "links": [], + "property_setters": [], + "sync_on_migrate": 1 +} \ No newline at end of file diff --git a/pos_next/pos_next/custom/sales_invoice.json b/pos_next/pos_next/custom/sales_invoice.json new file mode 100644 index 00000000..e66e7f7b --- /dev/null +++ b/pos_next/pos_next/custom/sales_invoice.json @@ -0,0 +1,137 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-01 14:10:09.177416", + "default": "0", + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_is_printed", + "fieldtype": "Check", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 19, + "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": "posa_pos_opening_shift", + "is_system_generated": 0, + "is_virtual": 0, + "label": "Is Printed", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-10-09 18:30:00", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Sales Invoice-posa_is_printed", + "no_copy": 1, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "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 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-01 14:10:08.788616", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Invoice", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_pos_opening_shift", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 18, + "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": "pos_profile", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Opening Shift", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-10-09 18:30:00", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Sales Invoice-posa_pos_opening_shift", + "no_copy": 1, + "non_negative": 0, + "options": "POS Opening Shift", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "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 + } + ], + "custom_perms": [], + "doctype": "Sales Invoice", + "links": [], + "property_setters": [], + "sync_on_migrate": 1 +} diff --git a/pos_next/pos_next/custom/sales_order.json b/pos_next/pos_next/custom/sales_order.json new file mode 100644 index 00000000..151ff1b8 --- /dev/null +++ b/pos_next/pos_next/custom/sales_order.json @@ -0,0 +1,201 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-02-03 13:43:50.598230", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Order", + "fetch_from": "company.tax_id", + "fetch_if_empty": 0, + "fieldname": "company_trn", + "fieldtype": "Read Only", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 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": "company_address", + "is_system_generated": 1, + "is_virtual": 0, + "label": "Company TRN", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2026-02-03 13:43:50.598230", + "modified_by": "Administrator", + "module": null, + "name": "Sales Order-company_trn", + "no_copy": 0, + "non_negative": 0, + "options": null, + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 1, + "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 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-01 14:10:10.317091", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Order", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "pos_profile", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 6, + "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": "customer", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Profile", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-11-05 20:30:00", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Sales Order-pos_profile", + "no_copy": 0, + "non_negative": 0, + "options": "POS Profile", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "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 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-01 14:10:10.683220", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Order", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_pos_opening_shift", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 7, + "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": "pos_profile", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Opening Shift", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-11-05 20:30:00", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Sales Order-posa_pos_opening_shift", + "no_copy": 1, + "non_negative": 0, + "options": "POS Opening Shift", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "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 + } + ], + "custom_perms": [], + "doctype": "Sales Order", + "links": [], + "property_setters": [], + "sync_on_migrate": 1 +} diff --git a/pos_next/pos_next/print_format/__init__.py b/pos_next/pos_next/print_format/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pos_next/pos_next/print_format/pos_next_receipt/__init__.py b/pos_next/pos_next/print_format/pos_next_receipt/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pos_next/pos_next/print_format/pos_next_receipt/pos_next_receipt.json b/pos_next/pos_next/print_format/pos_next_receipt/pos_next_receipt.json new file mode 100644 index 00000000..71330fcc --- /dev/null +++ b/pos_next/pos_next/print_format/pos_next_receipt/pos_next_receipt.json @@ -0,0 +1,30 @@ +{ + "absolute_value": 0, + "align_labels_right": 0, + "creation": "2026-02-25 11:45:00.341222", + "custom_format": 1, + "default_print_language": "en", + "disabled": 0, + "doc_type": "Sales Invoice", + "docstatus": 0, + "doctype": "Print Format", + "font_size": 12, + "html": "\n\n{%- set currency_symbol = frappe.db.get_value(\"Currency\", doc.currency, \"symbol\") -%}\n{%- if not currency_symbol -%}\n\t{%- set currency_symbol = doc.currency -%}\n{%- endif -%}\n\n\n
{{ doc.company }}
\n
TAX INVOICE
\n\n\n
\n\t
Invoice: {{ doc.name }}
\n\t
Date: {{ doc.posting_date }} {{ (doc.posting_time|string).split('.')[0] if doc.posting_time else '' }}
\n\t{%- if doc.customer_name -%}\n\t
Customer: {{ doc.customer_name }}
\n\t{%- endif -%}\n\t{%- if doc.status == \"Partly Paid\" or (doc.outstanding_amount and doc.outstanding_amount > 0 and doc.outstanding_amount < doc.grand_total) -%}\n\t
Status: PARTIAL PAYMENT
\n\t{%- endif -%}\n
\n\n
\n\n\n{%- for item in doc.items -%}\n
\n\t
{{ item.item_name }}
\n\t
\n\t\t{{ \"%.0f\"|format(item.qty) }} \u00d7 {{ currency_symbol }} {{ \"%.2f\"|format(item.price_list_rate or item.rate) }}\n\t\t{{ currency_symbol }} {{ \"%.2f\"|format(item.qty * (item.price_list_rate or item.rate)) }}\n\t
\n\t{%- if item.discount_percentage or item.discount_amount -%}\n\t
\n\t\tDiscount{%- if item.discount_percentage -%} ({{ \"%.1f\"|format(item.discount_percentage) }}%){%- endif -%}\n\t\t-{{ currency_symbol }} {{ \"%.2f\"|format(item.discount_amount or 0) }}\n\t
\n\t{%- endif -%}\n\t{%- if item.serial_no -%}\n\t
\n\t\t
Serial No:
\n\t\t
{{ item.serial_no | replace(\"\\n\", \", \") }}
\n\t
\n\t{%- endif -%}\n
\n{%- endfor -%}\n\n
\n\n\n{%- if doc.total_taxes_and_charges and doc.total_taxes_and_charges > 0 -%}\n
\n\tSubtotal:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.grand_total - doc.total_taxes_and_charges) }}\n
\n
\n\tTax:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.total_taxes_and_charges) }}\n
\n{%- endif -%}\n{%- if doc.discount_amount -%}\n
\n\tAdditional Discount{%- if doc.additional_discount_percentage -%} ({{ \"%.1f\"|format(doc.additional_discount_percentage) }}%){%- endif -%}:\n\t-{{ currency_symbol }} {{ \"%.2f\"|format(doc.discount_amount|abs) }}\n
\n{%- endif -%}\n
\n\tTOTAL:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.grand_total) }}\n
\n\n\n{%- if doc.payments -%}\n
\n
Payments:
\n{%- for payment in doc.payments -%}\n
\n\t{{ payment.mode_of_payment }}:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(payment.amount) }}\n
\n{%- endfor -%}\n
\n\tTotal Paid:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.paid_amount or 0) }}\n
\n{%- if doc.change_amount > 0 -%}\n
\n\tChange:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.change_amount) }}\n
\n{%- endif -%}\n{%- if doc.outstanding_amount and doc.outstanding_amount > 0 -%}\n
\n\tBALANCE DUE:\n\t{{ currency_symbol }} {{ \"%.2f\"|format(doc.outstanding_amount) }}\n
\n{%- endif -%}\n{%- endif -%}\n\n\n
\n\t
Thank you for your business!
\n\t
Powered by POS Next
\n
", + "idx": 0, + "line_breaks": 0, + "margin_bottom": 0.0, + "margin_left": 0.0, + "margin_right": 0.0, + "margin_top": 0.0, + "modified": "2026-02-26 15:22:47.699244", + "modified_by": "Administrator", + "module": "POS Next", + "name": "POS Next Receipt", + "owner": "Administrator", + "print_format_builder": 0, + "print_format_builder_beta": 0, + "print_format_type": "Jinja", + "raw_printing": 0, + "show_section_headings": 0, + "standard": "No" +} \ No newline at end of file From 1c94a473b6b93dfbf8b402436a412be4def8ae91 Mon Sep 17 00:00:00 2001 From: MohamedAliSmk Date: Wed, 11 Mar 2026 13:24:00 +0200 Subject: [PATCH 2/4] 1) doctype not found when open pos profile 2) 3 added Roles in pos_profile.json 3) Sales Order Customizations removed --- pos_next/pos_next/custom/pos_profile.json | 99 +-------- pos_next/pos_next/custom/sales_order.json | 201 ------------------ .../doctype/pos_beands_detail/__init__.py | 0 .../pos_beands_detail/pos_beands_detail.json | 36 ++++ .../pos_beands_detail/pos_beands_detail.py | 9 + 5 files changed, 46 insertions(+), 299 deletions(-) delete mode 100644 pos_next/pos_next/custom/sales_order.json create mode 100644 pos_next/pos_next/doctype/pos_beands_detail/__init__.py create mode 100644 pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json create mode 100644 pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py diff --git a/pos_next/pos_next/custom/pos_profile.json b/pos_next/pos_next/custom/pos_profile.json index a6f20783..5fde5905 100644 --- a/pos_next/pos_next/custom/pos_profile.json +++ b/pos_next/pos_next/custom/pos_profile.json @@ -193,104 +193,7 @@ "width": null } ], - "custom_perms": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "amend": 0, - "cancel": 0, - "create": 1, - "creation": "2026-02-23 11:34:24.474847", - "delete": 1, - "docstatus": 0, - "email": 1, - "export": 1, - "idx": 0, - "if_owner": 0, - "import": 1, - "modified": "2026-01-11 12:00:00", - "modified_by": "Administrator", - "name": "pos_profile_accounts_manager", - "owner": "Administrator", - "parent": "POS Profile", - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "Accounts Manager", - "select": 0, - "set_user_permissions": 0, - "share": 1, - "submit": 0, - "write": 1 - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "amend": 0, - "cancel": 0, - "create": 0, - "creation": "2026-02-23 11:34:24.507255", - "delete": 0, - "docstatus": 0, - "email": 1, - "export": 1, - "idx": 0, - "if_owner": 0, - "import": 0, - "modified": "2026-01-11 12:00:00", - "modified_by": "Administrator", - "name": "pos_profile_accounts_user", - "owner": "Administrator", - "parent": "POS Profile", - "permlevel": 0, - "print": 1, - "read": 1, - "report": 1, - "role": "Accounts User", - "select": 0, - "set_user_permissions": 0, - "share": 0, - "submit": 0, - "write": 0 - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "amend": 0, - "cancel": 0, - "create": 0, - "creation": "2026-02-23 11:34:24.441984", - "delete": 0, - "docstatus": 0, - "email": 0, - "export": 1, - "idx": 0, - "if_owner": 0, - "import": 0, - "modified": "2025-12-28 10:59:51.867284", - "modified_by": "Administrator", - "name": "rqe6q5knl7", - "owner": "Administrator", - "parent": "POS Profile", - "permlevel": 0, - "print": 0, - "read": 1, - "report": 0, - "role": "POSNext Cashier", - "select": 0, - "set_user_permissions": 0, - "share": 0, - "submit": 0, - "write": 0 - } - ], + "custom_perms": [], "doctype": "POS Profile", "links": [ { diff --git a/pos_next/pos_next/custom/sales_order.json b/pos_next/pos_next/custom/sales_order.json deleted file mode 100644 index 151ff1b8..00000000 --- a/pos_next/pos_next/custom/sales_order.json +++ /dev/null @@ -1,201 +0,0 @@ -{ - "custom_fields": [ - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2026-02-03 13:43:50.598230", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Sales Order", - "fetch_from": "company.tax_id", - "fetch_if_empty": 0, - "fieldname": "company_trn", - "fieldtype": "Read Only", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 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": "company_address", - "is_system_generated": 1, - "is_virtual": 0, - "label": "Company TRN", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2026-02-03 13:43:50.598230", - "modified_by": "Administrator", - "module": null, - "name": "Sales Order-company_trn", - "no_copy": 0, - "non_negative": 0, - "options": null, - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 1, - "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 - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2026-03-01 14:10:10.317091", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Sales Order", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "pos_profile", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 6, - "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": "customer", - "is_system_generated": 0, - "is_virtual": 0, - "label": "POS Profile", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-11-05 20:30:00", - "modified_by": "Administrator", - "module": "POS Next", - "name": "Sales Order-pos_profile", - "no_copy": 0, - "non_negative": 0, - "options": "POS Profile", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 1, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "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 - }, - { - "_assign": null, - "_comments": null, - "_liked_by": null, - "_user_tags": null, - "allow_in_quick_entry": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 0, - "collapsible_depends_on": null, - "columns": 0, - "creation": "2026-03-01 14:10:10.683220", - "default": null, - "depends_on": null, - "description": null, - "docstatus": 0, - "dt": "Sales Order", - "fetch_from": null, - "fetch_if_empty": 0, - "fieldname": "posa_pos_opening_shift", - "fieldtype": "Link", - "hidden": 0, - "hide_border": 0, - "hide_days": 0, - "hide_seconds": 0, - "idx": 7, - "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": "pos_profile", - "is_system_generated": 0, - "is_virtual": 0, - "label": "POS Opening Shift", - "length": 0, - "link_filters": null, - "mandatory_depends_on": null, - "modified": "2025-11-05 20:30:00", - "modified_by": "Administrator", - "module": "POS Next", - "name": "Sales Order-posa_pos_opening_shift", - "no_copy": 1, - "non_negative": 0, - "options": "POS Opening Shift", - "owner": "Administrator", - "permlevel": 0, - "placeholder": null, - "precision": "", - "print_hide": 1, - "print_hide_if_no_value": 0, - "print_width": null, - "read_only": 1, - "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 - } - ], - "custom_perms": [], - "doctype": "Sales Order", - "links": [], - "property_setters": [], - "sync_on_migrate": 1 -} diff --git a/pos_next/pos_next/doctype/pos_beands_detail/__init__.py b/pos_next/pos_next/doctype/pos_beands_detail/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json b/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json new file mode 100644 index 00000000..398ebd33 --- /dev/null +++ b/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json @@ -0,0 +1,36 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2026-03-11 14:14:57.905230", + "doctype": "DocType", + "editable_grid": 1, + "engine": "InnoDB", + "field_order": [ + "brand" + ], + "fields": [ + { + "fieldname": "brand", + "fieldtype": "Link", + "in_list_view": 1, + "label": "Brand", + "options": "Brand", + "reqd": 1 + } + ], + "grid_page_length": 50, + "index_web_pages_for_search": 1, + "istable": 1, + "links": [], + "modified": "2026-03-11 14:17:03.907331", + "modified_by": "Administrator", + "module": "POS Next", + "name": "POS Beands Detail", + "owner": "Administrator", + "permissions": [], + "row_format": "Dynamic", + "rows_threshold_for_grid_search": 20, + "sort_field": "modified", + "sort_order": "DESC", + "states": [] +} \ No newline at end of file diff --git a/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py b/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py new file mode 100644 index 00000000..a122ba67 --- /dev/null +++ b/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py @@ -0,0 +1,9 @@ +# Copyright (c) 2026, BrainWise and contributors +# For license information, please see license.txt + +# import frappe +from frappe.model.document import Document + + +class POSBeandsDetail(Document): + pass From 76496d98bfb2f08c27a8c150bf4d6caf2bde7f09 Mon Sep 17 00:00:00 2001 From: MohamedAliSmk Date: Wed, 11 Mar 2026 14:15:20 +0200 Subject: [PATCH 3/4] remove unuse child table pos brands detail --- .../doctype/pos_beands_detail/__init__.py | 0 .../pos_beands_detail/pos_beands_detail.json | 36 ------------------- .../pos_beands_detail/pos_beands_detail.py | 9 ----- 3 files changed, 45 deletions(-) delete mode 100644 pos_next/pos_next/doctype/pos_beands_detail/__init__.py delete mode 100644 pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json delete mode 100644 pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py diff --git a/pos_next/pos_next/doctype/pos_beands_detail/__init__.py b/pos_next/pos_next/doctype/pos_beands_detail/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json b/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json deleted file mode 100644 index 398ebd33..00000000 --- a/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "actions": [], - "allow_rename": 1, - "creation": "2026-03-11 14:14:57.905230", - "doctype": "DocType", - "editable_grid": 1, - "engine": "InnoDB", - "field_order": [ - "brand" - ], - "fields": [ - { - "fieldname": "brand", - "fieldtype": "Link", - "in_list_view": 1, - "label": "Brand", - "options": "Brand", - "reqd": 1 - } - ], - "grid_page_length": 50, - "index_web_pages_for_search": 1, - "istable": 1, - "links": [], - "modified": "2026-03-11 14:17:03.907331", - "modified_by": "Administrator", - "module": "POS Next", - "name": "POS Beands Detail", - "owner": "Administrator", - "permissions": [], - "row_format": "Dynamic", - "rows_threshold_for_grid_search": 20, - "sort_field": "modified", - "sort_order": "DESC", - "states": [] -} \ No newline at end of file diff --git a/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py b/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py deleted file mode 100644 index a122ba67..00000000 --- a/pos_next/pos_next/doctype/pos_beands_detail/pos_beands_detail.py +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright (c) 2026, BrainWise and contributors -# For license information, please see license.txt - -# import frappe -from frappe.model.document import Document - - -class POSBeandsDetail(Document): - pass From 626221ab47445cf5924cfa01d3bfa1a5f6881913 Mon Sep 17 00:00:00 2001 From: MohamedAliSmk Date: Wed, 11 Mar 2026 14:33:31 +0200 Subject: [PATCH 4/4] add custom fields of sales order --- pos_next/pos_next/custom/sales_order.json | 137 ++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 pos_next/pos_next/custom/sales_order.json diff --git a/pos_next/pos_next/custom/sales_order.json b/pos_next/pos_next/custom/sales_order.json new file mode 100644 index 00000000..afa12233 --- /dev/null +++ b/pos_next/pos_next/custom/sales_order.json @@ -0,0 +1,137 @@ +{ + "custom_fields": [ + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-11 15:11:31.528541", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Order", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "pos_profile", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 6, + "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": "customer", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Profile", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-11-05 20:30:00", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Sales Order-pos_profile", + "no_copy": 0, + "non_negative": 0, + "options": "POS Profile", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "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 + }, + { + "_assign": null, + "_comments": null, + "_liked_by": null, + "_user_tags": null, + "allow_in_quick_entry": 0, + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "collapsible_depends_on": null, + "columns": 0, + "creation": "2026-03-11 15:11:31.896401", + "default": null, + "depends_on": null, + "description": null, + "docstatus": 0, + "dt": "Sales Order", + "fetch_from": null, + "fetch_if_empty": 0, + "fieldname": "posa_pos_opening_shift", + "fieldtype": "Link", + "hidden": 0, + "hide_border": 0, + "hide_days": 0, + "hide_seconds": 0, + "idx": 7, + "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": "pos_profile", + "is_system_generated": 0, + "is_virtual": 0, + "label": "POS Opening Shift", + "length": 0, + "link_filters": null, + "mandatory_depends_on": null, + "modified": "2025-11-05 20:30:00", + "modified_by": "Administrator", + "module": "POS Next", + "name": "Sales Order-posa_pos_opening_shift", + "no_copy": 1, + "non_negative": 0, + "options": "POS Opening Shift", + "owner": "Administrator", + "permlevel": 0, + "placeholder": null, + "precision": "", + "print_hide": 1, + "print_hide_if_no_value": 0, + "print_width": null, + "read_only": 1, + "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 + } + ], + "custom_perms": [], + "doctype": "Sales Order", + "links": [], + "property_setters": [], + "sync_on_migrate": 1 +} \ No newline at end of file