CORE-POS / IS4C

Cooperative Operational Retail Environment
http://www.core-pos.com
GNU General Public License v2.0
63 stars 44 forks source link

Detect missing item within batch history #1090

Closed lgedgar closed 3 years ago

lgedgar commented 3 years ago

when the batch history table is rendered, but one of the items contained in the batch no longer exists, fail gracefully

Not sure how often this comes up in practice but did see it in the wild. It also seems like the warning, which brought it to my attention, only happens as of PHP 7.4, if that matters.

[2021-09-13 12:28:09] fannie.WARNING: Trying to access array offset on value of type bool Line 256, /srv/IS4C/fannie/batches/batchhistory/BatchHistoryPage.php [] []