Skip to content

Commit a0fcc6b

Browse files
committed
Merge branch 'develop'
2 parents 8238404 + e505f64 commit a0fcc6b

10 files changed

+34
-21
lines changed

.github/workflows/flatpak.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
draft: false
8787
prerelease: false
8888
title: "Latest Release"
89-
automatic_release_tag: "v5.0.147"
89+
automatic_release_tag: "v5.0.148"
9090
files: |
9191
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
9292
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash

flatpak/com.invoiceninja.InvoiceNinja.metainfo.xml

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
</screenshots>
5151
<content_rating type="oars-1.1"/>
5252
<releases>
53+
<release version="5.0.148" date="2024-01-08"/>
5354
<release version="5.0.147" date="2024-01-02"/>
5455
<release version="5.0.146" date="2023-12-20"/>
5556
<release version="5.0.145" date="2023-12-03"/>

lib/constants.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Constants {
44
}
55

66
// TODO remove version once #46609 is fixed
7-
const String kClientVersion = '5.0.147';
7+
const String kClientVersion = '5.0.148';
88
const String kMinServerVersion = '5.0.4';
99

1010
const String kAppName = 'Invoice Ninja';

lib/ui/bank_account/bank_account_screen.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ class BankAccountScreen extends StatelessWidget {
3737
void connectAccounts(BuildContext context) {
3838
final localization = AppLocalization.of(context)!;
3939

40-
if (isSelfHosted(context)) {
40+
if (!supportsLatestFeatures('5.8.0')) {
41+
_connectAccounts(context, BankAccountEntity.INTEGRATION_TYPE_YODLEE);
42+
} else if (isSelfHosted(context)) {
4143
_connectAccounts(context, BankAccountEntity.INTEGRATION_TYPE_NORDIGEN);
4244
} else {
4345
showDialog(

lib/ui/invoice/edit/invoice_edit_items_desktop.dart

+13
Original file line numberDiff line numberDiff line change
@@ -821,6 +821,19 @@ class _InvoiceEditItemsDesktopState extends State<InvoiceEditItemsDesktop> {
821821
EntityAutocompleteListTile(
822822
onTap: (entity) => onSelected(
823823
entity as ProductEntity),
824+
overrideSuggestedLabel:
825+
(entity) {
826+
var label =
827+
entity.listDisplayName;
828+
if (state.company
829+
.trackInventory) {
830+
final product = entity
831+
as ProductEntity;
832+
label +=
833+
' [${product.stockQuantity}]';
834+
}
835+
return label;
836+
},
824837
overrideSuggestedAmount:
825838
(entity) {
826839
final product =

lib/ui/invoice/view/invoice_view_overview.dart

+10-15
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,6 @@ class InvoiceOverview extends StatelessWidget {
268268
widgets.add(EntityListTile(entity: project, isFilter: isFilter));
269269
}
270270

271-
if ((invoice.invoiceId ?? '').isNotEmpty) {
272-
final linkedInvoice = state.invoiceState.get(invoice.invoiceId!);
273-
widgets.add(EntityListTile(entity: linkedInvoice, isFilter: isFilter));
274-
}
275-
276271
if (invoice.expenseId.isNotEmpty) {
277272
final expense = state.vendorState.get(invoice.expenseId);
278273
widgets.add(EntityListTile(entity: expense, isFilter: isFilter));
@@ -303,16 +298,16 @@ class InvoiceOverview extends StatelessWidget {
303298
));
304299
}
305300

306-
if (invoice.isQuote || invoice.isCredit) {
307-
final relatedInvoice = state.invoiceState.map[invoice.invoiceId] ??
308-
InvoiceEntity(id: invoice.invoiceId);
309-
if ((invoice.invoiceId ?? '').isNotEmpty) {
310-
widgets.add(EntityListTile(
311-
isFilter: isFilter,
312-
entity: relatedInvoice,
313-
));
314-
}
315-
} else {
301+
final relatedInvoice = state.invoiceState.map[invoice.invoiceId] ??
302+
InvoiceEntity(id: invoice.invoiceId);
303+
if ((invoice.invoiceId ?? '').isNotEmpty) {
304+
widgets.add(EntityListTile(
305+
isFilter: isFilter,
306+
entity: relatedInvoice,
307+
));
308+
}
309+
310+
if (invoice.isInvoice) {
316311
final relatedQuote =
317312
memoizedInvoiceQuoteSelector(invoice, state.quoteState.map);
318313
if (relatedQuote != null) {

lib/utils/platforms.dart

+2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ bool supportsLatestFeatures(String version) {
5757
return true;
5858
}
5959

60+
/*
6061
if (state.isSelfHosted) {
6162
return true;
6263
}
64+
*/
6365

6466
if (version.isEmpty) {
6567
return false;

pubspec.foss.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: invoiceninja_flutter
22
description: Client for Invoice Ninja
3-
version: 5.0.147+147
3+
version: 5.0.148+148
44
homepage: https://invoiceninja.com
55
documentation: https://invoiceninja.github.io
66
publish_to: none

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: invoiceninja_flutter
22
description: Client for Invoice Ninja
3-
version: 5.0.147+147
3+
version: 5.0.148+148
44
homepage: https://invoiceninja.com
55
documentation: https://invoiceninja.github.io
66
publish_to: none

snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: invoiceninja
2-
version: '5.0.147'
2+
version: '5.0.148'
33
summary: Create invoices, accept payments, track expenses & time tasks
44
description: "### Note: if the app fails to run using `snap run invoiceninja` it may help to run `/snap/invoiceninja/current/bin/invoiceninja` instead
55

0 commit comments

Comments
 (0)