Zeiterfassung Update

* Berechnungen BP
 * Möglichkeit Mehrstunden in Gutstunden umzuwandeln
This commit is contained in:
Spi
2024-05-07 08:53:19 +02:00
parent b821c9f2c4
commit fe1a3e7948
4 changed files with 64 additions and 4 deletions
@@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class TimerecordingBillingEmployeeAddFieldsTransferBpa extends AbstractMigration
{
public function up(): void
{
if ($this->getEnvironment() == "thetool") {
$table = $this->table("TimerecordingBillingEmployee", ["signed" => true]);
$table->addColumn("transfer_bpahours", "integer", ["null" => false, "default" => 0, "after" => "transfer_overtime"]);
$table->update();
}
if ($this->getEnvironment() == "addressdb") {
}
}
public function down(): void
{
if ($this->getEnvironment() == "thetool") {
$this->table("TimerecordingBillingEmployee")->removeColumn("transfer_bpahours")->save();
}
if ($this->getEnvironment() == "addressdb") {
}
}
}