Add "Item Discount" line in totals

This commit is contained in:
Burak Çakırel
2020-03-24 21:37:08 +03:00
parent 100fc2c07c
commit 3f068ec979
12 changed files with 189 additions and 42 deletions

View File

@ -20,6 +20,14 @@ class CoreV208 extends Migration
$table->string('discount_type')->default('normal')->after('discount_rate');
}
);
Schema::table(
'bill_items',
function (Blueprint $table) {
$table->double('discount_rate', 15, 4)->default('0.0000')->after('tax');
$table->string('discount_type')->default('normal')->after('discount_rate');
}
);
}
/**
@ -35,5 +43,12 @@ class CoreV208 extends Migration
$table->dropColumn(['discount_rate', 'discount_type']);
}
);
Schema::table(
'bill_items',
function (Blueprint $table) {
$table->dropColumn(['discount_rate', 'discount_type']);
}
);
}
}