mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
WIP: Allocate landed cost.
This commit is contained in:
@@ -373,6 +373,11 @@ const accumSum = (data, callback) => {
|
||||
}, 0)
|
||||
}
|
||||
|
||||
const mergeObjectsBykey = (object1, object2, key) => {
|
||||
var merged = _.merge(_.keyBy(object1, key), _.keyBy(object2, key));
|
||||
return _.values(merged);
|
||||
}
|
||||
|
||||
export {
|
||||
accumSum,
|
||||
increment,
|
||||
@@ -400,5 +405,6 @@ export {
|
||||
transactionIncrement,
|
||||
transformToMapBy,
|
||||
dateRangeFromToCollection,
|
||||
transformToMapKeyValue
|
||||
transformToMapKeyValue,
|
||||
mergeObjectsBykey
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user