fix invoice display

This commit is contained in:
Sai Naw Wun
2020-10-28 06:23:04 +06:30
parent 9f58e7f748
commit bd63e1e161
4 changed files with 54 additions and 46 deletions

View File

@@ -13,7 +13,8 @@ import '../widgets/pdf_screen.dart';
class InvoiceListRow extends StatelessWidget {
final dateFormatter = new DateFormat('dd MMM yyyy');
final Invoice invoice;
InvoiceListRow({Key key, this.invoice}) : super(key: key);
final bool forCustomer;
InvoiceListRow({Key key, this.invoice, this.forCustomer}) : super(key: key);
@override
Widget build(BuildContext context) {
@@ -91,7 +92,10 @@ class InvoiceListRow extends StatelessWidget {
),
onPressed: () {
Navigator.of(context).push(CupertinoPageRoute(
builder: (context) => PaymentPage(invoice: invoice)));
builder: (context) => PaymentPage(
invoice: invoice,
forCustomer: forCustomer,
)));
},
)),
)