Hide cancel invoice actions from POs
This commit is contained in:
parent
e042053261
commit
65a206ba6f
|
|
@ -1131,7 +1131,7 @@ abstract class InvoiceEntity extends Object
|
|||
if (userCompany.canEditEntity(this) &&
|
||||
!isDeleted &&
|
||||
!isCancelledOrReversed) {
|
||||
if (!isQuote && !isCredit && !isRecurringInvoice && isSent) {
|
||||
if (isInvoice && isSent) {
|
||||
if (!isPaid) {
|
||||
actions.add(EntityAction.cancelInvoice);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -398,16 +398,13 @@ class MenuDrawer extends StatelessWidget {
|
|||
child: ListTile(
|
||||
dense: true,
|
||||
tileColor: Colors.green,
|
||||
leading: Padding(
|
||||
padding: const EdgeInsets.only(left: 6),
|
||||
child: Icon(
|
||||
leading: IconButton(
|
||||
onPressed: () => null,
|
||||
icon: Icon(
|
||||
Icons.arrow_circle_up,
|
||||
size: 22,
|
||||
color: Colors.white,
|
||||
),
|
||||
),
|
||||
contentPadding:
|
||||
const EdgeInsets.only(left: 20),
|
||||
title: state.isMenuCollapsed
|
||||
? SizedBox()
|
||||
: Text(
|
||||
|
|
|
|||
Loading…
Reference in New Issue