- fix: Schedule write journal entries after item compute cost.

- fix: active vouchers query.
- fix: remove babel loader in server-side.
This commit is contained in:
Ahmed Bouhuolia
2020-08-29 22:11:42 +02:00
parent e4270dc039
commit 74321a2886
12 changed files with 217 additions and 104 deletions

View File

@@ -14,12 +14,12 @@ export default ({ agenda }: { agenda: Agenda }) => {
agenda.define(
'compute-item-cost',
{ priority: 'high', concurrency: 20 },
new ComputeItemCost().handler,
new ComputeItemCost(agenda).handler,
);
agenda.define(
'rewrite-invoices-journal-entries',
{ priority: 'normal', concurrency: 1, },
new RewriteInvoicesJournalEntries().handler,
new RewriteInvoicesJournalEntries(agenda).handler,
);
agenda.define(
'send-voucher-via-phone',