Skip to content

Commit

Permalink
refactor: cr notes will post for itself
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Aug 13, 2023
1 parent b0c79a0 commit db76e8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,7 @@ 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.return_against
if cint(self.is_return) and self.return_against
else self.name,
"against_voucher": self.name,
"against_voucher_type": self.doctype,
"project": self.project,
"cost_center": self.cost_center,
Expand Down
4 changes: 1 addition & 3 deletions erpnext/accounts/doctype/sales_invoice/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,7 @@ def make_customer_gl_entry(self, gl_entries):
"debit_in_account_currency": base_grand_total
if self.party_account_currency == self.company_currency
else grand_total,
"against_voucher": self.return_against
if cint(self.is_return) and self.return_against
else self.name,
"against_voucher": self.name,
"against_voucher_type": self.doctype,
"cost_center": self.cost_center,
"project": self.project,
Expand Down

0 comments on commit db76e8a

Please sign in to comment.