feat(server): AP/AR aging summary table transformer

This commit is contained in:
Ahmed Bouhuolia
2023-08-24 23:24:05 +02:00
parent b5fe5a8bcb
commit 4e66d1ac98
13 changed files with 459 additions and 88 deletions

View File

@@ -1,13 +1,13 @@
import { Service, Inject } from 'typedi';
import Knex from 'knex';
import { Knex } from 'knex';
import Bluebird from 'bluebird';
import { IVendorCreditAppliedBill } from '@/interfaces';
import HasTenancyService from '@/services/Tenancy/TenancyService';
import Bluebird from 'bluebird';
@Service()
export default class ApplyVendorCreditSyncBills {
@Inject()
tenancy: HasTenancyService;
private tenancy: HasTenancyService;
/**
* Increment bills credited amount.
@@ -49,4 +49,4 @@ export default class ApplyVendorCreditSyncBills {
.findById(vendorCreditAppliedBill.billId)
.decrement('creditedAmount', vendorCreditAppliedBill.amount);
};
}
}