mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
Revert "fix: set against type in asset"
This reverts commit 6e1565c32c.
This commit is contained in:
@@ -697,7 +697,6 @@ class Asset(AccountsController):
|
|||||||
self.get_gl_dict(
|
self.get_gl_dict(
|
||||||
{
|
{
|
||||||
"account": cwip_account,
|
"account": cwip_account,
|
||||||
"against_type": "Account",
|
|
||||||
"against": fixed_asset_account,
|
"against": fixed_asset_account,
|
||||||
"against_link": fixed_asset_account,
|
"against_link": fixed_asset_account,
|
||||||
"remarks": self.get("remarks") or _("Accounting Entry for Asset"),
|
"remarks": self.get("remarks") or _("Accounting Entry for Asset"),
|
||||||
@@ -714,7 +713,6 @@ class Asset(AccountsController):
|
|||||||
self.get_gl_dict(
|
self.get_gl_dict(
|
||||||
{
|
{
|
||||||
"account": fixed_asset_account,
|
"account": fixed_asset_account,
|
||||||
"against_type": "Account",
|
|
||||||
"against": cwip_account,
|
"against": cwip_account,
|
||||||
"against_link": cwip_account,
|
"against_link": cwip_account,
|
||||||
"remarks": self.get("remarks") or _("Accounting Entry for Asset"),
|
"remarks": self.get("remarks") or _("Accounting Entry for Asset"),
|
||||||
|
|||||||
@@ -285,7 +285,6 @@ class AssetRepair(AccountsController):
|
|||||||
"account": fixed_asset_account,
|
"account": fixed_asset_account,
|
||||||
"debit": self.repair_cost,
|
"debit": self.repair_cost,
|
||||||
"debit_in_account_currency": self.repair_cost,
|
"debit_in_account_currency": self.repair_cost,
|
||||||
"against_type": "Account",
|
|
||||||
"against": pi_expense_account,
|
"against": pi_expense_account,
|
||||||
"against_link": pi_expense_account,
|
"against_link": pi_expense_account,
|
||||||
"voucher_type": self.doctype,
|
"voucher_type": self.doctype,
|
||||||
@@ -306,7 +305,6 @@ class AssetRepair(AccountsController):
|
|||||||
"account": pi_expense_account,
|
"account": pi_expense_account,
|
||||||
"credit": self.repair_cost,
|
"credit": self.repair_cost,
|
||||||
"credit_in_account_currency": self.repair_cost,
|
"credit_in_account_currency": self.repair_cost,
|
||||||
"against_type": "Account",
|
|
||||||
"against": fixed_asset_account,
|
"against": fixed_asset_account,
|
||||||
"against_link": fixed_asset_account,
|
"against_link": fixed_asset_account,
|
||||||
"voucher_type": self.doctype,
|
"voucher_type": self.doctype,
|
||||||
@@ -342,7 +340,6 @@ class AssetRepair(AccountsController):
|
|||||||
"account": item.expense_account or default_expense_account,
|
"account": item.expense_account or default_expense_account,
|
||||||
"credit": item.amount,
|
"credit": item.amount,
|
||||||
"credit_in_account_currency": item.amount,
|
"credit_in_account_currency": item.amount,
|
||||||
"against_type": "Account",
|
|
||||||
"against": fixed_asset_account,
|
"against": fixed_asset_account,
|
||||||
"against_link": fixed_asset_account,
|
"against_link": fixed_asset_account,
|
||||||
"voucher_type": self.doctype,
|
"voucher_type": self.doctype,
|
||||||
@@ -361,7 +358,6 @@ class AssetRepair(AccountsController):
|
|||||||
"account": fixed_asset_account,
|
"account": fixed_asset_account,
|
||||||
"debit": item.amount,
|
"debit": item.amount,
|
||||||
"debit_in_account_currency": item.amount,
|
"debit_in_account_currency": item.amount,
|
||||||
"against_type": "Account",
|
|
||||||
"against": item.expense_account or default_expense_account,
|
"against": item.expense_account or default_expense_account,
|
||||||
"against_link": item.expense_account or default_expense_account,
|
"against_link": item.expense_account or default_expense_account,
|
||||||
"voucher_type": self.doctype,
|
"voucher_type": self.doctype,
|
||||||
|
|||||||
Reference in New Issue
Block a user