{
 "actions": [],
 "allow_events_in_timeline": 1,
 "autoname": "naming_series:",
 "creation": "2019-07-05 16:34:31.013238",
 "doctype": "DocType",
 "engine": "InnoDB",
 "field_order": [
  "title",
  "naming_series",
  "sales_invoice",
  "customer",
  "customer_name",
  "outstanding_amount",
  "currency",
  "conversion_rate",
  "column_break_3",
  "company",
  "posting_date",
  "posting_time",
  "due_date",
  "overdue_days",
  "address_and_contact_section",
  "address_display",
  "contact_display",
  "contact_mobile",
  "contact_email",
  "column_break_18",
  "company_address_display",
  "section_break_6",
  "dunning_type",
  "dunning_fee",
  "column_break_8",
  "rate_of_interest",
  "interest_amount",
  "section_break_12",
  "dunning_amount",
  "grand_total",
  "income_account",
  "column_break_17",
  "status",
  "printing_setting_section",
  "language",
  "body_text",
  "column_break_22",
  "letter_head",
  "closing_text",
  "amended_from"
 ],
 "fields": [
  {
   "fieldname": "company",
   "fieldtype": "Link",
   "label": "Company",
   "options": "Company",
   "reqd": 1
  },
  {
   "default": "DUNN-.MM.-.YY.-",
   "fieldname": "naming_series",
   "fieldtype": "Select",
   "label": "Series",
   "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",
   "fieldname": "customer_name",
   "fieldtype": "Data",
   "in_list_view": 1,
   "label": "Customer Name",
   "read_only": 1
  },
  {
   "fetch_from": "sales_invoice.outstanding_amount",
   "fieldname": "outstanding_amount",
   "fieldtype": "Currency",
   "label": "Outstanding Amount",
   "read_only": 1
  },
  {
   "fieldname": "column_break_3",
   "fieldtype": "Column Break"
  },
  {
   "default": "Today",
   "fieldname": "posting_date",
   "fieldtype": "Date",
   "label": "Date"
  },
  {
   "fieldname": "overdue_days",
   "fieldtype": "Int",
   "label": "Overdue Days",
   "read_only": 1
  },
  {
   "fieldname": "section_break_6",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "dunning_type",
   "fieldtype": "Link",
   "in_list_view": 1,
   "in_standard_filter": 1,
   "label": "Dunning Type",
   "options": "Dunning Type",
   "reqd": 1
  },
  {
   "default": "0",
   "fieldname": "interest_amount",
   "fieldtype": "Currency",
   "label": "Interest Amount",
   "precision": "2",
   "read_only": 1
  },
  {
   "fieldname": "column_break_8",
   "fieldtype": "Column Break"
  },
  {
   "default": "0",
   "fetch_from": "dunning_type.dunning_fee",
   "fetch_if_empty": 1,
   "fieldname": "dunning_fee",
   "fieldtype": "Currency",
   "label": "Dunning Fee",
   "precision": "2"
  },
  {
   "fieldname": "section_break_12",
   "fieldtype": "Section Break"
  },
  {
   "fieldname": "column_break_17",
   "fieldtype": "Column Break"
  },
  {
   "fieldname": "printing_setting_section",
   "fieldtype": "Section Break",
   "label": "Printing Setting"
  },
  {
   "fieldname": "language",
   "fieldtype": "Link",
   "label": "Print Language",
   "options": "Language"
  },
  {
   "fieldname": "letter_head",
   "fieldtype": "Link",
   "label": "Letter Head",
   "options": "Letter Head"
  },
  {
   "fieldname": "column_break_22",
   "fieldtype": "Column Break"
  },
  {
   "fetch_from": "sales_invoice.currency",
   "fieldname": "currency",
   "fieldtype": "Link",
   "hidden": 1,
   "label": "Currency",
   "options": "Currency",
   "read_only": 1
  },
  {
   "fieldname": "amended_from",
   "fieldtype": "Link",
   "label": "Amended From",
   "no_copy": 1,
   "options": "Dunning",
   "print_hide": 1,
   "read_only": 1
  },
  {
   "allow_on_submit": 1,
   "default": "{customer_name}",
   "fieldname": "title",
   "fieldtype": "Data",
   "hidden": 1,
   "label": "Title"
  },
  {
   "fieldname": "body_text",
   "fieldtype": "Text Editor",
   "label": "Body Text"
  },
  {
   "fieldname": "closing_text",
   "fieldtype": "Text Editor",
   "label": "Closing Text"
  },
  {
   "fetch_from": "sales_invoice.due_date",
   "fieldname": "due_date",
   "fieldtype": "Date",
   "label": "Due Date",
   "read_only": 1
  },
  {
   "fieldname": "posting_time",
   "fieldtype": "Time",
   "label": "Posting Time"
  },
  {
   "default": "0",
   "fetch_from": "dunning_type.rate_of_interest",
   "fetch_if_empty": 1,
   "fieldname": "rate_of_interest",
   "fieldtype": "Float",
   "label": "Rate of Interest (%) Yearly"
  },
  {
   "fieldname": "address_and_contact_section",
   "fieldtype": "Section Break",
   "label": "Address and Contact"
  },
  {
   "fetch_from": "sales_invoice.address_display",
   "fieldname": "address_display",
   "fieldtype": "Small Text",
   "label": "Address",
   "read_only": 1
  },
  {
   "fetch_from": "sales_invoice.contact_display",
   "fieldname": "contact_display",
   "fieldtype": "Small Text",
   "label": "Contact",
   "read_only": 1
  },
  {
   "fetch_from": "sales_invoice.contact_mobile",
   "fieldname": "contact_mobile",
   "fieldtype": "Small Text",
   "label": "Mobile No",
   "read_only": 1
  },
  {
   "fieldname": "column_break_18",
   "fieldtype": "Column Break"
  },
  {
   "fetch_from": "sales_invoice.company_address_display",
   "fieldname": "company_address_display",
   "fieldtype": "Small Text",
   "label": "Company Address",
   "read_only": 1
  },
  {
   "fetch_from": "sales_invoice.contact_email",
   "fieldname": "contact_email",
   "fieldtype": "Data",
   "label": "Contact Email",
   "options": "Email",
   "read_only": 1
  },
  {
   "fetch_from": "sales_invoice.customer",
   "fieldname": "customer",
   "fieldtype": "Link",
   "label": "Customer",
   "options": "Customer",
   "read_only": 1
  },
  {
   "default": "0",
   "fieldname": "grand_total",
   "fieldtype": "Currency",
   "label": "Grand Total",
   "precision": "2",
   "read_only": 1
  },
  {
   "allow_on_submit": 1,
   "default": "Unresolved",
   "fieldname": "status",
   "fieldtype": "Select",
   "in_standard_filter": 1,
   "label": "Status",
   "options": "Draft\nResolved\nUnresolved\nCancelled"
  },
  {
   "fieldname": "dunning_amount",
   "fieldtype": "Currency",
   "hidden": 1,
   "label": "Dunning Amount",
   "read_only": 1
  },
  {
   "fieldname": "income_account",
   "fieldtype": "Link",
   "label": "Income Account",
   "options": "Account"
  },
  {
   "fetch_from": "sales_invoice.conversion_rate",
   "fieldname": "conversion_rate",
   "fieldtype": "Float",
   "hidden": 1,
   "label": "Conversion Rate",
   "read_only": 1
  }
 ],
 "is_submittable": 1,
 "links": [],
 "modified": "2020-08-03 18:55:43.683053",
 "modified_by": "Administrator",
 "module": "Accounts",
 "name": "Dunning",
 "owner": "Administrator",
 "permissions": [
  {
   "amend": 1,
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "System Manager",
   "share": 1,
   "submit": 1,
   "write": 1
  },
  {
   "cancel": 1,
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Accounts Manager",
   "share": 1,
   "submit": 1,
   "write": 1
  },
  {
   "create": 1,
   "delete": 1,
   "email": 1,
   "export": 1,
   "print": 1,
   "read": 1,
   "report": 1,
   "role": "Accounts User",
   "share": 1,
   "write": 1
  }
 ],
 "sort_field": "modified",
 "sort_order": "ASC",
 "title_field": "customer_name",
 "track_changes": 1
}