add invoice pdf
This commit is contained in:
@@ -2,7 +2,7 @@ import 'package:fcs/domain/entities/fcs_shipment.dart';
|
||||
import 'package:fcs/domain/entities/user.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/customer/model/customer_model.dart';
|
||||
import 'package:fcs/pages/invoice/invoice_editor.dart';
|
||||
import 'package:fcs/pages/invoice/editor/invoice_editor.dart';
|
||||
import 'package:fcs/pages/widgets/local_text.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
@@ -82,12 +82,15 @@ class _InvoiceCustomerListState extends State<InvoiceCustomerList> {
|
||||
|
||||
Widget _item(User customer) {
|
||||
return InkWell(
|
||||
onTap: () {
|
||||
Navigator.of(context).push(CupertinoPageRoute(
|
||||
onTap: () async {
|
||||
bool created = await Navigator.of(context).push(CupertinoPageRoute(
|
||||
builder: (context) => InvoiceEditor(
|
||||
customer: customer,
|
||||
fcsShipment: widget.fcsShipment,
|
||||
)));
|
||||
if (created ?? false) {
|
||||
_load();
|
||||
}
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.only(left: 12.0, right: 12),
|
||||
|
||||
Reference in New Issue
Block a user