Skip to content

Commit

Permalink
fix: Set Asset cost center default as PR or PI Item Cost Center while…
Browse files Browse the repository at this point in the history
… auto creating (#35844)

* fix: Set Asset cost center default as PR or PI Item Cost Center while auto creating

* chore: Linting Issues

---------

Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
  • Loading branch information
saeedkola and deepeshgarg007 authored Jun 24, 2023
1 parent 8f13b48 commit 4a7d75b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erpnext/controllers/buying_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ def make_asset(self, row, is_grouped_asset=False):
"asset_quantity": row.qty if is_grouped_asset else 0,
"purchase_receipt": self.name if self.doctype == "Purchase Receipt" else None,
"purchase_invoice": self.name if self.doctype == "Purchase Invoice" else None,
"cost_center": row.cost_center,
}
)

Expand Down

0 comments on commit 4a7d75b

Please sign in to comment.