Skip to content
This repository has been archived by the owner on Nov 28, 2017. It is now read-only.

Commit

Permalink
Add 'Subtotal' to list of amount fields to convert.
Browse files Browse the repository at this point in the history
  • Loading branch information
benbuckman committed Nov 9, 2015
1 parent 7254d2d commit 5d2b27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ exports.flatten = function flatten(el, maxDepth, requestContext, _depth) {
childKey = _flattenSillyArray(el, childKey, requestContext); // on parent, byref; childKey changes!
childEl = el[childKey]; // ref to new element
}
else if (/(Amount|Cost|Price)/.test(childKey)) {
else if (/(Amount|Cost|Price|Subtotal)/.test(childKey)) {
el[childKey] = _convertAmountStructure(childEl, requestContext);
}

Expand Down

0 comments on commit 5d2b27d

Please sign in to comment.