Skip to content

Firefly III: a personal finances manager

🤖 Auto commit for release 'develop' on 2026-09-27

JC5fd7e8ac519ac
diff --git a/app/Api/V1/Controllers/Insight/Income/TagController.php b/app/Api/V1/Controllers/Insight/Income/TagController.php
index df99eef909..94be2ae461 100644
--- a/app/Api/V1/Controllers/Insight/Income/TagController.php
+++ b/app/Api/V1/Controllers/Insight/Income/TagController.php
@@ -158,7 +158,10 @@ final class TagController extends Controller
'currency_id' => (string) $foreignCurrencyId,
'currency_code' => $journal['foreign_currency_code'],
];
- $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));
+ $response[$foreignKey]['difference'] = bcadd(
+ (string) $response[$foreignKey]['difference'],
+ Steam::positive($journal['foreign_amount'])
+ );
$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference'];
}
}
diff --git a/app/Api/V1/Controllers/Insight/Transfer/TagController.php b/app/Api/V1/Controllers/Insight/Transfer/TagController.php
index f92a7aa9f0..b7b85fd376 100644
--- a/app/Api/V1/Controllers/Insight/Transfer/TagController.php
+++ b/app/Api/V1/Controllers/Insight/Transfer/TagController.php
@@ -155,7 +155,10 @@ final class TagController extends Controller
'currency_id' => (string) $foreignCurrencyId,
'currency_code' => $journal['foreign_currency_code'],
];
- $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));
+ $response[$foreignKey]['difference'] = bcadd(
+ (string) $response[$foreignKey]['difference'],
+ Steam::positive($journal['foreign_amount'])
+ );
$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference']; // intentional float
}
}
diff --git a/app/Api/V1/Controllers/Models/Transaction/ShowController.php b/app/Api/V1/Controllers/Models/Transaction/ShowController.php
index e0d0e648a2..f47e991d18 100644
--- a/app/Api/V1/Controllers/Models/Transaction/ShowController.php
+++ b/app/Api/V1/Controllers/Models/Transaction/ShowController.php
@@ -122,7 +122,8 @@ final class ShowController extends Controller
// all info needed for the API:
->withAPIInformation()
;
- /** @var TransactionGroup|null $selectedGroup */
+
+ /** @var null|TransactionGroup $selectedGroup */
$selectedGroup = $collector->getGroups()->first();
if (null === $selectedGroup) {
throw new NotFoundHttpException();
diff --git a/app/Http/Controllers/Account/IndexController.php b/app/Http/Controllers/Account/IndexController.php
index 1308d16916..b0eb977031 100644
--- a/app/Http/Controllers/Account/IndexController.php
+++ b/app/Http/Controllers/Account/IndexController.php
@@ -34,7 +34,6 @@ use Psr\Container\NotFoundExceptionInterface;
*/
final class IndexController extends Controller
{
-
/**
* IndexController constructor.
*/
@@ -45,7 +44,7 @@ final class IndexController extends Controller
// translations:
$this->middleware(function ($request, $next) {
app('view')->share('mainTitleIcon', 'bi-credit-card');
- app('view')->share('title', (string)trans('firefly.accounts'));
+ app('view')->share('title', (string) trans('firefly.accounts'));
return $next($request);
});
@@ -57,9 +56,9 @@ final class IndexController extends Controller
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
- public function inactive(string $objectType): Factory | \Illuminate\Contracts\View\View
+ public function inactive(string $objectType): Factory|\Illuminate\Contracts\View\View
{
- $subTitle = (string)trans(sprintf('firefly.%s_accounts_inactive', $objectType));
+ $subTitle = (string) trans(sprintf('firefly.%s_accounts_inactive', $objectType));
$subTitleIcon = config(sprintf('firefly.subIconsByIdentifier.%s', $objectType));
return view('accounts.index', [
@@ -77,10 +76,11 @@ final class IndexController extends Controller
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
*/
- public function index(string $objectType): Factory | \Illuminate\Contracts\View\View
+ public function index(string $objectType): Factory|\Illuminate\Contracts\View\View
{
- $subTitle = (string)trans(sprintf('firefly.%s_accounts', $objectType));
+ $subTitle = (string) trans(sprintf('firefly.%s_accounts', $objectType));
$subTitleIcon = config(sprintf('firefly.subIconsByIdentifier.%s', $objectType));
+
return view('accounts.index', [
'objectType' => $objectType,
'subTitleIcon' => $subTitleIcon,
diff --git a/app/Http/Controllers/Budget/BudgetLimitController.php b/app/Http/Controllers/Budget/BudgetLimitController.php
index 2edb4f5531..d461374baa 100644
--- a/app/Http/Controllers/Budget/BudgetLimitController.php
+++ b/app/Http/Controllers/Budget/BudgetLimitController.php
@@ -198,7 +198,13 @@ final class BudgetLimitController extends Controller
if ($request->expectsJson()) {
$array = $limit->toArray();
// add some extra metadata:
- $spentArr = $this->opsRepository->sumExpenses($limit->start_date, $limit->end_date, null, new Collection()->push($budget), $currency);
+ $spentArr = $this->opsRepository->sumExpenses(
+ $limit->start_date,
+ $limit->end_date,
+ null,
+ new Collection()->push($budget),
+ $currency
+ );
$array['spent'] = $spentArr[$currency->id]['sum'] ?? '0';
$array['left_formatted'] = Amount::formatAnything($limit->transactionCurrency, bcadd($array['spent'], (string) $array['amount']));
$array['amount_formatted'] = Amount::formatAnything($limit->transactionCurrency, $limit['amount']);
diff --git a/app/Http/Controllers/Budget/IndexController.php b/app/Http/Controllers/Budget/IndexController.php
index 65429e59c1..52c6f900e3 100644
--- a/app/Http/Controllers/Budget/IndexController.php
+++ b/app/Http/Controllers/Budget/IndexController.php
@@ -272,7 +272,10 @@ final class IndexController extends Controller
if (array_key_exists($currency->id, $spentArr) && array_key_exists('sum', $spentArr[$currency->id])) {
$array['spent'][$currency->id]['spent'] = $spentArr[$currency->id]['sum'];
- $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub($spentInLimits[$currency->id], $spentArr[$currency->id]['sum']));
+ $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub(
+ $spentInLimits[$currency->id],
+ $spentArr[$currency->id]['sum']
+ ));
$array['spent'][$currency->id]['currency_id'] = $currency->id;
$array['spent'][$currency->id]['currency_symbol'] = $currency->symbol;
$array['spent'][$currency->id]['currency_decimal_places'] = $currency->decimal_places;
diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.php
index ad724137dc..f4b32fe5c5 100644
--- a/app/Http/Controllers/Chart/BudgetController.php
+++ b/app/Http/Controllers/Chart/BudgetController.php
@@ -539,7 +539,13 @@ final class BudgetController extends Controller
}
// get spent amount in this period for this currency.
- $sum = $this->opsRepository->sumExpenses($currentStart, $currentEnd, $accounts, new Collection()->push($budget), $currency);
+ $sum = $this->opsRepository->sumExpenses(
+ $currentStart,
+ $currentEnd,
+ $accounts,
+ new Collection()->push($budget),
+ $currency
+ );
$amount = Steam::positive($sum[$currency->id]['sum'] ?? '0');
$chartData[0]['entries'][$title] = Steam::bcround($amount, $currency->decimal_places);
diff --git a/app/Jobs/CreateAutoBudgetLimits.php b/app/Jobs/CreateAutoBudgetLimits.php
index 476da65ac3..affea656a0 100644
--- a/app/Jobs/CreateAutoBudgetLimits.php
+++ b/app/Jobs/CreateAutoBudgetLimits.php
@@ -132,7 +132,13 @@ class CreateAutoBudgetLimits implements ShouldQueue
// if has one, calculate expenses and use that as a base.
$repository = app(OperationsRepositoryInterface::class);
$repository->setUser($autoBudget->budget->user);
- $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);
+ $spent = $repository->sumExpenses(
+ $previousStart,
+ $previousEnd,
+ null,
+ new Collection()->push($autoBudget->budget),
+ $autoBudget->transactionCurrency
+ );
$currencyId = $autoBudget->transaction_currency_id;
$spentAmount = $spent[$currencyId]['sum'] ?? '0';
Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));
@@ -222,7 +228,13 @@ class CreateAutoBudgetLimits implements ShouldQueue
// if has one, calculate expenses and use that as a base.
$repository = app(OperationsRepositoryInterface::class);
$repository->setUser($autoBudget->budget->user);
- $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);
+ $spent = $repository->sumExpenses(
+ $previousStart,
+ $previousEnd,
+ null,
+ new Collection()->push($autoBudget->budget),
+ $autoBudget->transactionCurrency
+ );
$currencyId = $autoBudget->transaction_currency_id;
$spentAmount = $spent[$currencyId]['sum'] ?? '0';
Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));
diff --git a/app/Support/Http/Controllers/AugumentData.php b/app/Support/Http/Controllers/AugumentData.php
index a3a940b1ba..a507156873 100644
--- a/app/Support/Http/Controllers/AugumentData.php
+++ b/app/Support/Http/Controllers/AugumentData.php
@@ -222,7 +222,14 @@ trait AugumentData
$currentEnd->addMonth();
}
// primary currency amount.
- $expenses = $opsRepository->sumExpenses($currentStart, $currentEnd, null, $budgetCollection, $entry->transactionCurrency, $this->convertToPrimary);
+ $expenses = $opsRepository->sumExpenses(
+ $currentStart,
+ $currentEnd,
+ null,
+ $budgetCollection,
+ $entry->transactionCurrency,
+ $this->convertToPrimary
+ );
$spent = $expenses[$currency->id]['sum'] ?? '0';
$entry->pc_spent = $spent;
diff --git a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php
index d0c09bf027..2428353cb0 100644
--- a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php
+++ b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php
@@ -354,7 +354,11 @@ class RecurringEnrichment implements EnrichmentInterface
/** @var RecurrenceRepetition $repetition */
foreach ($set as $repetition) {
- $recurrence = $this->collection->filter(static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id)->first();
+ $recurrence = $this->collection->filter(
+ static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id
+ )
+ ->first()
+ ;
$fromDate = clone ($recurrence->latest_date ?? $recurrence->first_date);
$recurrenceId = (int) $repetition->recurrence_id;
$repId = (int) $repetition->id;
diff --git a/changelog.md b/changelog.md
index 0715d0e362..02dbfe8b91 100644
--- a/changelog.md
+++ b/changelog.md
@@ -13,7 +13,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- [Issue 12860](https://github.com/firefly-iii/firefly-iii/issues/12860) (Not yet stored attachments, return false) reported by @Tealk
- [Issue 12885](https://github.com/firefly-iii/firefly-iii/issues/12885) (Some fields on the Extra Information are blank when editing a transaction) reported by @rvelasq
- [Issue 12889](https://github.com/firefly-iii/firefly-iii/issues/12889) (Dashboard 'Your Accounts' graph repeats accounts) reported by @PAS-BC
-- #12897
+- [Issue 12897](https://github.com/firefly-iii/firefly-iii/issues/12897) (Edit transaction form shows the first subscription, when the transaction has no subscription.) reported by @dfensom
### Security
diff --git a/config/firefly.php b/config/firefly.php
index ef8b3cc816..e028027307 100644
--- a/config/firefly.php
+++ b/config/firefly.php
@@ -78,8 +78,8 @@ return [
'running_balance_column' => (bool)env_default_when_empty(env('USE_RUNNING_BALANCE'), true), // this is only the default value, is not used.
// see cer.php for exchange rates feature flag.
],
-'version' => 'develop/2026-09-26',
-'build_time' => 1790452229,
+'version' => 'develop/2026-09-27',
+'build_time' => 1790506319,
'api_version' => '2.1.0', // field is no longer used.
'db_version' => 28, // field is no longer used.
diff --git a/config/passport.php b/config/passport.php
index 91f0dab7b2..bf65b0a926 100644
--- a/config/passport.php
+++ b/config/passport.php
@@ -58,7 +58,7 @@ return [
'secret' => env('PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET'),
],
- 'middleware' => ['web','user-full-auth'],
+ 'middleware' => ['web', 'user-full-auth'],
'connection' => env('PASSPORT_CONNECTION'),
];
diff --git a/package-lock.json b/package-lock.json
index 7fc083c97d..5b2fc97e05 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1027,9 +1027,9 @@
}
},
"node_modules/ansi-regex": {
- "version": "6.3.0",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz",
- "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==",
+ "version": "6.4.0",
+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.4.0.tgz",
+ "integrity": "sha512-KzTVk2tCWAHtYrvvvaP8bJKJq2pVinhLcGEQdtLIYPbmNGNyYe8QwNaTUYQp2J7/vIsUKt5QCqAfUkYyG9DkOw==",
"dev": true,
"license": "MIT",
"engines": {
diff --git a/resources/assets/v3/js/boot/bootstrap.js b/resources/assets/v3/js/boot/bootstrap.js
index 8b0a83c0bd..e755452c50 100644
--- a/resources/assets/v3/js/boot/bootstrap.js
+++ b/resources/assets/v3/js/boot/bootstrap.js
@@ -56,113 +56,113 @@ getFreshVariable("lastActivity")
// console.log('Cache valid: ' + (localValue === serverValue));
})
.then(() => {
- Promise.resolve(getVariables(["viewRange","anonymous", "darkMode", "locale", "language", "convert_to_primary"])).then(
- (values) => {
- const range = getViewRange(values.viewRange, new Date());
- if (!store.get("start") || !store.get("end")) {
- // calculate new start and end, and store them.
- store.set("start", range.start);
- store.set("end", range.end);
- }
- // always set defaultStart and defaultEnd
- store.set("viewRange", values.viewRange);
- store.set("defaultStart", range.start);
- store.set("defaultEnd", range.end);
- store.set("anonymous", values.anonymous);
- //
- if ("equal" === values.locale) {
- values.locale = values.language;
- }
- const replacedLocale = values.locale.replace("_", "-");
- const replacedLanguage = values.language.replace("_", "-");
+ Promise.resolve(
+ getVariables(["viewRange", "anonymous", "darkMode", "locale", "language", "convert_to_primary"]),
+ ).then((values) => {
+ const range = getViewRange(values.viewRange, new Date());
+ if (!store.get("start") || !store.get("end")) {
+ // calculate new start and end, and store them.
+ store.set("start", range.start);
+ store.set("end", range.end);
+ }
+ // always set defaultStart and defaultEnd
+ store.set("viewRange", values.viewRange);
+ store.set("defaultStart", range.start);
+ store.set("defaultEnd", range.end);
+ store.set("anonymous", values.anonymous);
+ //
+ if ("equal" === values.locale) {
+ values.locale = values.language;
+ }
+ const replacedLocale = values.locale.replace("_", "-");
+ const replacedLanguage = values.language.replace("_", "-");
- // save local in window.__ something
- window.__localeId__ = replacedLocale;
- store.set("language", replacedLanguage);
- store.set("locale", replacedLocale);
- console.log("Ready with bootstrap for this page.");
- loadTranslations(replacedLanguage, replacedLocale).then(function () {
- window.i18next = i18next;
- const event = new Event("firefly-iii-bootstrapped");
- document.dispatchEvent(event);
- window.bootstrapped = true;
- // console.log('Bootstrapped!');
+ // save local in window.__ something
+ window.__localeId__ = replacedLocale;
+ store.set("language", replacedLanguage);
+ store.set("locale", replacedLocale);
+ console.log("Ready with bootstrap for this page.");
+ loadTranslations(replacedLanguage, replacedLocale).then(function () {
+ window.i18next = i18next;
+ const event = new Event("firefly-iii-bootstrapped");
+ document.dispatchEvent(event);
+ window.bootstrapped = true;
+ // console.log('Bootstrapped!');
- // page may have an introduction necessary to be played.
- if (!window.showTour) {
- return;
- }
- const url = "/";
- let site = axios.create({
- baseURL: url,
- withCredentials: true,
- });
- axios.defaults.withCredentials = true;
- axios.defaults.baseURL = url;
+ // page may have an introduction necessary to be played.
+ if (!window.showTour) {
+ return;
+ }
+ const url = "/";
+ let site = axios.create({
+ baseURL: url,
+ withCredentials: true,
+ });
+ axios.defaults.withCredentials = true;
+ axios.defaults.baseURL = url;
- site.get(window.routeStepsUrl).then(function (data) {
- let hints = data.data;
+ site.get(window.routeStepsUrl).then(function (data) {
+ let hints = data.data;
- const tour = new Shepherd.Tour({
- useModalOverlay: true,
- defaultStepOptions: {
- // classes: 'shadow-md bg-purple-dark',
- scrollTo: true,
- cancelIcon: {
- enabled: true,
- },
+ const tour = new Shepherd.Tour({
+ useModalOverlay: true,
+ defaultStepOptions: {
+ // classes: 'shadow-md bg-purple-dark',
+ scrollTo: true,
+ cancelIcon: {
+ enabled: true,
},
- });
- // cancel or complete
- tour.on("cancel", () => {
- site.post(window.routeForFinishedTour);
- });
- tour.on("complete", () => {
- site.post(window.routeForFinishedTour);
- });
+ },
+ });
+ // cancel or complete
+ tour.on("cancel", () => {
+ site.post(window.routeForFinishedTour);
+ });
+ tour.on("complete", () => {
+ site.post(window.routeForFinishedTour);
+ });
- for (let i = 0; i < hints.length; i++) {
- if (Object.hasOwn(hints, i)) {
- let hint = hints[i];
+ for (let i = 0; i < hints.length; i++) {
+ if (Object.hasOwn(hints, i)) {
+ let hint = hints[i];
- let buttons = [];
- if (i > 0) {
- buttons.push({
- text: i18next.t("firefly.intro_prev_label"),
- action: tour.back,
- });
- }
- if (i < hints.length - 1) {
- buttons.push({
- text: i18next.t("firefly.intro_next_label"),
- action: tour.next,
- });
- }
- if (i === hints.length - 1) {
- // console.log("Add complete");
- buttons.push({
- text: i18next.t("firefly.intro_done_label"),
- action: tour.complete,
- });
- }
+ let buttons = [];
+ if (i > 0) {
+ buttons.push({
+ text: i18next.t("firefly.intro_prev_label"),
+ action: tour.back,
+ });
+ }
+ if (i < hints.length - 1) {
+ buttons.push({
+ text: i18next.t("firefly.intro_next_label"),
+ action: tour.next,
+ });
+ }
+ if (i === hints.length - 1) {
+ // console.log("Add complete");
+ buttons.push({
+ text: i18next.t("firefly.intro_done_label"),
+ action: tour.complete,
+ });
+ }
- let step = {
- // id: 'example-step',
- text: hint.text,
- buttons: buttons,
+ let step = {
+ // id: 'example-step',
+ text: hint.text,
+ buttons: buttons,
+ };
+ if (Object.hasOwn(hint, "element")) {
+ step.attachTo = {
+ element: hint.element,
+ on: hint.position,
};
- if (Object.hasOwn(hint, "element")) {
- step.attachTo = {
- element: hint.element,
- on: hint.position,
- };
- }
- tour.addStep(step);
}
+ tour.addStep(step);
}
- tour.start();
- });
+ }
+ tour.start();
});
- },
- );
+ });
+ });
});
diff --git a/resources/assets/v3/js/pages/accounts/index.js b/resources/assets/v3/js/pages/accounts/index.js
index 0785904f35..c74782a4d8 100644
--- a/resources/assets/v3/js/pages/accounts/index.js
+++ b/resources/assets/v3/js/pages/accounts/index.js
@@ -72,7 +72,7 @@ let index = function () {
}
},
init() {
- this.anonymous = window.store.get('anonymous');
+ this.anonymous = window.store.get("anonymous");
this.handleFunc = this.handlePageClick.bind(this);
const page = window.location.href.split("?")[0].split("/");
if ("inactive-accounts" === page[page.length - 2]) {
@@ -166,32 +166,46 @@ let index = function () {
let current = response.data.data[i];
// collect sums, debts and differences for each account (in primary or not):
- this.sums[current.attributes.currency_code] = this.sums[current.attributes.currency_code] || 0;
- this.sums[current.attributes.primary_currency_code] = this.sums[current.attributes.primary_currency_code] || 0;
- this.debts[current.attributes.currency_code] = this.debts[current.attributes.currency_code] || 0;
- this.debts[current.attributes.primary_currency_code] = this.debts[current.attributes.primary_currency_code] || 0;
- this.differences[current.attributes.currency_code] = this.differences[current.attributes.currency_code] || 0;
- this.differences[current.attributes.primary_currency_code] = this.differences[current.attributes.primary_currency_code] || 0;
+ this.sums[current.attributes.currency_code] =
+ this.sums[current.attributes.currency_code] || 0;
+ this.sums[current.attributes.primary_currency_code] =
+ this.sums[current.attributes.primary_currency_code] || 0;
+ this.debts[current.attributes.currency_code] =
+ this.debts[current.attributes.currency_code] || 0;
+ this.debts[current.attributes.primary_currency_code] =
+ this.debts[current.attributes.primary_currency_code] || 0;
+ this.differences[current.attributes.currency_code] =
+ this.differences[current.attributes.currency_code] || 0;
+ this.differences[current.attributes.primary_currency_code] =
+ this.differences[current.attributes.primary_currency_code] || 0;
// overrule some amounts, set them to zero when "this.anonymous" is true.
if (this.anonymous) {
- current.attributes.balance_difference = '0';
- current.attributes.current_balance = '0';
- current.attributes.debt_amount = '0';
- current.attributes.pc_balance_difference = '0';
- current.attributes.pc_current_balance = '0';
- current.attributes.pc_debt_amount = '0';
+ current.attributes.balance_difference = "0";
+ current.attributes.current_balance = "0";
+ current.attributes.debt_amount = "0";
+ current.attributes.pc_balance_difference = "0";
+ current.attributes.pc_current_balance = "0";
+ current.attributes.pc_debt_amount = "0";
}
-
-
- let balanceDifference = formatMoney(current.attributes.balance_difference, current.attributes.currency_code, true,);
+ let balanceDifference = formatMoney(
+ current.attributes.balance_difference,
+ current.attributes.currency_code,
+ true,
+ );
let balanceDiffFloat = parseFloat(current.attributes.balance_difference);
- let currentBalance = formatMoney(current.attributes.current_balance, current.attributes.currency_code,);
+ let currentBalance = formatMoney(
+ current.attributes.current_balance,
+ current.attributes.currency_code,
+ );
let currentBalanceFloat = parseFloat(current.attributes.current_balance);
- let currentDebt = formatMoney(current.attributes.debt_amount, current.attributes.currency_code,);
+ let currentDebt = formatMoney(
+ current.attributes.debt_amount,
+ current.attributes.currency_code,
+ );
let currentDebtFloat = parseFloat(current.attributes.debt_amount);
// this.sums[current.attributes.currency_code] += currentBalanceFloat;
diff --git a/resources/assets/v3/js/pages/transactions/show.js b/resources/assets/v3/js/pages/transactions/show.js
index e66de7ef00..512449e11e 100644
--- a/resources/assets/v3/js/pages/transactions/show.js
+++ b/resources/assets/v3/js/pages/transactions/show.js
@@ -76,7 +76,6 @@ let show = function () {
);
L.marker([lat, lng]).addTo(map);
-
});
},
downloadTransactionGroup() {
diff --git a/resources/assets/v3/js/pages/webhooks/show.js b/resources/assets/v3/js/pages/webhooks/show.js
index df518d5479..7351ad101b 100644
--- a/resources/assets/v3/js/pages/webhooks/show.js
+++ b/resources/assets/v3/js/pages/webhooks/show.js
@@ -77,18 +77,20 @@ let show = function () {
if (journalId !== null && journalId > 0 && journalId <= 16777216) {
this.disabledTrigger = true;
this.loading = true;
- new Post().triggerTransaction(this.id, journalId).then(() => {
- this.success_message = i18next.t("firefly.webhook_was_triggered");
- this.getWebhook();
- this.loading = false;
- this.disabledTrigger = false;
- }).catch((e) => {
- this.getWebhook();
- this.loading = false;
- this.error_message = i18next.t("firefly.webhook_triggered_error") + ' ' + e;
- this.disabledTrigger = false;
- });
-
+ new Post()
+ .triggerTransaction(this.id, journalId)
+ .then(() => {
+ this.success_message = i18next.t("firefly.webhook_was_triggered");
+ this.getWebhook();
+ this.loading = false;
+ this.disabledTrigger = false;
+ })
+ .catch((e) => {
+ this.getWebhook();
+ this.loading = false;
+ this.error_message = i18next.t("firefly.webhook_triggered_error") + " " + e;
+ this.disabledTrigger = false;
+ });
// console.log('OK 3');
}
diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php
index 741f50aa39..34c4177b21 100644
--- a/resources/lang/en_US/firefly.php
+++ b/resources/lang/en_US/firefly.php
@@ -285,7 +285,7 @@ return [
'edit_webhook_js' => 'Edit webhook "{title}"',
'show_webhook' => 'Webhook ":title"',
'webhook_was_triggered' => 'The webhook was triggered on the indicated transaction. Please wait for results to appear.',
- 'webhook_triggered_error' => 'The webhook could not be triggered.',
+ 'webhook_triggered_error' => 'The webhook could not be triggered.',
'webhook_messages' => 'Webhook message',
'view_message' => 'View message',
'view_attempts' => 'View failed attempts',