[
 {
  "creation": "2013-02-22 01:28:05", 
  "docstatus": 0, 
  "modified": "2013-03-26 07:58:20", 
  "modified_by": "Administrator", 
  "owner": "Administrator"
 }, 
 {
  "doctype": "Table Mapper Detail", 
  "name": "__common__", 
  "parent": "Purchase Order-Purchase Receipt", 
  "parentfield": "table_mapper_details", 
  "parenttype": "DocType Mapper"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "map": "Yes", 
  "name": "__common__", 
  "parent": "Purchase Order-Purchase Receipt", 
  "parentfield": "field_mapper_details", 
  "parenttype": "DocType Mapper"
 }, 
 {
  "doctype": "DocType Mapper", 
  "from_doctype": "Purchase Order", 
  "module": "Stock", 
  "name": "__common__", 
  "ref_doc_submitted": 1, 
  "to_doctype": "Purchase Receipt"
 }, 
 {
  "doctype": "DocType Mapper", 
  "name": "Purchase Order-Purchase Receipt"
 }, 
 {
  "checking_operator": "=", 
  "doctype": "Field Mapper Detail", 
  "from_field": "supplier", 
  "match_id": 0, 
  "to_field": "supplier"
 }, 
 {
  "checking_operator": "=", 
  "doctype": "Field Mapper Detail", 
  "from_field": "company", 
  "match_id": 0, 
  "to_field": "company"
 }, 
 {
  "checking_operator": "=", 
  "doctype": "Field Mapper Detail", 
  "from_field": "currency", 
  "match_id": 0, 
  "to_field": "currency"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "name", 
  "match_id": 1, 
  "to_field": "prevdoc_detail_docname"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "parent", 
  "match_id": 1, 
  "to_field": "prevdoc_docname"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "parenttype", 
  "match_id": 1, 
  "to_field": "prevdoc_doctype"
 }, 
 {
  "checking_operator": "=", 
  "doctype": "Field Mapper Detail", 
  "from_field": "item_code", 
  "match_id": 1, 
  "to_field": "item_code"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "eval:(flt(obj.qty) - flt(obj.received_qty)) ", 
  "match_id": 1, 
  "to_field": "received_qty"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "eval:(flt(obj.qty) - flt(obj.received_qty)) ", 
  "match_id": 1, 
  "to_field": "qty"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "eval:(flt(obj.qty) - flt(obj.received_qty)) * flt(obj.conversion_factor)", 
  "match_id": 1, 
  "to_field": "stock_qty"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "eval:(flt(obj.qty) - flt(obj.received_qty)) * flt(obj.import_rate)", 
  "match_id": 1, 
  "to_field": "import_amount"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "eval:(flt(obj.qty) - flt(obj.received_qty)) * flt(obj.purchase_rate)", 
  "match_id": 1, 
  "to_field": "amount"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "schedule_date", 
  "match_id": 1, 
  "to_field": "schedule_date"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "net_total", 
  "match_id": 0, 
  "to_field": "net_total"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "grand_total", 
  "match_id": 0, 
  "to_field": "grand_total"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "total_tax", 
  "match_id": 0, 
  "to_field": "total_tax"
 }, 
 {
  "doctype": "Field Mapper Detail", 
  "from_field": "conversion_rate", 
  "match_id": 0, 
  "to_field": "conversion_rate"
 }, 
 {
  "doctype": "Table Mapper Detail", 
  "from_field": "po_details", 
  "from_table": "Purchase Order Item", 
  "match_id": 1, 
  "reference_doctype_key": "prevdoc_doctype", 
  "reference_key": "prevdoc_detail_docname", 
  "to_field": "purchase_receipt_details", 
  "to_table": "Purchase Receipt Item", 
  "validation_logic": "docstatus=1 and qty > ifnull(received_qty,0)"
 }, 
 {
  "doctype": "Table Mapper Detail", 
  "from_table": "Purchase Order", 
  "match_id": 0, 
  "reference_key": "prevdoc_docname", 
  "to_table": "Purchase Receipt", 
  "validation_logic": "docstatus = 1"
 }, 
 {
  "doctype": "Table Mapper Detail", 
  "from_field": "purchase_tax_details", 
  "from_table": "Purchase Taxes and Charges", 
  "match_id": 2, 
  "to_field": "purchase_tax_details", 
  "to_table": "Purchase Taxes and Charges", 
  "validation_logic": "docstatus = 1"
 }
]