mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 12:20:31 +00:00
feat(server): wip activate/inactivate tax rate
This commit is contained in:
@@ -5,9 +5,11 @@ exports.up = (knex) => {
|
||||
table.string('name');
|
||||
table.string('code');
|
||||
table.decimal('rate');
|
||||
table.string('description');
|
||||
table.boolean('is_non_recoverable');
|
||||
table.boolean('is_compound');
|
||||
table.integer('status');
|
||||
table.boolean('active').defaultTo(false);
|
||||
table.date('deleted_at');
|
||||
table.timestamps();
|
||||
})
|
||||
.table('items_entries', (table) => {
|
||||
@@ -43,9 +45,6 @@ exports.up = (knex) => {
|
||||
.references('id')
|
||||
.inTable('tax_rates');
|
||||
table.decimal('tax_rate').unsigned();
|
||||
})
|
||||
.table('sales_invoices', (table) => {
|
||||
table.rename('balance', 'amount');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
exports.up = function (knex) {
|
||||
return knex.table('sales_invoices', (table) => {
|
||||
table.renameColumn('balance', 'amount');
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = function (knex) {};
|
||||
Reference in New Issue
Block a user