fix: AR/AP aging summary report.

This commit is contained in:
a.bouhuolia
2021-01-14 13:16:32 +02:00
parent 343185b8bd
commit a747750d88
13 changed files with 287 additions and 154 deletions

View File

@@ -7,7 +7,7 @@ export default class CustomerRepository extends TenantRepository {
*/
constructor(knex, cache) {
super(knex, cache);
this.repositoryName = 'ContactRepository';
this.repositoryName = 'CustomerRepository';
}
/**

View File

@@ -7,7 +7,7 @@ export default class VendorRepository extends TenantRepository {
*/
constructor(knex, cache) {
super(knex, cache);
this.repositoryName = 'ContactRepository';
this.repositoryName = 'VendorRepository';
}
/**
@@ -17,6 +17,10 @@ export default class VendorRepository extends TenantRepository {
return Vendor.bindKnex(this.knex);
}
unpaid() {
}
changeBalance(vendorId: number, amount: number) {
return super.changeNumber({ id: vendorId }, 'balance', amount);
}