fix(analytics): label report sections with active period
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-07-15 17:12:29 +08:00
parent ec40d161af
commit d74aa60cf2
3 changed files with 6 additions and 4 deletions

View File

@@ -301,6 +301,8 @@ def test_sales_frontend_uses_live_period_linked_api_routes():
assert "columns," in script
assert 'data-field="product_id"' in template
assert 'data-field="amount"' in template
assert "每週業績趨勢({{ analysis_period.label }}" in template
assert "全年度" not in template
assert "fetch(`/api/yoy?" not in script
assert "'/api/sales_table?'" not in script