print bill
This commit is contained in:
@@ -39,12 +39,12 @@ class PrintStruckBloc extends Bloc<PrintStruckEvent, PrintStruckState> {
|
||||
),
|
||||
);
|
||||
},
|
||||
saveOrder: (e) async {
|
||||
receipt: (e) async {
|
||||
Either<PrinterFailure, Unit> failureOrSuccess;
|
||||
|
||||
emit(state.copyWith(isPrinting: true, failureOrPrintStruck: none()));
|
||||
|
||||
failureOrSuccess = await _printerRepository.printStruckSaveOrder(
|
||||
failureOrSuccess = await _printerRepository.printStruckReceipt(
|
||||
order: e.order,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user