XReport fix
parent
77ed845505
commit
32100a3ecb
|
|
@ -1,5 +1,8 @@
|
|||
import 'dart:convert';
|
||||
|
||||
import 'package:aman_kassa_flutter/core/entity/Voucher.dart';
|
||||
import 'package:aman_kassa_flutter/core/locator.dart';
|
||||
import 'package:aman_kassa_flutter/core/models/check_image_modal.dart';
|
||||
import 'package:aman_kassa_flutter/core/models/money.dart';
|
||||
import 'package:aman_kassa_flutter/core/models/response.dart';
|
||||
import 'package:aman_kassa_flutter/core/models/dialog_models.dart';
|
||||
|
|
@ -99,9 +102,11 @@ class _AdditionalTabState extends State<AdditionalTab> {
|
|||
User user = Redux.store.state.userState.user;
|
||||
Response response = await _api.xReport(user.token);
|
||||
if (response.operation) {
|
||||
String check = response.body['check'];
|
||||
var checkText = response.body['check_text'];
|
||||
_navigator.push(ImageShowRoute,
|
||||
arguments:
|
||||
ImageShowModel(data: response.body['check'], title: 'X Отчет'));
|
||||
ImageShowModel(data: CheckImageModal(base64Data: check, textData: checkText !=null ? jsonEncode(checkText) : null ), title: 'X Отчет'));
|
||||
String url = response?.body['link'];
|
||||
_dataService.insertVoucher(
|
||||
user: user,
|
||||
|
|
|
|||
Loading…
Reference in New Issue