fix: Project link not set in accounts other than profit and loss accounts (#22049)
* fix: project link not set in accounts other than profilt and loss accounts * fix: cannot find get_allow_cost_center_in_entry_of_bs_account * fix: remove enable_allow_cost_center_in_entry_of_bs_account * chore: add tests and remove test based on allow_cost_center_for_bs_accounts * fix: travis * fix: Test Cases * fix: Patch to remove Property Setter * fix: Test Cases * fix: Remove v13 patch * fix: Procurement Tracker test case * fix: Proccurement tracker report test * fix: Codacy * fix: Remove duplicate project field Co-authored-by: Saqib Ansari <nextchamp.saqib@gmail.com> Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
This commit is contained in:
@@ -94,6 +94,7 @@ class StockController(AccountsController):
|
||||
"account": warehouse_account[sle.warehouse]["account"],
|
||||
"against": item_row.expense_account,
|
||||
"cost_center": item_row.cost_center,
|
||||
"project": item_row.project or self.get('project'),
|
||||
"remarks": self.get("remarks") or "Accounting Entry for Stock",
|
||||
"debit": flt(sle.stock_value_difference, precision),
|
||||
"is_opening": item_row.get("is_opening") or self.get("is_opening") or "No",
|
||||
@@ -104,6 +105,7 @@ class StockController(AccountsController):
|
||||
"account": item_row.expense_account,
|
||||
"against": warehouse_account[sle.warehouse]["account"],
|
||||
"cost_center": item_row.cost_center,
|
||||
"project": item_row.project or self.get('project'),
|
||||
"remarks": self.get("remarks") or "Accounting Entry for Stock",
|
||||
"credit": flt(sle.stock_value_difference, precision),
|
||||
"project": item_row.get("project") or self.get("project"),
|
||||
|
||||
Reference in New Issue
Block a user