chore: Cleanup Customer and Supplier Details section in Stock Entry

- Changed depends on value to "Send to Subcontractor" for supplier fields
- Removed Customer fields as they are not relevant to any Stock Entry purpose
- Renamed section to "Supplier Details" visibe on subcontracting transfer
This commit is contained in:
marination 2021-05-24 13:20:22 +05:30
parent 5457db0601
commit c12264f6bc

View File

@ -59,10 +59,6 @@
"supplier_name",
"supplier_address",
"address_display",
"column_break_39",
"customer",
"customer_name",
"customer_address",
"accounting_dimensions_section",
"project",
"dimension_col_break",
@ -435,13 +431,13 @@
},
{
"collapsible": 1,
"depends_on": "eval: in_list([\"Sales Return\", \"Purchase Return\", \"Send to Subcontractor\"], doc.purpose)",
"depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
"fieldname": "contact_section",
"fieldtype": "Section Break",
"label": "Customer or Supplier Details"
"label": "Supplier Details"
},
{
"depends_on": "eval:doc.purpose==\"Purchase Return\" || doc.purpose==\"Send to Subcontractor\"",
"depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
"fieldname": "supplier",
"fieldtype": "Link",
"label": "Supplier",
@ -453,7 +449,7 @@
},
{
"bold": 1,
"depends_on": "eval:doc.purpose==\"Purchase Return\" || doc.purpose==\"Send to Subcontractor\"",
"depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
"fieldname": "supplier_name",
"fieldtype": "Data",
"label": "Supplier Name",
@ -463,7 +459,7 @@
"read_only": 1
},
{
"depends_on": "eval:doc.purpose==\"Purchase Return\" || doc.purpose==\"Send to Subcontractor\"",
"depends_on": "eval:doc.purpose === \"Send to Subcontractor\"",
"fieldname": "supplier_address",
"fieldtype": "Link",
"label": "Supplier Address",
@ -477,41 +473,6 @@
"fieldtype": "Small Text",
"label": "Address"
},
{
"fieldname": "column_break_39",
"fieldtype": "Column Break"
},
{
"depends_on": "eval:doc.purpose==\"Sales Return\"",
"fieldname": "customer",
"fieldtype": "Link",
"label": "Customer",
"no_copy": 1,
"oldfieldname": "customer",
"oldfieldtype": "Link",
"options": "Customer",
"print_hide": 1
},
{
"bold": 1,
"depends_on": "eval:doc.purpose==\"Sales Return\"",
"fieldname": "customer_name",
"fieldtype": "Data",
"label": "Customer Name",
"no_copy": 1,
"oldfieldname": "customer_name",
"oldfieldtype": "Data",
"read_only": 1
},
{
"depends_on": "eval:doc.purpose==\"Sales Return\"",
"fieldname": "customer_address",
"fieldtype": "Small Text",
"label": "Customer Address",
"no_copy": 1,
"oldfieldname": "customer_address",
"oldfieldtype": "Small Text"
},
{
"collapsible": 1,
"fieldname": "printing_settings",
@ -655,7 +616,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2020-12-09 14:58:13.267321",
"modified": "2021-05-24 11:32:23.904307",
"modified_by": "Administrator",
"module": "Stock",
"name": "Stock Entry",