disable customer cancel invoice
This commit is contained in:
@@ -21,7 +21,8 @@ import 'package:provider/provider.dart';
|
||||
|
||||
class InvoiceInfo extends StatefulWidget {
|
||||
final Invoice invoice;
|
||||
InvoiceInfo({this.invoice});
|
||||
final bool forCustomer;
|
||||
InvoiceInfo({this.invoice, this.forCustomer});
|
||||
|
||||
@override
|
||||
_InvoiceInfoState createState() => _InvoiceInfoState();
|
||||
@@ -181,7 +182,7 @@ class _InvoiceInfoState extends State<InvoiceInfo> {
|
||||
SizedBox(
|
||||
height: 10,
|
||||
),
|
||||
isCanceled ? Container() : cancelBtn,
|
||||
isCanceled || widget.forCustomer ? Container() : cancelBtn,
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user