added rate and total margin in price_list
diff --git a/erpnext/public/js/controllers/transaction.js b/erpnext/public/js/controllers/transaction.js
index 6de5154..757dee0 100644
--- a/erpnext/public/js/controllers/transaction.js
+++ b/erpnext/public/js/controllers/transaction.js
@@ -643,6 +643,12 @@
 					"parenttype": d.parenttype,
 					"parent": d.parent
 				});
+
+				// if doctype is Quotation Item / Sales Order Iten then add Margin Type and rate in item_list
+				if (d.doctype == "Quotation Item" || d.doctype == "Sales Order Item"){
+					item_list[0]["type"] = d.type
+					item_list[0]["rate_or_amount"] = d.rate_or_amount
+				}	
 			}
 		};
 
@@ -957,5 +963,3 @@
 
 	frm.cscript.calculate_taxes_and_totals();
 });
-
-