Fix: Purchase Return did not show default vendor

This commit is contained in:
Amritanshu Agrawal 2020-12-18 13:47:06 +05:30
parent 0b589a3ab6
commit fc7c85d592

View File

@ -314,7 +314,7 @@ def blank_voucher(info, db):
json_voucher["vendor"] = AccountBase.local_purchase()
elif type_ == "Purchase Return":
json_voucher["journals"].append({"account": AccountBase.local_purchase(), "amount": 0, "debit": 1})
json_voucher["vendor"] = AccountBase.local_purchase()
elif type_ == "Issue":
if "source" in info:
json_voucher["source"] = {"id": info["source"]}