mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
code cleanup
This commit is contained in:
@@ -218,7 +218,6 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
var me = this;
|
var me = this;
|
||||||
this.batch_no(doc, cdt, cdn);
|
this.batch_no(doc, cdt, cdn);
|
||||||
var item = frappe.get_doc(cdt, cdn);
|
var item = frappe.get_doc(cdt, cdn);
|
||||||
this.batch_no(doc)
|
|
||||||
if(item.item_code && item.warehouse) {
|
if(item.item_code && item.warehouse) {
|
||||||
return this.frm.call({
|
return this.frm.call({
|
||||||
method: "erpnext.stock.get_item_details.get_available_qty",
|
method: "erpnext.stock.get_item_details.get_available_qty",
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ def get_available_qty(item_code, warehouse):
|
|||||||
return frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse},
|
return frappe.db.get_value("Bin", {"item_code": item_code, "warehouse": warehouse},
|
||||||
["projected_qty", "actual_qty"], as_dict=True) or {}
|
["projected_qty", "actual_qty"], as_dict=True) or {}
|
||||||
|
|
||||||
@frappe.whitelist(allow_guest=False)
|
@frappe.whitelist()
|
||||||
def get_batch_qty(batch_no,warehouse,item_code):
|
def get_batch_qty(batch_no,warehouse,item_code):
|
||||||
actual_batch_qty = get_actual_batch_qty(batch_no,warehouse,item_code)
|
actual_batch_qty = get_actual_batch_qty(batch_no,warehouse,item_code)
|
||||||
if batch_no:
|
if batch_no:
|
||||||
|
|||||||
Reference in New Issue
Block a user