diff --git a/resources/views/business/pages/financial-operations/labor-expenses.blade.php b/resources/views/business/pages/financial-operations/labor-expenses.blade.php index 22ab7f3d..e094cd81 100644 --- a/resources/views/business/pages/financial-operations/labor-expenses.blade.php +++ b/resources/views/business/pages/financial-operations/labor-expenses.blade.php @@ -249,6 +249,26 @@ z-index: 4; } + .labor-expense-table thead tr:last-child th[data-labor-group="base"] { + background: var(--labor-group-base); + } + + .labor-expense-table thead tr:last-child th[data-labor-group="original"] { + background: var(--labor-group-original); + } + + .labor-expense-table thead tr:last-child th[data-labor-group="fund"] { + background: var(--labor-group-fund); + } + + .labor-expense-table thead tr:last-child th[data-labor-group="salary_parttime"] { + background: var(--labor-group-salary-parttime); + } + + .labor-expense-table thead tr:last-child th[data-labor-group="settlement"] { + background: var(--labor-group-settlement); + } + .labor-expense-table thead th[data-labor-column="A"], .labor-expense-table tbody td[data-labor-column="A"] { min-width: 4rem; diff --git a/tests/Feature/Business/LaborExpensePageAccessTest.php b/tests/Feature/Business/LaborExpensePageAccessTest.php index 37aa6904..a46463b4 100644 --- a/tests/Feature/Business/LaborExpensePageAccessTest.php +++ b/tests/Feature/Business/LaborExpensePageAccessTest.php @@ -142,6 +142,22 @@ class LaborExpensePageAccessTest extends FeatureTestCase "const fixedStartColumns = ['A', 'B', 'C', 'D', 'E'];", $html ); + foreach ([ + 'base' => 'base', + 'original' => 'original', + 'fund' => 'fund', + 'salary_parttime' => 'salary-parttime', + 'settlement' => 'settlement', + ] as $group => $variable) { + $this->assertMatchesRegularExpression( + '/\.labor-expense-table thead tr:last-child th\[data-labor-group="' . + $group . + '"\]\s*\{\s*background:\s*var\(--labor-group-' . + $variable . + '\);/s', + $html + ); + } foreach ([ 'B' => 'base', 'J' => 'original',