Skip to content

Commit

Permalink
fix: Common party JV cost center (#35008)
Browse files Browse the repository at this point in the history
fix: Common party JV cost center (#35008)

(cherry picked from commit f88431a)

Co-authored-by: Deepesh Garg <[email protected]>
  • Loading branch information
mergify[bot] and deepeshgarg007 authored Apr 25, 2023
1 parent f43ea0d commit 693007a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1904,12 +1904,14 @@ def create_advance_and_reconcile(self, party_link):
reconcilation_entry.party = secondary_party
reconcilation_entry.reference_type = self.doctype
reconcilation_entry.reference_name = self.name
reconcilation_entry.cost_center = self.cost_center
reconcilation_entry.cost_center = self.cost_center or erpnext.get_default_cost_center(
self.company
)

advance_entry.account = primary_account
advance_entry.party_type = primary_party_type
advance_entry.party = primary_party
advance_entry.cost_center = self.cost_center
advance_entry.cost_center = self.cost_center or erpnext.get_default_cost_center(self.company)
advance_entry.is_advance = "Yes"

if self.doctype == "Sales Invoice":
Expand Down

0 comments on commit 693007a

Please sign in to comment.