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:
saeedkola
2023-06-24 19:58:31 +05:30
committed by GitHub
parent 8f13b484a9
commit 4a7d75b5cc

View File

@@ -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,
}
)