fix: Set Asset cost center default as PR or PI Item Cost Center while 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>
This commit is contained in:
@@ -709,6 +709,7 @@ class BuyingController(SubcontractingController):
|
||||
"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,
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user