get lead details in quotation

This commit is contained in:
Nabin Hait
2014-02-19 17:43:24 +05:30
parent 05b28eb161
commit 9d1f077922
10 changed files with 88 additions and 90 deletions

View File

@@ -34,7 +34,7 @@ def get_item_details(args):
args = frappe._dict(args)
if not args.get("transaction_type"):
args.transaction_type = "selling" if args.get("customer") else "buying"
args.transaction_type = "buying" if args.get("supplier") else "selling"
if not args.get("price_list"):
args.price_list = args.get("selling_price_list") or args.get("buying_price_list")