WIP Contract/Billing 2024-07-04

This commit is contained in:
Frank Schubert
2024-07-05 10:45:22 +02:00
parent 0640babfa3
commit 92edb9c812
27 changed files with 8043 additions and 116 deletions
@@ -9,7 +9,7 @@ final class ContractAddVat extends AbstractMigration
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Contract");
$table->addColumn("vatrate", "decimal", ["null" => false, "default" => 0, "precision" => 6, "scale" => 2, "after" => "price_setup"]);
$table->addColumn("vatgroup_id", "integer", ["null" => false, "after" => "price_setup"]);
$table->update();
}
@@ -22,7 +22,7 @@ final class ContractAddVat extends AbstractMigration
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("Contract");
$table->removeColumn("vatrate");
$table->removeColumn("vatgroup_id");
$table->update();
}