fix(organizations): align demo statement signs
All checks were successful
All checks were successful
This commit is contained in:
@@ -883,17 +883,17 @@ class TestCompanyDatasetService:
|
|||||||
)
|
)
|
||||||
current_tax = profit_before_tax * 19 // 100
|
current_tax = profit_before_tax * 19 // 100
|
||||||
deferred_tax = profit_before_tax // 100
|
deferred_tax = profit_before_tax // 100
|
||||||
income_tax = current_tax + deferred_tax
|
income_tax = -current_tax + deferred_tax
|
||||||
other_tax_effects = amount(25, 1, 2)
|
other_tax_effects = -amount(25, 1, 2)
|
||||||
net_profit = profit_before_tax - income_tax - other_tax_effects
|
net_profit = profit_before_tax + income_tax + other_tax_effects
|
||||||
revaluation_result = amount(90, 3, 7)
|
revaluation_result = amount(90, 3, 7)
|
||||||
other_operations_result = amount(55, 2, 5)
|
other_operations_result = amount(55, 2, 5)
|
||||||
other_operations_tax = amount(18, 1, 1)
|
other_operations_tax = -amount(18, 1, 1)
|
||||||
comprehensive_result = (
|
comprehensive_result = (
|
||||||
net_profit
|
net_profit
|
||||||
+ revaluation_result
|
+ revaluation_result
|
||||||
+ other_operations_result
|
+ other_operations_result
|
||||||
- other_operations_tax
|
+ other_operations_tax
|
||||||
)
|
)
|
||||||
basic_eps = max(1, net_profit // 1_000)
|
basic_eps = max(1, net_profit // 1_000)
|
||||||
diluted_eps = max(1, basic_eps - 1)
|
diluted_eps = max(1, basic_eps - 1)
|
||||||
|
|||||||
@@ -400,18 +400,18 @@ class TestCompaniesCommandsTest(TestCase):
|
|||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
values[("2", "2410")],
|
values[("2", "2410")],
|
||||||
values[("2", "2411")] + values[("2", "2412")],
|
-values[("2", "2411")] + values[("2", "2412")],
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
values[("2", "2400")],
|
values[("2", "2400")],
|
||||||
values[("2", "2300")] - values[("2", "2410")] - values[("2", "2460")],
|
values[("2", "2300")] + values[("2", "2410")] + values[("2", "2460")],
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
values[("2", "2500")],
|
values[("2", "2500")],
|
||||||
values[("2", "2400")]
|
values[("2", "2400")]
|
||||||
+ values[("2", "2510")]
|
+ values[("2", "2510")]
|
||||||
+ values[("2", "2520")]
|
+ values[("2", "2520")]
|
||||||
- values[("2", "2530")],
|
+ values[("2", "2530")],
|
||||||
)
|
)
|
||||||
|
|
||||||
for previous_year, current_year in zip(
|
for previous_year, current_year in zip(
|
||||||
|
|||||||
Reference in New Issue
Block a user