feat(server): wip activate/inactivate tax rate

This commit is contained in:
Ahmed Bouhuolia
2023-09-18 01:38:38 +02:00
parent 2356921f27
commit 4e53d08497
10 changed files with 285 additions and 4 deletions

View File

@@ -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');
});
};

View File

@@ -0,0 +1,7 @@
exports.up = function (knex) {
return knex.table('sales_invoices', (table) => {
table.renameColumn('balance', 'amount');
});
};
exports.down = function (knex) {};