Fix Against Voucher in GL Entry for return against purchase invoice

This commit is contained in:
Nabin Hait 2015-07-29 13:15:57 +05:30
parent 0e6f2474e8
commit 3ad26e4dd1

View File

@ -255,7 +255,7 @@ class PurchaseInvoice(BuyingController):
"against": self.against_expense_account,
"credit": self.total_amount_to_pay,
"remarks": self.remarks,
"against_voucher": self.name,
"against_voucher": self.return_against if cint(self.is_return) else self.name,
"against_voucher_type": self.doctype,
})
)