From fc7c85d5923c04fcb2725308faadb4352330a91c Mon Sep 17 00:00:00 2001 From: tanshu Date: Fri, 18 Dec 2020 13:47:06 +0530 Subject: [PATCH] Fix: Purchase Return did not show default vendor --- brewman/brewman/routers/voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brewman/brewman/routers/voucher.py b/brewman/brewman/routers/voucher.py index 9ea597f5..6ef4bfde 100644 --- a/brewman/brewman/routers/voucher.py +++ b/brewman/brewman/routers/voucher.py @@ -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"]}