mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-29 18:04:46 +00:00
feat: restructure dunning doctype
This commit is contained in:
@@ -8,20 +8,19 @@
|
|||||||
"field_order": [
|
"field_order": [
|
||||||
"title",
|
"title",
|
||||||
"naming_series",
|
"naming_series",
|
||||||
"sales_invoice",
|
|
||||||
"customer",
|
"customer",
|
||||||
"customer_name",
|
"customer_name",
|
||||||
"outstanding_amount",
|
|
||||||
"currency",
|
"currency",
|
||||||
"conversion_rate",
|
"conversion_rate",
|
||||||
"column_break_3",
|
"column_break_3",
|
||||||
"company",
|
"company",
|
||||||
"posting_date",
|
"posting_date",
|
||||||
"posting_time",
|
"posting_time",
|
||||||
"due_date",
|
"status",
|
||||||
"overdue_days",
|
|
||||||
"address_and_contact_section",
|
"address_and_contact_section",
|
||||||
|
"customer_address",
|
||||||
"address_display",
|
"address_display",
|
||||||
|
"contact_person",
|
||||||
"contact_display",
|
"contact_display",
|
||||||
"contact_mobile",
|
"contact_mobile",
|
||||||
"contact_email",
|
"contact_email",
|
||||||
@@ -29,16 +28,17 @@
|
|||||||
"company_address_display",
|
"company_address_display",
|
||||||
"section_break_6",
|
"section_break_6",
|
||||||
"dunning_type",
|
"dunning_type",
|
||||||
"dunning_fee",
|
|
||||||
"column_break_8",
|
"column_break_8",
|
||||||
"rate_of_interest",
|
"rate_of_interest",
|
||||||
"interest_amount",
|
|
||||||
"section_break_12",
|
"section_break_12",
|
||||||
"dunning_amount",
|
"overdue_payments",
|
||||||
|
"section_break_28",
|
||||||
|
"column_break_17",
|
||||||
|
"total_interest",
|
||||||
|
"total_outstanding",
|
||||||
|
"dunning_fee",
|
||||||
"grand_total",
|
"grand_total",
|
||||||
"income_account",
|
"income_account",
|
||||||
"column_break_17",
|
|
||||||
"status",
|
|
||||||
"printing_setting_section",
|
"printing_setting_section",
|
||||||
"language",
|
"language",
|
||||||
"body_text",
|
"body_text",
|
||||||
@@ -62,15 +62,6 @@
|
|||||||
"label": "Series",
|
"label": "Series",
|
||||||
"options": "DUNN-.MM.-.YY.-"
|
"options": "DUNN-.MM.-.YY.-"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "sales_invoice",
|
|
||||||
"fieldtype": "Link",
|
|
||||||
"in_list_view": 1,
|
|
||||||
"in_standard_filter": 1,
|
|
||||||
"label": "Sales Invoice",
|
|
||||||
"options": "Sales Invoice",
|
|
||||||
"reqd": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fetch_from": "sales_invoice.customer_name",
|
"fetch_from": "sales_invoice.customer_name",
|
||||||
"fieldname": "customer_name",
|
"fieldname": "customer_name",
|
||||||
@@ -79,13 +70,6 @@
|
|||||||
"label": "Customer Name",
|
"label": "Customer Name",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fetch_from": "sales_invoice.outstanding_amount",
|
|
||||||
"fieldname": "outstanding_amount",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"label": "Outstanding Amount",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "column_break_3",
|
"fieldname": "column_break_3",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break"
|
||||||
@@ -94,13 +78,8 @@
|
|||||||
"default": "Today",
|
"default": "Today",
|
||||||
"fieldname": "posting_date",
|
"fieldname": "posting_date",
|
||||||
"fieldtype": "Date",
|
"fieldtype": "Date",
|
||||||
"label": "Date"
|
"label": "Date",
|
||||||
},
|
"reqd": 1
|
||||||
{
|
|
||||||
"fieldname": "overdue_days",
|
|
||||||
"fieldtype": "Int",
|
|
||||||
"label": "Overdue Days",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "section_break_6",
|
"fieldname": "section_break_6",
|
||||||
@@ -115,14 +94,6 @@
|
|||||||
"options": "Dunning Type",
|
"options": "Dunning Type",
|
||||||
"reqd": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"default": "0",
|
|
||||||
"fieldname": "interest_amount",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"label": "Interest Amount",
|
|
||||||
"precision": "2",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "column_break_8",
|
"fieldname": "column_break_8",
|
||||||
"fieldtype": "Column Break"
|
"fieldtype": "Column Break"
|
||||||
@@ -134,6 +105,7 @@
|
|||||||
"fieldname": "dunning_fee",
|
"fieldname": "dunning_fee",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Dunning Fee",
|
"label": "Dunning Fee",
|
||||||
|
"options": "currency",
|
||||||
"precision": "2"
|
"precision": "2"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -201,13 +173,6 @@
|
|||||||
"fieldtype": "Text Editor",
|
"fieldtype": "Text Editor",
|
||||||
"label": "Closing Text"
|
"label": "Closing Text"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fetch_from": "sales_invoice.due_date",
|
|
||||||
"fieldname": "due_date",
|
|
||||||
"fieldtype": "Date",
|
|
||||||
"label": "Due Date",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "posting_time",
|
"fieldname": "posting_time",
|
||||||
"fieldtype": "Time",
|
"fieldtype": "Time",
|
||||||
@@ -222,6 +187,7 @@
|
|||||||
"label": "Rate of Interest (%) Yearly"
|
"label": "Rate of Interest (%) Yearly"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"collapsible": 1,
|
||||||
"fieldname": "address_and_contact_section",
|
"fieldname": "address_and_contact_section",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"label": "Address and Contact"
|
"label": "Address and Contact"
|
||||||
@@ -273,13 +239,14 @@
|
|||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
"label": "Customer",
|
"label": "Customer",
|
||||||
"options": "Customer",
|
"options": "Customer",
|
||||||
"read_only": 1
|
"reqd": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"default": "0",
|
"default": "0",
|
||||||
"fieldname": "grand_total",
|
"fieldname": "grand_total",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"label": "Grand Total",
|
"label": "Grand Total",
|
||||||
|
"options": "currency",
|
||||||
"precision": "2",
|
"precision": "2",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
},
|
},
|
||||||
@@ -292,13 +259,6 @@
|
|||||||
"label": "Status",
|
"label": "Status",
|
||||||
"options": "Draft\nResolved\nUnresolved\nCancelled"
|
"options": "Draft\nResolved\nUnresolved\nCancelled"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"fieldname": "dunning_amount",
|
|
||||||
"fieldtype": "Currency",
|
|
||||||
"hidden": 1,
|
|
||||||
"label": "Dunning Amount",
|
|
||||||
"read_only": 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"fieldname": "income_account",
|
"fieldname": "income_account",
|
||||||
"fieldtype": "Link",
|
"fieldtype": "Link",
|
||||||
@@ -312,6 +272,44 @@
|
|||||||
"hidden": 1,
|
"hidden": 1,
|
||||||
"label": "Conversion Rate",
|
"label": "Conversion Rate",
|
||||||
"read_only": 1
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "overdue_payments",
|
||||||
|
"fieldtype": "Table",
|
||||||
|
"label": "Overdue Payments",
|
||||||
|
"options": "Overdue Payments"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "section_break_28",
|
||||||
|
"fieldtype": "Section Break"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"default": "0",
|
||||||
|
"fieldname": "total_interest",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"label": "Total Interest",
|
||||||
|
"options": "currency",
|
||||||
|
"precision": "2",
|
||||||
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "total_outstanding",
|
||||||
|
"fieldtype": "Currency",
|
||||||
|
"label": "Total Outstanding",
|
||||||
|
"options": "currency",
|
||||||
|
"read_only": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "customer_address",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Customer Address",
|
||||||
|
"options": "Address"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "contact_person",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Contact Person",
|
||||||
|
"options": "Contact"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"is_submittable": 1,
|
"is_submittable": 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user