mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: add due bills reducer and selector.
This commit is contained in:
@@ -41,7 +41,7 @@ export default class Bill extends TenantModel {
|
||||
* @return {number}
|
||||
*/
|
||||
get dueAmount() {
|
||||
return this.amount - this.paymentAmount;
|
||||
return Math.max(this.amount - this.paymentAmount, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user