Merge pull request #4723 from ShashaQin/patch-12
Stock Reconciliation Improvements
This commit is contained in:
commit
767d5e48e7
@ -252,13 +252,15 @@ def get_items(warehouse, posting_date, posting_time):
|
|||||||
items = frappe.get_list("Bin", fields=["item_code"], filters={"warehouse": warehouse}, as_list=1)
|
items = frappe.get_list("Bin", fields=["item_code"], filters={"warehouse": warehouse}, as_list=1)
|
||||||
|
|
||||||
items += frappe.get_list("Item", fields=["name"], filters= {"is_stock_item": 1, "has_serial_no": 0,
|
items += frappe.get_list("Item", fields=["name"], filters= {"is_stock_item": 1, "has_serial_no": 0,
|
||||||
"has_batch_no": 0, "has_variants": 0, "default_warehouse": warehouse}, as_list=1)
|
"has_batch_no": 0, "has_variants": 0, "disabled": 0, "default_warehouse": warehouse}, as_list=1)
|
||||||
|
|
||||||
res = []
|
res = []
|
||||||
for item in set(items):
|
for item in set(items):
|
||||||
stock_bal = get_stock_balance(item[0], warehouse, posting_date, posting_time,
|
stock_bal = get_stock_balance(item[0], warehouse, posting_date, posting_time,
|
||||||
with_valuation_rate=True)
|
with_valuation_rate=True)
|
||||||
|
|
||||||
|
if frappe.db.get_value("Item",item[0],"disabled") == 0:
|
||||||
|
|
||||||
res.append({
|
res.append({
|
||||||
"item_code": item[0],
|
"item_code": item[0],
|
||||||
"warehouse": warehouse,
|
"warehouse": warehouse,
|
||||||
|
|||||||
@ -110,7 +110,7 @@
|
|||||||
"allow_on_submit": 0,
|
"allow_on_submit": 0,
|
||||||
"bold": 0,
|
"bold": 0,
|
||||||
"collapsible": 0,
|
"collapsible": 0,
|
||||||
"description": "",
|
"description": "Do not include symbols (ex. $)",
|
||||||
"fieldname": "valuation_rate",
|
"fieldname": "valuation_rate",
|
||||||
"fieldtype": "Currency",
|
"fieldtype": "Currency",
|
||||||
"hidden": 0,
|
"hidden": 0,
|
||||||
@ -215,7 +215,7 @@
|
|||||||
"istable": 1,
|
"istable": 1,
|
||||||
"max_attachments": 0,
|
"max_attachments": 0,
|
||||||
"menu_index": 0,
|
"menu_index": 0,
|
||||||
"modified": "2015-11-30 02:34:10.385030",
|
"modified": "2016-01-27 16:04:42.325454",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Stock",
|
"module": "Stock",
|
||||||
"name": "Stock Reconciliation Item",
|
"name": "Stock Reconciliation Item",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user