mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Added fields for expense taxes
This commit is contained in:
parent
e59bcbd234
commit
bc0cd4ee52
@ -5,7 +5,6 @@ use Illuminate\Database\Migrations\Migration;
|
|||||||
|
|
||||||
class AddSwapCurrencySymbolToCurrency extends Migration
|
class AddSwapCurrencySymbolToCurrency extends Migration
|
||||||
{
|
{
|
||||||
const TABLE_NAME = 'currencies';
|
|
||||||
/**
|
/**
|
||||||
* Run the migrations.
|
* Run the migrations.
|
||||||
*
|
*
|
||||||
@ -13,9 +12,20 @@ class AddSwapCurrencySymbolToCurrency extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up()
|
public function up()
|
||||||
{
|
{
|
||||||
Schema::table(self::TABLE_NAME,function(Blueprint $table){
|
Schema::table('currencies', function(Blueprint $table) {
|
||||||
$table->boolean('swap_currency_symbol')->default(false);
|
$table->boolean('swap_currency_symbol')->default(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Schema::table('expenses', function(Blueprint $table) {
|
||||||
|
$table->string('tax_name1')->nullable();
|
||||||
|
$table->decimal('tax_rate1', 13, 3);
|
||||||
|
$table->string('tax_name2')->nullable();
|
||||||
|
$table->decimal('tax_rate2', 13, 3);
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('account_gateways', function(Blueprint $table) {
|
||||||
|
$table->boolean('require_cvv')->default(true)->nullable();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -25,8 +35,19 @@ class AddSwapCurrencySymbolToCurrency extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down()
|
public function down()
|
||||||
{
|
{
|
||||||
Schema::table(self::TABLE_NAME,function(Blueprint $table){
|
Schema::table('currencies', function(Blueprint $table) {
|
||||||
$table->dropColumn('swap_currency_symbol');
|
$table->dropColumn('swap_currency_symbol');
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('expenses', function(Blueprint $table) {
|
||||||
|
$table->dropColumn('tax_name1');
|
||||||
|
$table->dropColumn('tax_rate1');
|
||||||
|
$table->dropColumn('tax_name2');
|
||||||
|
$table->dropColumn('tax_rate2');
|
||||||
|
});
|
||||||
|
|
||||||
|
Schema::table('account_gateways', function(Blueprint $table) {
|
||||||
|
$table->dropColumn('require_cvv');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user