From 0d207706c196cf21bc487ccc4f2001cbc8b4ad37 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 21 Jan 2016 18:47:03 +0530 Subject: [PATCH] [fix] Get item details --- erpnext/public/js/controllers/transaction.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js index e5e09383659..b3bc66b1658 100644 --- a/erpnext/public/js/controllers/transaction.js +++ b/erpnext/public/js/controllers/transaction.js @@ -170,8 +170,6 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ barcode: item.barcode, serial_no: item.serial_no, warehouse: item.warehouse, - parenttype: me.frm.doc.doctype, - parent: me.frm.doc.name, customer: me.frm.doc.customer, supplier: me.frm.doc.supplier, currency: me.frm.doc.currency, @@ -186,8 +184,8 @@ erpnext.TransactionController = erpnext.taxes_and_totals.extend({ is_subcontracted: me.frm.doc.is_subcontracted, transaction_date: me.frm.doc.transaction_date || me.frm.doc.posting_date, ignore_pricing_rule: me.frm.doc.ignore_pricing_rule, - doctype: item.doctype, - name: item.name, + doctype: me.frm.doctype, + name: me.frm.name, project_name: item.project_name || me.frm.doc.project_name, qty: item.qty }