fix(核算): 对齐抵顶口径并完善界面细节
回款确认时间收敛到秒级;抵顶回款不再自动折算并保留标记。补齐公式模板角色标签与提示、指导成本登记入口及基础布局、分页、设置等响应式细节。同步忽略本地排查产物。
This commit is contained in:
1 parent
35fea3802f
commit
b3de35c2ec
53 files changed
+1381
-362
No files matched your search
@@ -113,6 +113,12 @@ class TestConvertedProfit:
|
||||
def test_毛利润额为零_折算为零_不除零(self) -> None:
|
||||
assert converted_profit(Decimal("0"), Fraction(0), Fraction(30)) == Decimal("0")
|
||||
|
||||
def test_有销售但零毛利润_折算及普通绩效均为零(self) -> None:
|
||||
rate = profit_rate(Decimal("100") - Decimal("100"), Decimal("100"))
|
||||
base = converted_profit(Decimal("100"), rate, Fraction(30))
|
||||
assert base == Decimal("0")
|
||||
assert performance_amount(base, Fraction(1, 100)) == Decimal("0")
|
||||
|
||||
def test_毛利润率低于阈值_折算为负_不归零(self) -> None:
|
||||
# 100 × (1/10 − 3/10) = -20(业务确认负值正常计算)
|
||||
assert converted_profit(Decimal("100"), Fraction(1, 10), Fraction(30)) == Decimal("-20")
|
||||
|
||||
Reference in new issue
Block a user