Add discounts, fields, and PDF/email support to manual invoices.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user