fix: Price list rate not fetched for return sales invoice fixed (#26593)

This commit is contained in:
Srikant Kedia
2021-08-23 15:38:08 +05:30
committed by GitHub
parent d5e89d98c2
commit ca42b16d3a

View File

@@ -72,9 +72,7 @@ def get_item_details(args, doc=None, for_validate=False, overwrite_warehouse=Tru
update_party_blanket_order(args, out)
if not doc or cint(doc.get('is_return')) == 0:
# get price list rate only if the invoice is not a credit or debit note
get_price_list_rate(args, item, out)
get_price_list_rate(args, item, out)
if args.customer and cint(args.is_pos):
out.update(get_pos_profile_item_details(args.company, args, update_data=True))