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:
@@ -278,6 +278,15 @@ function defaultToTransform(value, defaultOrTransformedValue, defaultValue) {
|
||||
: _transfromedValue;
|
||||
}
|
||||
|
||||
const transformToMap = (objects, key) => {
|
||||
const map = new Map();
|
||||
|
||||
objects.forEach(object => {
|
||||
map.set(object[key], object);
|
||||
});
|
||||
return map;
|
||||
}
|
||||
|
||||
export {
|
||||
hashPassword,
|
||||
origin,
|
||||
@@ -299,4 +308,5 @@ export {
|
||||
formatNumber,
|
||||
isBlank,
|
||||
defaultToTransform,
|
||||
transformToMap
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user