diff --git a/erpnext/buying/doctype/supplier/supplier.json b/erpnext/buying/doctype/supplier/supplier.json index 3681d0d3e4..f1abf0ceb2 100644 --- a/erpnext/buying/doctype/supplier/supplier.json +++ b/erpnext/buying/doctype/supplier/supplier.json @@ -609,7 +609,7 @@ "label": "Credit Days Based On", "length": 0, "no_copy": 0, - "options": "\nFixed Days\nLast Day of the Next Month", + "options": "\nFixed Days\nLast Day of the Next Month\nPayment Terms", "permlevel": 0, "precision": "", "print_hide": 0, @@ -652,43 +652,13 @@ "set_only_once": 0, "unique": 0 }, - { - "allow_bulk_edit": 0, - "allow_on_submit": 0, - "bold": 0, - "collapsible": 1, - "collapsible_depends_on": "eval:doc.payment_terms", - "columns": 0, - "fieldname": "payment_terms_section", - "fieldtype": "Section Break", - "hidden": 0, - "ignore_user_permissions": 0, - "ignore_xss_filter": 0, - "in_filter": 0, - "in_global_search": 0, - "in_list_view": 0, - "in_standard_filter": 0, - "label": "Payment Terms", - "length": 0, - "no_copy": 0, - "permlevel": 0, - "precision": "", - "print_hide": 0, - "print_hide_if_no_value": 0, - "read_only": 0, - "remember_last_selected_value": 0, - "report_hide": 0, - "reqd": 0, - "search_index": 0, - "set_only_once": 0, - "unique": 0 - }, { "allow_bulk_edit": 0, "allow_on_submit": 0, "bold": 0, "collapsible": 0, "columns": 0, + "depends_on": "eval:doc.credit_days_based_on == 'Payment Terms'", "fieldname": "payment_terms", "fieldtype": "Link", "hidden": 0, @@ -1032,7 +1002,7 @@ "issingle": 0, "istable": 0, "max_attachments": 0, - "modified": "2017-08-31 09:39:14.816188", + "modified": "2017-08-31 11:37:24.321645", "modified_by": "Administrator", "module": "Buying", "name": "Supplier",