Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed May 6, 2022
2 parents 8f9c357 + 0da5b40 commit 920ab3b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/data/models/expense_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ abstract class ExpenseEntity extends Object

if (!isInvoiced &&
!isRecurring &&
shouldBeInvoiced &&
userCompany.canCreate(EntityType.invoice)) {
actions.add(EntityAction.invoiceExpense);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/redux/expense/expense_selectors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ List<String> clientExpenseList(
expense.clientId != clientId) {
return false;
}
return expense.isActive && !expense.isInvoiced;
return expense.isActive && !expense.isInvoiced && expense.shouldBeInvoiced;
}).toList();

list.sort((idA, idB) => expenseMap[idA]
Expand Down
5 changes: 2 additions & 3 deletions lib/ui/app/dialogs/health_check_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
@override
Widget build(BuildContext context) {
final localization = AppLocalization.of(context);
final state = StoreProvider.of<AppState>(context).state;
final webPhpVersion =
_parseVersion(_response?.phpVersion?.currentPHPVersion ?? '');
final cliPhpVersion =
Expand Down Expand Up @@ -153,15 +152,14 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
url:
'https://invoiceninja.github.io/docs/self-host-installation/#file-permissions',
),
/*
if (!state.account.isDocker) ...[
if (!_response.openBasedir)
/*
_HealthListTile(
title: 'Open Basedir',
isWarning: true,
subtitle: 'Not enabled',
),
*/
if (!_response.cacheEnabled)
_HealthListTile(
title: 'Config not cached',
Expand All @@ -170,6 +168,7 @@ class _HealthCheckDialogState extends State<HealthCheckDialog> {
isWarning: true,
),
],
*/
if (_response.queue == 'sync')
_HealthListTile(
title: 'Queue not enabled',
Expand Down

0 comments on commit 920ab3b

Please sign in to comment.