Add "Item Discount" line in totals
This commit is contained in:
@ -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']);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user