feat: compute items cost of inventory adjustments transcations.

This commit is contained in:
a.bouhuolia
2021-01-10 17:41:32 +02:00
parent 097b9fdb3a
commit 8491d44118
20 changed files with 433 additions and 180 deletions

View File

@@ -35,6 +35,8 @@ import ManualJournal from 'models/ManualJournal';
import ManualJournalEntry from 'models/ManualJournalEntry';
import Media from 'models/Media';
import MediaLink from 'models/MediaLink';
import InventoryAdjustment from 'models/InventoryAdjustment';
import InventoryAdjustmentEntry from 'models/InventoryAdjustmentEntry';
export default (knex) => {
const models = {
@@ -73,6 +75,8 @@ export default (knex) => {
Vendor,
Customer,
Contact,
InventoryAdjustment,
InventoryAdjustmentEntry,
};
return mapValues(models, (model) => model.bindKnex(knex));
}