fix invoice display
This commit is contained in:
@@ -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,
|
||||
)));
|
||||
},
|
||||
)),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user