Add discounts, fields, and PDF/email support to manual invoices.

This commit is contained in:
2025-12-04 15:02:19 +01:00
parent 924f8c7f87
commit e310ae4bf8
13 changed files with 812 additions and 125 deletions
@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
use Phinx\Migration\AbstractMigration;
final class AddUnitToManualinvoiceposition extends AbstractMigration
{
public function up(): void
{
if($this->getEnvironment() == "thetool") {
$table = $this->table("ManualInvoiceposition");
$table->addColumn("unit", "string", [
"null" => false,
"default" => "Stk.",
"length" => 10,
"after" => "amount"
]);
$table->save();
}
}
public function down(): void
{
if($this->getEnvironment() == "thetool") {
$this->table("ManualInvoiceposition")->removeColumn("unit")->save();
}
}
}