Add discount per item for invoice

This commit is contained in:
Burak Çakırel
2020-03-21 04:42:45 +03:00
parent 307e93c53c
commit a1ccfc8b22
15 changed files with 235 additions and 60 deletions

View File

@ -240,6 +240,11 @@ class CoreV200 extends Migration
Schema::table('users', function (Blueprint $table) {
$table->string('landing_page', 70)->nullable()->default('dashboard');
});
Schema::table('invoice_items', function (Blueprint $table) {
$table->double('discount_rate', 15, 4)->default('0.0000');
$table->string('discount_type')->default('normal');
});
}
/**

View File

@ -63,6 +63,7 @@ class Settings extends Seeder
'invoice.color' => '#55588b',
'default.payment_method' => 'offline-payments.cash.1',
'default.list_limit' => '25',
'default.discount_location' => 'in_totals',
'default.use_gravatar' => '0',
'email.protocol' => 'mail',
'email.sendmail_path' => '/usr/sbin/sendmail -bs',