Fixes: Fixed a bug that caused the POS to crash when using customer display app POS makes sure that to compare last invoice number form API with the last invoice number stored in cache to avoid duplications shortly after offline sessions