mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
fix: issues in inventory adjustments service.
This commit is contained in:
@@ -4,9 +4,12 @@ exports.up = function(knex) {
|
||||
table.increments();
|
||||
table.date('date').index();
|
||||
table.string('type').index();
|
||||
table.integer('adjustment_account_id').unsigned().references('id').inTable('accounts');
|
||||
table.string('reason');
|
||||
table.string('reference_no').index();
|
||||
table.string('description');
|
||||
table.integer('user_id').unsigned();
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -5,8 +5,9 @@ exports.up = function(knex) {
|
||||
table.integer('adjustment_id').unsigned().index().references('id').inTable('inventory_adjustments');
|
||||
table.integer('index').unsigned();
|
||||
table.integer('item_id').unsigned().index().references('id').inTable('items');
|
||||
table.decimal('new_quantity').unsigned();
|
||||
table.decimal('new_cost').unsigned();
|
||||
table.integer('quantity');
|
||||
table.decimal('cost').unsigned();
|
||||
table.decimal('value').unsigned();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user