feat: average rate cost method.

This commit is contained in:
a.bouhuolia
2020-12-22 22:27:54 +02:00
parent c327c79612
commit 061b50c671
21 changed files with 787 additions and 409 deletions

View File

@@ -12,4 +12,5 @@ import 'subscribers/vendors';
import 'subscribers/paymentMades';
import 'subscribers/paymentReceives';
import 'subscribers/saleEstimates';
import 'subscribers/saleReceipts';
import 'subscribers/saleReceipts';
import 'subscribers/inventory';

View File

@@ -19,17 +19,8 @@ export default ({ agenda }: { agenda: Agenda }) => {
new UserInviteMailJob(agenda);
new SendLicenseViaEmailJob(agenda);
new SendLicenseViaPhoneJob(agenda);
agenda.define(
'compute-item-cost',
{ priority: 'high', concurrency: 20 },
new ComputeItemCost(agenda).handler,
);
agenda.define(
'rewrite-invoices-journal-entries',
{ priority: 'normal', concurrency: 1, },
new RewriteInvoicesJournalEntries().handler,
);
new ComputeItemCost(agenda);
new RewriteInvoicesJournalEntries(agenda);
agenda.define(
'send-sms-notification-subscribe-end',