Skip to content

Commit

Permalink
refactor: post ledger entries based on toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Mar 11, 2024
1 parent 767f215 commit f0af91a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,9 @@ def make_supplier_gl_entry(self, gl_entries):
"credit_in_account_currency": base_grand_total
if self.party_account_currency == self.company_currency
else grand_total,
"against_voucher": self.name,
"against_voucher": self.name
if self.is_return and self.return_against and self.update_outstanding_for_self
else self.return_against,
"against_voucher_type": self.doctype,
"project": self.project,
"cost_center": self.cost_center,
Expand Down

0 comments on commit f0af91a

Please sign in to comment.