Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Jun 27, 2024
2 parents 5cfec1f + 95772da commit 360914d
Show file tree
Hide file tree
Showing 15 changed files with 298 additions and 29 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.160"
automatic_release_tag: "v5.0.161"
files: |
${{ github.workspace }}/artifacts/Invoice-Ninja-Archive
${{ github.workspace }}/artifacts/Invoice-Ninja-Hash
Expand Down
2 changes: 1 addition & 1 deletion bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ echo "const FLUTTER_VERSION = const <String, String>" > lib/flutter_version.dart
flutter --version --machine >> lib/flutter_version.dart
echo ";" >> lib/flutter_version.dart
sed -i "y/\"/'/" lib/flutter_version.dart
dart dartfmt lib
dart format lib
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.161" date="2024-06-27"/>
<release version="5.0.160" date="2024-05-22"/>
<release version="5.0.159" date="2024-05-10"/>
<release version="5.0.158" date="2024-04-24"/>
Expand Down
7 changes: 6 additions & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Constants {
}

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

const String kAppName = 'Invoice Ninja';
Expand Down Expand Up @@ -610,6 +610,10 @@ const String kReminderScheduleAfterInvoiceDate = 'after_invoice_date';
const String kReminderScheduleBeforeDueDate = 'before_due_date';
const String kReminderScheduleAfterDueDate = 'after_due_date';

const String kQuoteReminderScheduleAfterQuoteDate = 'after_quote_date';
const String kQuoteReminderScheduleBeforeValidUntil = 'before_valid_until_date';
const String kQuoteReminderScheduleAfterValidUntil = 'after_valid_until_date';

const String kSettingsCompanyDetails = 'company_details';
const String kSettingsPaymentTerms = 'payment_terms';
const String kSettingsPaymentTermView = 'payment_term/view';
Expand Down Expand Up @@ -1131,3 +1135,4 @@ const String kActivityEmailPayment = '138';
const String kActivityExpenseNotificationSent = '139';
const String kActivityStatementSent = '140';
const String kActivityComment = '141';
const String kActivityQuoteEmailReminder1 = '142';
2 changes: 2 additions & 0 deletions lib/data/models/entities.dart
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ class EmailTemplate extends EnumClass {
static const EmailTemplate reminder2 = _$reminder2_email;
static const EmailTemplate reminder3 = _$reminder3_email;
static const EmailTemplate reminder_endless = _$reminder_endless_email;
static const EmailTemplate quote_reminder1 = _$quote_reminder1_email;
static const EmailTemplate custom1 = _$custom1_email;
static const EmailTemplate custom2 = _$custom2_email;
static const EmailTemplate custom3 = _$custom3_email;
Expand Down Expand Up @@ -858,6 +859,7 @@ abstract class ActivityEntity
kActivityDeleteQuote,
kActivityRestoreQuote,
kActivityApproveQuote,
kActivityQuoteEmailReminder1,
].contains(activityTypeId)) {
return EntityType.quote;
} else if ([
Expand Down
5 changes: 5 additions & 0 deletions lib/data/models/entities.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 27 additions & 2 deletions lib/data/models/settings_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,27 @@ abstract class SettingsEntity
@BuiltValueField(wireName: 'task_round_to_nearest')
int? get taskRoundToNearest;

@BuiltValueField(wireName: 'email_quote_template_reminder1')
String? get emailBodyQuoteReminder1;

@BuiltValueField(wireName: 'email_quote_subject_reminder1')
String? get emailSubjectQuoteReminder1;

@BuiltValueField(wireName: 'enable_quote_reminder1')
bool? get enableQuoteReminder1;

@BuiltValueField(wireName: 'quote_num_days_reminder1')
int? get numDaysQuoteReminder1;

@BuiltValueField(wireName: 'quote_schedule_reminder1')
String? get scheduleQuoteReminder1;

@BuiltValueField(wireName: 'quote_late_fee_amount1')
double? get quoteLateFeeAmount1;

@BuiltValueField(wireName: 'quote_late_fee_percent1')
double? get quoteLateFeePercent1;

bool? get taskRoundingEnabled =>
taskRoundToNearest == null ? null : taskRoundToNearest != 1;

Expand Down Expand Up @@ -958,8 +979,10 @@ abstract class SettingsEntity
return emailSubjectCustom3;
case EmailTemplate.purchase_order:
return emailSubjectPurchaseOrder;
case EmailTemplate.quote_reminder1:
return emailSubjectQuoteReminder1;
default:
return 'Error: template not defined for $emailTemplate';
return 'Error: subject template not defined for $emailTemplate';
}
}

Expand Down Expand Up @@ -993,8 +1016,10 @@ abstract class SettingsEntity
return emailBodyCustom3;
case EmailTemplate.purchase_order:
return emailBodyPurchaseOrder;
case EmailTemplate.quote_reminder1:
return emailBodyQuoteReminder1;
default:
return 'Error: template not defined for $template';
return 'Error: body template not defined for $template';
}
}

Expand Down
175 changes: 171 additions & 4 deletions lib/data/models/settings_model.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 360914d

Please sign in to comment.