[fix] Get item details
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index e5e0938..b3bc66b 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -170,8 +170,6 @@
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 @@
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
}