mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
fix: AR/AP aging summary report.
This commit is contained in:
@@ -7,7 +7,7 @@ export default class CustomerRepository extends TenantRepository {
|
||||
*/
|
||||
constructor(knex, cache) {
|
||||
super(knex, cache);
|
||||
this.repositoryName = 'ContactRepository';
|
||||
this.repositoryName = 'CustomerRepository';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user