fix: add missing commas and brackets
(cherry picked from commit 218da1217a)
This commit is contained in:
@@ -233,19 +233,14 @@ class TestAsset(AssetSetup):
|
|||||||
(
|
(
|
||||||
"_Test Accumulated Depreciations - _TC",
|
"_Test Accumulated Depreciations - _TC",
|
||||||
flt(18000.0 + pro_rata_amount, asset.precision("gross_purchase_amount")),
|
flt(18000.0 + pro_rata_amount, asset.precision("gross_purchase_amount")),
|
||||||
0.0
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"_Test Fixed Asset - _TC",
|
|
||||||
0.0,
|
0.0,
|
||||||
100000.0
|
|
||||||
),
|
),
|
||||||
|
("_Test Fixed Asset - _TC", 0.0, 100000.0),
|
||||||
(
|
(
|
||||||
"_Test Gain/Loss on Asset Disposal - _TC",
|
"_Test Gain/Loss on Asset Disposal - _TC",
|
||||||
flt(82000.0 - pro_rata_amount, asset.precision("gross_purchase_amount")),
|
flt(82000.0 - pro_rata_amount, asset.precision("gross_purchase_amount")),
|
||||||
0.0
|
0.0,
|
||||||
),
|
),
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
gle = frappe.db.sql(
|
gle = frappe.db.sql(
|
||||||
@@ -303,24 +298,16 @@ class TestAsset(AssetSetup):
|
|||||||
expected_gle = (
|
expected_gle = (
|
||||||
(
|
(
|
||||||
"_Test Accumulated Depreciations - _TC",
|
"_Test Accumulated Depreciations - _TC",
|
||||||
flt(18000.0 + pro_rata_amount, asset.precision("gross_purchase_amount"))
|
flt(18000.0 + pro_rata_amount, asset.precision("gross_purchase_amount")),
|
||||||
0.0
|
|
||||||
),
|
|
||||||
(
|
|
||||||
"_Test Fixed Asset - _TC",
|
|
||||||
0.0,
|
0.0,
|
||||||
100000.0
|
|
||||||
),
|
),
|
||||||
|
("_Test Fixed Asset - _TC", 0.0, 100000.0),
|
||||||
(
|
(
|
||||||
"_Test Gain/Loss on Asset Disposal - _TC",
|
"_Test Gain/Loss on Asset Disposal - _TC",
|
||||||
flt(57000.0 - pro_rata_amount, asset.precision("gross_purchase_amount"))
|
flt(57000.0 - pro_rata_amount, asset.precision("gross_purchase_amount")),
|
||||||
0.0
|
0.0,
|
||||||
),
|
|
||||||
(
|
|
||||||
"Debtors - _TC",
|
|
||||||
25000.0,
|
|
||||||
0.0
|
|
||||||
),
|
),
|
||||||
|
("Debtors - _TC", 25000.0, 0.0),
|
||||||
)
|
)
|
||||||
|
|
||||||
gle = frappe.db.sql(
|
gle = frappe.db.sql(
|
||||||
|
|||||||
Reference in New Issue
Block a user