mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
fix(server): avoid return total row on aging summary reports if no customers
This commit is contained in:
@@ -164,7 +164,10 @@ export default abstract class AgingSummaryTable extends R.compose(
|
||||
* @returns {ITableRow[]}
|
||||
*/
|
||||
public tableRows = (): ITableRow[] => {
|
||||
return R.compose(R.concat(this.contactsRows), R.prepend(this.totalRow))([]);
|
||||
return R.compose(
|
||||
R.unless(R.isEmpty, R.append(this.totalRow)),
|
||||
R.concat(this.contactsRows)
|
||||
)([]);
|
||||
};
|
||||
|
||||
// -------------------------
|
||||
|
||||
Reference in New Issue
Block a user