mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: Concurrency control items cost compute.
This commit is contained in:
@@ -6,6 +6,12 @@ exports.up = function (knex) {
|
||||
table.integer('parent_category_id').unsigned();
|
||||
table.text('description');
|
||||
table.integer('user_id').unsigned();
|
||||
|
||||
table.integer('cost_account_id').unsigned();
|
||||
table.integer('sell_account_id').unsigned();
|
||||
table.integer('inventory_account_id').unsigned();
|
||||
|
||||
table.string('cost_method');
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -13,8 +13,9 @@ exports.up = function(knex) {
|
||||
table.integer('lot_number');
|
||||
|
||||
table.string('transaction_type');
|
||||
table.integer('transaction_id');
|
||||
table.integer('transaction_id').unsigned();
|
||||
|
||||
table.integer('entry_id').unsigned();
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -3,17 +3,18 @@ exports.up = function(knex) {
|
||||
return knex.schema.createTable('inventory_cost_lot_tracker', table => {
|
||||
table.increments();
|
||||
table.date('date');
|
||||
|
||||
table.string('direction');
|
||||
|
||||
table.integer('item_id').unsigned();
|
||||
table.integer('quantity').unsigned();
|
||||
table.decimal('rate', 13, 3);
|
||||
table.integer('remaining');
|
||||
table.integer('cost');
|
||||
table.integer('lot_number');
|
||||
|
||||
table.string('transaction_type');
|
||||
table.integer('transaction_id');
|
||||
table.integer('transaction_id').unsigned();
|
||||
table.integer('entry_id').unsigned();
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user