mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
feat: average rate cost method.
This commit is contained in:
@@ -17,6 +17,7 @@ exports.up = function(knex) {
|
||||
table.string('inv_lot_number').index();
|
||||
|
||||
table.date('delivered_at').index();
|
||||
table.integer('user_id').unsigned();
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -10,7 +10,7 @@ exports.up = function(knex) {
|
||||
table.integer('quantity').unsigned();
|
||||
table.decimal('rate', 13, 3).unsigned();
|
||||
|
||||
table.integer('lot_number').index();
|
||||
table.string('lot_number').index();
|
||||
|
||||
table.string('transaction_type').index();
|
||||
table.integer('transaction_id').unsigned().index();
|
||||
|
||||
@@ -9,7 +9,7 @@ exports.up = function(knex) {
|
||||
table.integer('quantity').unsigned().index();
|
||||
table.decimal('rate', 13, 3);
|
||||
table.integer('remaining');
|
||||
table.integer('cost');
|
||||
table.decimal('cost', 13, 3);
|
||||
table.integer('lot_number').index();
|
||||
|
||||
table.string('transaction_type').index();
|
||||
|
||||
Reference in New Issue
Block a user