mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
fix: validate accounting dimension company in Journal Entry & Stock Entry (backport #46204) (#46369)
fix: validate accounting dimension company in Journal Entry & Stock Entry (#46204)
* fix: validate accounting dimension company in journal entry and stock entry
* test: update test cases to validate company-based accounting dimension
* fix(test): ensure 'Pick List' company matches 'Delivery Note' to prevent test failures
* chore: remove redundant lines of code
(cherry picked from commit 7b6ebad9e6)
Co-authored-by: Bhavansathru <122002510+Bhavan23@users.noreply.github.com>
This commit is contained in:
@@ -419,7 +419,7 @@ class AccountsController(TransactionBase):
|
||||
.where(doc_field.fieldname == "company")
|
||||
).run(as_list=True)
|
||||
|
||||
dimension_list = sum(dimension_list, ["Project"])
|
||||
dimension_list = sum(dimension_list, ["Project", "Cost Center"])
|
||||
self.validate_company(dimension_list)
|
||||
|
||||
for child in self.get_all_children() or []:
|
||||
|
||||
Reference in New Issue
Block a user