Fixes for migrations

This commit is contained in:
David Bomba 2020-09-09 07:37:07 +10:00
parent b9c868d3ff
commit 605f4d0b0c
2 changed files with 11 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class ClientTransformer extends EntityTransformer
'last_login' => (int) $client->last_login, 'last_login' => (int) $client->last_login,
'size_id' => (string) $client->size_id, 'size_id' => (string) $client->size_id,
'public_notes' => $client->public_notes ?: '', 'public_notes' => $client->public_notes ?: '',
// 'currency_id' => (string)$client->currency_id, 'client_hash' => (string)$client->client_hash,
'address1' => $client->address1 ?: '', 'address1' => $client->address1 ?: '',
'address2' => $client->address2 ?: '', 'address2' => $client->address2 ?: '',
'phone' => $client->phone ?: '', 'phone' => $client->phone ?: '',

View File

@ -47,6 +47,16 @@ class AddIsPublicToDocumentsTable extends Migration
$table->boolean('auto_bill')->default(0); $table->boolean('auto_bill')->default(0);
$table->unsignedInteger('design_id')->nullable(); $table->unsignedInteger('design_id')->nullable();
$table->boolean('uses_inclusive_taxes')->default(0); $table->boolean('uses_inclusive_taxes')->default(0);
$table->string('custom_surcharge1')->nullable();
$table->string('custom_surcharge2')->nullable();
$table->string('custom_surcharge3')->nullable();
$table->string('custom_surcharge4')->nullable();
$table->boolean('custom_surcharge_tax1')->default(false);
$table->boolean('custom_surcharge_tax2')->default(false);
$table->boolean('custom_surcharge_tax3')->default(false);
$table->boolean('custom_surcharge_tax4')->default(false);
$table->decimal('exchange_rate', 13, 6)->default(1);
}); });
Schema::table('companies', function ($table) { Schema::table('companies', function ($table) {