fix: Stock and Accounts Settings form refactor (#25534)

* stock and accounts settings page

* fix: Stock and accounts settings page cleanup

Co-authored-by: Umair Sayed <umairsayed@Umairs-MacBook-Air.local>
This commit is contained in:
Umair Sayed 2021-05-07 12:28:57 +05:30 committed by GitHub
parent 735fbdc350
commit 7f79d463f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 86 additions and 45 deletions

View File

@ -7,26 +7,30 @@
"editable_grid": 1, "editable_grid": 1,
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"auto_accounting_for_stock", "accounts_transactions_settings_section",
"acc_frozen_upto",
"frozen_accounts_modifier",
"determine_address_tax_category_from",
"over_billing_allowance", "over_billing_allowance",
"role_allowed_to_over_bill", "role_allowed_to_over_bill",
"column_break_4",
"credit_controller",
"check_supplier_invoice_uniqueness",
"make_payment_via_journal_entry", "make_payment_via_journal_entry",
"column_break_11",
"check_supplier_invoice_uniqueness",
"unlink_payment_on_cancellation_of_invoice", "unlink_payment_on_cancellation_of_invoice",
"unlink_advance_payment_on_cancelation_of_order",
"book_asset_depreciation_entry_automatically",
"add_taxes_from_item_tax_template",
"automatically_fetch_payment_terms", "automatically_fetch_payment_terms",
"delete_linked_ledger_entries", "delete_linked_ledger_entries",
"book_asset_depreciation_entry_automatically",
"unlink_advance_payment_on_cancelation_of_order",
"tax_settings_section",
"determine_address_tax_category_from",
"column_break_19",
"add_taxes_from_item_tax_template",
"period_closing_settings_section",
"acc_frozen_upto",
"frozen_accounts_modifier",
"column_break_4",
"credit_controller",
"deferred_accounting_settings_section", "deferred_accounting_settings_section",
"automatically_process_deferred_accounting_entry",
"book_deferred_entries_based_on", "book_deferred_entries_based_on",
"column_break_18", "column_break_18",
"automatically_process_deferred_accounting_entry",
"book_deferred_entries_via_journal_entry", "book_deferred_entries_via_journal_entry",
"submit_journal_entries", "submit_journal_entries",
"print_settings", "print_settings",
@ -40,15 +44,6 @@
"use_custom_cash_flow" "use_custom_cash_flow"
], ],
"fields": [ "fields": [
{
"default": "1",
"description": "If enabled, the system will post accounting entries for inventory automatically",
"fieldname": "auto_accounting_for_stock",
"fieldtype": "Check",
"hidden": 1,
"in_list_view": 1,
"label": "Make Accounting Entry For Every Stock Movement"
},
{ {
"description": "Accounting entries are frozen up to this date. Nobody can create or modify entries except users with the role specified below", "description": "Accounting entries are frozen up to this date. Nobody can create or modify entries except users with the role specified below",
"fieldname": "acc_frozen_upto", "fieldname": "acc_frozen_upto",
@ -94,6 +89,7 @@
"default": "0", "default": "0",
"fieldname": "make_payment_via_journal_entry", "fieldname": "make_payment_via_journal_entry",
"fieldtype": "Check", "fieldtype": "Check",
"hidden": 1,
"label": "Make Payment via Journal Entry" "label": "Make Payment via Journal Entry"
}, },
{ {
@ -234,6 +230,29 @@
"fieldtype": "Link", "fieldtype": "Link",
"label": "Role Allowed to Over Bill ", "label": "Role Allowed to Over Bill ",
"options": "Role" "options": "Role"
},
{
"fieldname": "period_closing_settings_section",
"fieldtype": "Section Break",
"label": "Period Closing Settings"
},
{
"fieldname": "accounts_transactions_settings_section",
"fieldtype": "Section Break",
"label": "Transactions Settings"
},
{
"fieldname": "column_break_11",
"fieldtype": "Column Break"
},
{
"fieldname": "tax_settings_section",
"fieldtype": "Section Break",
"label": "Tax Settings"
},
{
"fieldname": "column_break_19",
"fieldtype": "Column Break"
} }
], ],
"icon": "icon-cog", "icon": "icon-cog",
@ -241,7 +260,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"issingle": 1, "issingle": 1,
"links": [], "links": [],
"modified": "2021-03-11 18:52:05.601996", "modified": "2021-04-30 15:25:10.381008",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Accounts Settings", "name": "Accounts Settings",

View File

@ -5,40 +5,44 @@
"doctype": "DocType", "doctype": "DocType",
"engine": "InnoDB", "engine": "InnoDB",
"field_order": [ "field_order": [
"item_defaults_section",
"item_naming_by", "item_naming_by",
"item_group", "item_group",
"stock_uom", "stock_uom",
"default_warehouse", "default_warehouse",
"sample_retention_warehouse",
"column_break_4", "column_break_4",
"valuation_method", "valuation_method",
"sample_retention_warehouse",
"use_naming_series",
"naming_series_prefix",
"section_break_9",
"over_delivery_receipt_allowance", "over_delivery_receipt_allowance",
"role_allowed_to_over_deliver_receive", "role_allowed_to_over_deliver_receive",
"action_if_quality_inspection_is_not_submitted", "column_break_12",
"show_barcode_field",
"clean_description_html",
"disable_serial_no_and_batch_selector",
"section_break_7",
"auto_insert_price_list_rate_if_missing", "auto_insert_price_list_rate_if_missing",
"allow_negative_stock", "allow_negative_stock",
"column_break_10", "show_barcode_field",
"clean_description_html",
"action_if_quality_inspection_is_not_submitted",
"section_break_7",
"automatically_set_serial_nos_based_on_fifo", "automatically_set_serial_nos_based_on_fifo",
"set_qty_in_transactions_based_on_serial_no_input", "set_qty_in_transactions_based_on_serial_no_input",
"column_break_10",
"disable_serial_no_and_batch_selector",
"auto_material_request", "auto_material_request",
"auto_indent", "auto_indent",
"column_break_27",
"reorder_email_notify", "reorder_email_notify",
"inter_warehouse_transfer_settings_section", "inter_warehouse_transfer_settings_section",
"allow_from_dn", "allow_from_dn",
"column_break_31",
"allow_from_pr", "allow_from_pr",
"control_historical_stock_transactions_section", "control_historical_stock_transactions_section",
"role_allowed_to_create_edit_back_dated_transactions",
"column_break_26",
"stock_frozen_upto", "stock_frozen_upto",
"stock_frozen_upto_days", "stock_frozen_upto_days",
"stock_auth_role", "column_break_26",
"batch_id_sb", "role_allowed_to_create_edit_back_dated_transactions",
"use_naming_series", "stock_auth_role"
"naming_series_prefix"
], ],
"fields": [ "fields": [
{ {
@ -102,23 +106,24 @@
"default": "1", "default": "1",
"fieldname": "show_barcode_field", "fieldname": "show_barcode_field",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Show Barcode Field" "label": "Show Barcode Field in Stock Transactions"
}, },
{ {
"default": "1", "default": "1",
"fieldname": "clean_description_html", "fieldname": "clean_description_html",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Convert Item Description to Clean HTML" "label": "Convert Item Description to Clean HTML in Transactions"
}, },
{ {
"fieldname": "section_break_7", "fieldname": "section_break_7",
"fieldtype": "Section Break" "fieldtype": "Section Break",
"label": "Serialised and Batch Setting"
}, },
{ {
"default": "0", "default": "0",
"fieldname": "auto_insert_price_list_rate_if_missing", "fieldname": "auto_insert_price_list_rate_if_missing",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Auto Insert Price List Rate If Missing" "label": "Auto Insert Item Price If Missing"
}, },
{ {
"default": "0", "default": "0",
@ -179,16 +184,11 @@
"label": "Role Allowed to Edit Frozen Stock", "label": "Role Allowed to Edit Frozen Stock",
"options": "Role" "options": "Role"
}, },
{
"fieldname": "batch_id_sb",
"fieldtype": "Section Break",
"label": "Batch Identification"
},
{ {
"default": "0", "default": "0",
"fieldname": "use_naming_series", "fieldname": "use_naming_series",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Use Naming Series" "label": "Have Default Naming Series for Batch ID?"
}, },
{ {
"default": "BATCH-", "default": "BATCH-",
@ -242,6 +242,28 @@
"fieldtype": "Link", "fieldtype": "Link",
"label": "Role Allowed to Over Deliver/Receive", "label": "Role Allowed to Over Deliver/Receive",
"options": "Role" "options": "Role"
},
{
"fieldname": "item_defaults_section",
"fieldtype": "Section Break",
"label": "Item Defaults"
},
{
"fieldname": "section_break_9",
"fieldtype": "Section Break",
"label": "Stock Transactions Settings"
},
{
"fieldname": "column_break_12",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_27",
"fieldtype": "Column Break"
},
{
"fieldname": "column_break_31",
"fieldtype": "Column Break"
} }
], ],
"icon": "icon-cog", "icon": "icon-cog",
@ -249,7 +271,7 @@
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"issingle": 1, "issingle": 1,
"links": [], "links": [],
"modified": "2021-03-11 18:48:14.513055", "modified": "2021-04-30 17:27:42.709231",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Stock Settings", "name": "Stock Settings",