{
 "creation": "2013-01-30 12:49:46.000000", 
 "docstatus": 0, 
 "doctype": "DocType", 
 "document_type": "Other", 
 "fields": [
  {
   "fieldname": "account", 
   "fieldtype": "Link", 
   "label": "Account", 
   "options": "Account", 
   "permlevel": 0, 
   "reqd": 1
  }, 
  {
   "fieldname": "account_type", 
   "fieldtype": "Data", 
   "hidden": 1, 
   "label": "Account Type", 
   "permlevel": 0, 
   "read_only": 1
  }, 
  {
   "fieldname": "company", 
   "fieldtype": "Link", 
   "hidden": 1, 
   "label": "Company", 
   "options": "Company", 
   "permlevel": 0, 
   "print_hide": 1
  }, 
  {
   "fieldname": "voucher_type", 
   "fieldtype": "Select", 
   "label": "Voucher Type", 
   "options": "Sales Invoice\nPurchase Invoice\nJournal Voucher", 
   "permlevel": 0, 
   "reqd": 1
  }, 
  {
   "fieldname": "voucher_no", 
   "fieldtype": "Link", 
   "label": "Voucher No", 
   "options": "[Select]", 
   "permlevel": 0, 
   "reqd": 1
  }, 
  {
   "fieldname": "pull_payment_entries", 
   "fieldtype": "Button", 
   "label": "Pull Payment Entries", 
   "options": "get_payment_entries", 
   "permlevel": 0
  }, 
  {
   "fieldname": "column_break1", 
   "fieldtype": "Column Break", 
   "permlevel": 0, 
   "print_width": "50%", 
   "width": "50%"
  }, 
  {
   "fieldname": "total_amount", 
   "fieldtype": "Currency", 
   "label": "Total Amount", 
   "options": "Company:company:default_currency", 
   "permlevel": 0, 
   "read_only": 1
  }, 
  {
   "fieldname": "pending_amt_to_reconcile", 
   "fieldtype": "Currency", 
   "label": "Outstanding Amount", 
   "options": "Company:company:default_currency", 
   "permlevel": 0, 
   "read_only": 1
  }, 
  {
   "fieldname": "payment_entries", 
   "fieldtype": "Section Break", 
   "label": "Payment Entries", 
   "permlevel": 0
  }, 
  {
   "description": "Update allocated amount in the above table and then click \"Allocate\" button", 
   "fieldname": "ir_payment_details", 
   "fieldtype": "Table", 
   "label": "Payment Entries", 
   "options": "Payment to Invoice Matching Tool Detail", 
   "permlevel": 0
  }, 
  {
   "fieldname": "reconcile", 
   "fieldtype": "Button", 
   "label": "Allocate", 
   "options": "reconcile", 
   "permlevel": 0
  }, 
  {
   "fieldname": "section_break0", 
   "fieldtype": "Section Break", 
   "options": "Simple", 
   "permlevel": 0
  }, 
  {
   "fieldname": "column_break2", 
   "fieldtype": "Column Break", 
   "label": "Filter By Date", 
   "permlevel": 0, 
   "print_width": "50%", 
   "width": "50%"
  }, 
  {
   "fieldname": "from_date", 
   "fieldtype": "Date", 
   "label": "From Date", 
   "permlevel": 0
  }, 
  {
   "fieldname": "to_date", 
   "fieldtype": "Date", 
   "label": "To Date", 
   "permlevel": 0
  }, 
  {
   "fieldname": "help_html", 
   "fieldtype": "HTML", 
   "label": "Help HTML", 
   "options": "Click \"Pull Payment Entries\" to refresh the table with filters.", 
   "permlevel": 0
  }, 
  {
   "fieldname": "column_break3", 
   "fieldtype": "Column Break", 
   "label": "Filter By Amount", 
   "permlevel": 0, 
   "print_width": "50%", 
   "width": "50%"
  }, 
  {
   "fieldname": "amt_greater_than", 
   "fieldtype": "Data", 
   "label": "Amount >=", 
   "permlevel": 0
  }, 
  {
   "fieldname": "amt_less_than", 
   "fieldtype": "Data", 
   "label": "Amount <=", 
   "permlevel": 0
  }
 ], 
 "hide_toolbar": 1, 
 "icon": "icon-magic", 
 "idx": 1, 
 "issingle": 1, 
 "modified": "2013-12-20 19:23:24.000000", 
 "modified_by": "Administrator", 
 "module": "Accounts", 
 "name": "Payment to Invoice Matching Tool", 
 "owner": "Administrator", 
 "permissions": [
  {
   "create": 1, 
   "email": 1, 
   "permlevel": 0, 
   "print": 1, 
   "read": 1, 
   "report": 0, 
   "role": "Accounts Manager", 
   "submit": 0, 
   "write": 1
  }, 
  {
   "create": 1, 
   "email": 1, 
   "permlevel": 0, 
   "print": 1, 
   "read": 1, 
   "report": 0, 
   "role": "Accounts User", 
   "submit": 0, 
   "write": 1
  }
 ]
}