Fix: Purchase Return did not show default vendor
This commit is contained in:
parent
0b589a3ab6
commit
fc7c85d592
@ -314,7 +314,7 @@ def blank_voucher(info, db):
|
|||||||
json_voucher["vendor"] = AccountBase.local_purchase()
|
json_voucher["vendor"] = AccountBase.local_purchase()
|
||||||
|
|
||||||
elif type_ == "Purchase Return":
|
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":
|
elif type_ == "Issue":
|
||||||
if "source" in info:
|
if "source" in info:
|
||||||
json_voucher["source"] = {"id": info["source"]}
|
json_voucher["source"] = {"id": info["source"]}
|
||||||
|
Loading…
Reference in New Issue
Block a user