Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jan 8, 2024
2 parents 8238404 + e505f64 commit a0fcc6b
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
draft: false
prerelease: false
title: "Latest Release"
automatic_release_tag: "v5.0.147"
automatic_release_tag: "v5.0.148"
files: |
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash
Expand Down
1 change: 1 addition & 0 deletions flatpak/com.invoiceninja.InvoiceNinja.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
</screenshots>
<content_rating type="oars-1.1"/>
<releases>
<release version="5.0.148" date="2024-01-08"/>
<release version="5.0.147" date="2024-01-02"/>
<release version="5.0.146" date="2023-12-20"/>
<release version="5.0.145" date="2023-12-03"/>
Expand Down
2 changes: 1 addition & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Constants {
}

// TODO remove version once #46609 is fixed
const String kClientVersion = '5.0.147';
const String kClientVersion = '5.0.148';
const String kMinServerVersion = '5.0.4';

const String kAppName = 'Invoice Ninja';
Expand Down
4 changes: 3 additions & 1 deletion lib/ui/bank_account/bank_account_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class BankAccountScreen extends StatelessWidget {
void connectAccounts(BuildContext context) {
final localization = AppLocalization.of(context)!;

if (isSelfHosted(context)) {
if (!supportsLatestFeatures('5.8.0')) {
_connectAccounts(context, BankAccountEntity.INTEGRATION_TYPE_YODLEE);
} else if (isSelfHosted(context)) {
_connectAccounts(context, BankAccountEntity.INTEGRATION_TYPE_NORDIGEN);
} else {
showDialog(
Expand Down
13 changes: 13 additions & 0 deletions lib/ui/invoice/edit/invoice_edit_items_desktop.dart
Original file line number Diff line number Diff line change
Expand Up @@ -821,6 +821,19 @@ class _InvoiceEditItemsDesktopState extends State<InvoiceEditItemsDesktop> {
EntityAutocompleteListTile(
onTap: (entity) => onSelected(
entity as ProductEntity),
overrideSuggestedLabel:
(entity) {
var label =
entity.listDisplayName;
if (state.company
.trackInventory) {
final product = entity
as ProductEntity;
label +=
' [${product.stockQuantity}]';
}
return label;
},
overrideSuggestedAmount:
(entity) {
final product =
Expand Down
25 changes: 10 additions & 15 deletions lib/ui/invoice/view/invoice_view_overview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,6 @@ class InvoiceOverview extends StatelessWidget {
widgets.add(EntityListTile(entity: project, isFilter: isFilter));
}

if ((invoice.invoiceId ?? '').isNotEmpty) {
final linkedInvoice = state.invoiceState.get(invoice.invoiceId!);
widgets.add(EntityListTile(entity: linkedInvoice, isFilter: isFilter));
}

if (invoice.expenseId.isNotEmpty) {
final expense = state.vendorState.get(invoice.expenseId);
widgets.add(EntityListTile(entity: expense, isFilter: isFilter));
Expand Down Expand Up @@ -303,16 +298,16 @@ class InvoiceOverview extends StatelessWidget {
));
}

if (invoice.isQuote || invoice.isCredit) {
final relatedInvoice = state.invoiceState.map[invoice.invoiceId] ??
InvoiceEntity(id: invoice.invoiceId);
if ((invoice.invoiceId ?? '').isNotEmpty) {
widgets.add(EntityListTile(
isFilter: isFilter,
entity: relatedInvoice,
));
}
} else {
final relatedInvoice = state.invoiceState.map[invoice.invoiceId] ??
InvoiceEntity(id: invoice.invoiceId);
if ((invoice.invoiceId ?? '').isNotEmpty) {
widgets.add(EntityListTile(
isFilter: isFilter,
entity: relatedInvoice,
));
}

if (invoice.isInvoice) {
final relatedQuote =
memoizedInvoiceQuoteSelector(invoice, state.quoteState.map);
if (relatedQuote != null) {
Expand Down
2 changes: 2 additions & 0 deletions lib/utils/platforms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ bool supportsLatestFeatures(String version) {
return true;
}

/*
if (state.isSelfHosted) {
return true;
}
*/

if (version.isEmpty) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion pubspec.foss.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: invoiceninja_flutter
description: Client for Invoice Ninja
version: 5.0.147+147
version: 5.0.148+148
homepage: https://invoiceninja.com
documentation: https://invoiceninja.github.io
publish_to: none
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: invoiceninja_flutter
description: Client for Invoice Ninja
version: 5.0.147+147
version: 5.0.148+148
homepage: https://invoiceninja.com
documentation: https://invoiceninja.github.io
publish_to: none
Expand Down
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: invoiceninja
version: '5.0.147'
version: '5.0.148'
summary: Create invoices, accept payments, track expenses & time tasks
description: "### Note: if the app fails to run using `snap run invoiceninja` it may help to run `/snap/invoiceninja/current/bin/invoiceninja` instead
Expand Down

0 comments on commit a0fcc6b

Please sign in to comment.