Merge pull request #1926 from RafaelTaranto/fix/receipt-paper-null

LAM-1498 fix: receipt paper null
This commit is contained in:
Rafael Taranto 2025-07-25 10:57:48 +01:00 committed by GitHub
commit 36e051af8d

View file

@ -58,7 +58,7 @@ const addReceiptInfo = receiptInfo => ret => {
const defaults = _.fromPairs(_.map(field => [field, false], fields))
receiptInfo = _.flow(
o => _.set('paper', o.active, o),
o => _.set('paper', !!o.active, o),
_.assign(defaults),
_.pick(fields),
)(receiptInfo)