openNonFiscalReceipt method

Future<void> openNonFiscalReceipt()

Implementation

Future<void> openNonFiscalReceipt() async {
  final message = await execute(Commands.openNonFiscalReceipt.code);
  final [$e, ...rest] = message.data.response;
  final error = int.tryParse($e) ?? 0;

  if (error != 0) {
    throw FiscalCodeException('Error opening non-fiscal receipt', error);
  }
}