controller for pi taxes for admin page

This commit is contained in:
2019-04-20 00:31:04 -05:00
parent e1fd4aeebd
commit a44c2665ec
5 changed files with 62 additions and 48 deletions

View File

@@ -16,20 +16,17 @@ class CreatePiSaleJournalsTable extends Migration
if(!Schema::hasTable('pi_sale_journal')) {
Schema::create('pi_sale_journal', function(Blueprint $table) {
$table->string('id')->unique();
$table->integer('corporation_id')->nullabe();
$table->integer('division')->default(0);
$table->decimal('amount', 20, 2)->nullable();
$table->decimal('balance', 20, 2)->nullable();
$table->bigInteger('context_id')->nullable();
$table->string('context_id_type')->nullable();
$table->dateTime('date')->nullabe();
$table->string('description')->nullabe();
$table->integer('first_party_id')->nullable();
$table->string('reason')->default(' ');
$table->string('ref_type')->nullabe();
$table->integer('second_party_id')->nullable();
$table->decimal('tax', 20, 2)->default(0.00);
$table->integer('tax_receiver_id')->nullable();
$table->integer('corp_id');
$table->integer('division');
$table->integer('client_id');
$table->string('date');
$table->boolean('is_buy');
$table->integer('journal_ref_id');
$table->integer('location_id');
$table->integer('quantity');
$table->integer('transaction_id');
$table->integer('type_id');
$table->decimal('unit_price');
$table->timestamps();
});
}