[fix] [minor] make debit note from purchase return
This commit is contained in:
parent
82d2001312
commit
752067c8f1
@ -39,4 +39,4 @@ The difference between the value of the items remaining to be sold and the previ
|
||||
|
||||
This complete process is called Periodic Inventory.
|
||||
|
||||
If you are an existing user using Periodic Inventory and want to use Perpetual Inventory, you have to follow some steps to migrate. For details, check [**Migration From Periodic Inventory**](docs.user.stock.perpetual_inventory.html)
|
||||
If you are an existing user using Periodic Inventory and want to use Perpetual Inventory, you have to follow some steps to migrate. For details, check [**Migration From Periodic Inventory**](docs.user.stock.periodic_to_perpetual.html)
|
||||
|
@ -886,7 +886,8 @@ def make_return_jv(stock_entry):
|
||||
"account": r.get("account"),
|
||||
"against_invoice": r.get("against_invoice"),
|
||||
"against_voucher": r.get("against_voucher"),
|
||||
"balance": get_balance_on(r.get("account"), se.doc.posting_date)
|
||||
"balance": get_balance_on(r.get("account"), se.doc.posting_date) \
|
||||
if r.get("account") else 0
|
||||
})
|
||||
|
||||
return jv_list
|
||||
|
Loading…
x
Reference in New Issue
Block a user