code cleanup

This commit is contained in:
Sambhaji Kolate 2015-03-10 15:19:29 +05:30
parent 98dbccd1d6
commit 845f1c636e
2 changed files with 1 additions and 2 deletions

View File

@ -218,7 +218,6 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
var me = this;
this.batch_no(doc, cdt, cdn);
var item = frappe.get_doc(cdt, cdn);
this.batch_no(doc)
if(item.item_code && item.warehouse) {
return this.frm.call({
method: "erpnext.stock.get_item_details.get_available_qty",

View File

@ -302,7 +302,7 @@ def get_available_qty(item_code, warehouse):
return frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse},
["projected_qty", "actual_qty"], as_dict=True) or {}
@frappe.whitelist(allow_guest=False)
@frappe.whitelist()
def get_batch_qty(batch_no,warehouse,item_code):
actual_batch_qty = get_actual_batch_qty(batch_no,warehouse,item_code)
if batch_no: