mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
refactoring: balance sheet report.
refactoring: trial balance sheet report. refactoring: general ledger report. refactoring: journal report. refactoring: P&L report.
This commit is contained in:
16
server/src/services/FinancialStatements/FinancialSheet.ts
Normal file
16
server/src/services/FinancialStatements/FinancialSheet.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import {
|
||||
formatNumber
|
||||
} from 'utils';
|
||||
|
||||
export default class FinancialSheet {
|
||||
numberFormat: { noCents: boolean, divideOn1000: boolean };
|
||||
|
||||
/**
|
||||
* Formating amount based on the given report query.
|
||||
* @param {number} number
|
||||
* @return {string}
|
||||
*/
|
||||
protected formatNumber(number): string {
|
||||
return formatNumber(number, this.numberFormat);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user