- removed invoicing from oasis

This commit is contained in:
Peter Papp
2021-05-13 09:31:16 +02:00
parent f5958dda57
commit 3af8bff13b
43 changed files with 1227 additions and 4900 deletions
@@ -1,58 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateInvoicesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('invoices', function (Blueprint $table) {
$table->uuid('id')->primary()->index();
$table->uuid('user_id')->index();
$table->uuid('client_id')->nullable()->index();
$table->enum('invoice_type', [
'regular-invoice', 'advance-invoice'
]);
$table->text('invoice_number')->nullable();
$table->text('variable_number')->nullable();
$table->longText('client');
$table->longText('user');
$table->longText('items');
$table->date('delivery_at')->nullable();
$table->dateTime('due_at')->nullable();
$table->enum('discount_type', [
'percent', 'value'
])->nullable();
$table->integer('discount_rate')->nullable();
$table->text('currency');
$table->string('total_net')->nullable();
$table->string('total_tax')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('invoices');
}
}
@@ -1,48 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateClientsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('clients', function (Blueprint $table) {
$table->uuid('id')->primary()->index();
$table->uuid('user_id')->index();
$table->text('name');
$table->text('avatar')->nullable();
$table->text('email')->nullable();
$table->text('phone_number')->nullable();
$table->text('address')->nullable();
$table->text('city')->nullable();
$table->text('postal_code')->nullable();
$table->text('country')->nullable();
$table->text('ico')->nullable();
$table->text('dic')->nullable();
$table->text('ic_dph')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('clients');
}
}
@@ -1,57 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateInvoiceProfilesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('invoice_profiles', function (Blueprint $table) {
$table->uuid('id')->primary()->index();
$table->uuid('user_id')->index();
$table->text('company')->nullable();
$table->string('logo')->nullable();
$table->string('email')->nullable();
$table->string('phone')->nullable();
$table->text('address')->nullable();
$table->text('state')->nullable();
$table->text('city')->nullable();
$table->text('postal_code')->nullable();
$table->text('country')->nullable();
$table->string('ico')->nullable();
$table->string('dic')->nullable();
$table->string('ic_dph')->nullable();
$table->text('registration_notes')->nullable();
$table->text('bank')->nullable();
$table->string('iban')->nullable();
$table->string('swift')->nullable();
$table->string('author')->nullable();
$table->string('stamp')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('invoice_profiles');
}
}