Skip to content

Commit

Permalink
fix: travis
Browse files Browse the repository at this point in the history
(cherry picked from commit 718ad3f)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed May 26, 2023
1 parent 5a9452f commit fe1e2fe
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions erpnext/stock/stock_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1066,15 +1066,15 @@ def raise_exceptions(self):

def update_bin_data(self, sle):
bin_name = get_or_make_bin(sle.item_code, sle.warehouse)
frappe.db.set_value(
"Bin",
bin_name,
{
"actual_qty": sle.qty_after_transaction,
"valuation_rate": sle.valuation_rate,
"stock_value": sle.stock_value,
},
)
values_to_update = {
"actual_qty": sle.qty_after_transaction,
"stock_value": sle.stock_value,
}

if sle.valuation_rate is not None:
values_to_update["valuation_rate"] = sle.valuation_rate

frappe.db.set_value("Bin", bin_name, values_to_update)

def update_bin(self):
# update bin for each warehouse
Expand Down

0 comments on commit fe1e2fe

Please sign in to comment.