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) &&
|
if (userCompany.canEditEntity(this) &&
|
||||||
!isDeleted &&
|
!isDeleted &&
|
||||||
!isCancelledOrReversed) {
|
!isCancelledOrReversed) {
|
||||||
if (!isQuote && !isCredit && !isRecurringInvoice && isSent) {
|
if (isInvoice && isSent) {
|
||||||
if (!isPaid) {
|
if (!isPaid) {
|
||||||
actions.add(EntityAction.cancelInvoice);
|
actions.add(EntityAction.cancelInvoice);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -398,16 +398,13 @@ class MenuDrawer extends StatelessWidget {
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
dense: true,
|
dense: true,
|
||||||
tileColor: Colors.green,
|
tileColor: Colors.green,
|
||||||
leading: Padding(
|
leading: IconButton(
|
||||||
padding: const EdgeInsets.only(left: 6),
|
onPressed: () => null,
|
||||||
child: Icon(
|
icon: Icon(
|
||||||
Icons.arrow_circle_up,
|
Icons.arrow_circle_up,
|
||||||
size: 22,
|
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
contentPadding:
|
|
||||||
const EdgeInsets.only(left: 20),
|
|
||||||
title: state.isMenuCollapsed
|
title: state.isMenuCollapsed
|
||||||
? SizedBox()
|
? SizedBox()
|
||||||
: Text(
|
: Text(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue