Zeiterfassung Update

* Berechnungen BP
 * Möglichkeit Mehrstunden in Gutstunden umzuwandeln
This commit is contained in:
Spi
2024-05-07 10:24:30 +02:00
parent eaaaeb1581
commit 2f81e1d77e
9 changed files with 61 additions and 9 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingBillingEmployeeAddFieldsOvertimePlusHours extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingBillingEmployee", ["signed" => true]);
$table->addColumn("overtime_plushours", "integer", ["null" => false, "default" => 0, "after" => "overtime100free"]);
$table->update();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("TimerecordingBillingEmployee")->removeColumn("overtime_plushours")->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}