mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
feat: journal and general ledger report.
This commit is contained in:
@@ -389,6 +389,16 @@ export const getColumnWidth = (
|
||||
return result;
|
||||
};
|
||||
|
||||
export const getForceWidth = (
|
||||
text,
|
||||
magicSpacing = 14,
|
||||
) => {
|
||||
const textLength = text.length;
|
||||
const result = textLength * magicSpacing
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
export const toSafeNumber = (number) => {
|
||||
return _.toNumber(_.defaultTo(number, 0));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user