updates in purchase cycle's price list
diff --git a/buying/utils.py b/buying/utils.py
index 293108e..b299c5e 100644
--- a/buying/utils.py
+++ b/buying/utils.py
@@ -82,7 +82,7 @@
if args.doctype in ["Purchase Order", "Purchase Invoice", "Purchase Receipt"]:
# try fetching from price list
- if args.price_list_name:
+ if args.price_list_name and args.price_list_currency:
rates_as_per_price_list = get_rates_as_per_price_list(args, item_wrapper.doclist)
if rates_as_per_price_list:
out.update(rates_as_per_price_list)