From 7dd5034b03c30362be61238b1d0126a6f820dfc3 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 22 Jul 2013 16:36:11 +0530 Subject: [PATCH] [minor] [fix] [issue] #624 --- selling/doctype/sales_common/sales_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selling/doctype/sales_common/sales_common.js b/selling/doctype/sales_common/sales_common.js index a0ba0dfd3e2..45a9b5b7f0b 100644 --- a/selling/doctype/sales_common/sales_common.js +++ b/selling/doctype/sales_common/sales_common.js @@ -286,7 +286,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({ }, warehouse: function(doc, cdt, cdn) { - var item = webnotes.get_doc(cdt, cdn); + var item = wn.model.get_doc(cdt, cdn); if(item.item_code && (item.warehouse || item.reserved_warehouse)) { this.frm.call({ method: "selling.utils.get_available_qty",