Skip to content

Commit

Permalink
Merge pull request frappe#38482 from s-aga-r/FIX-38476
Browse files Browse the repository at this point in the history
fix: `AttributeError` while saving Purchase Invoice
  • Loading branch information
s-aga-r authored Dec 1, 2023
2 parents b24e289 + 60a81a5 commit 68aee8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/buying_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def set_qty_as_per_stock_uom(self):

if allow_to_edit_stock_qty:
d.stock_qty = flt(d.stock_qty, d.precision("stock_qty"))
if d.get("received_stock_qty"):
if d.get("received_stock_qty") and d.meta.get_field("received_stock_qty"):
d.received_stock_qty = flt(d.received_stock_qty, d.precision("received_stock_qty"))

def validate_purchase_return(self):
Expand Down

0 comments on commit 68aee8c

Please sign in to comment.