mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
Can no longer set a budget to an expense.
This commit is contained in:
@@ -150,7 +150,15 @@ class JournalUpdateService
|
|||||||
foreach ($journal->transactions as $transaction) {
|
foreach ($journal->transactions as $transaction) {
|
||||||
$service->updateBudget($transaction, $budgetId);
|
$service->updateBudget($transaction, $budgetId);
|
||||||
}
|
}
|
||||||
|
return $journal;
|
||||||
}
|
}
|
||||||
|
// clear budget.
|
||||||
|
/** @var Transaction $transaction */
|
||||||
|
foreach ($journal->transactions as $transaction) {
|
||||||
|
$transaction->budgets()->sync([]);
|
||||||
|
}
|
||||||
|
// remove budgets from journal:
|
||||||
|
$journal->budgets()->sync([]);
|
||||||
|
|
||||||
return $journal;
|
return $journal;
|
||||||
}
|
}
|
||||||
|
@@ -126,7 +126,7 @@ class ProfileControllerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\ProfileControllerAccount
|
* @covers \FireflyIII\Http\Controllers\ProfileController
|
||||||
*/
|
*/
|
||||||
public function testDeleteAccount(): void
|
public function testDeleteAccount(): void
|
||||||
{
|
{
|
||||||
@@ -141,7 +141,7 @@ class ProfileControllerTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @covers \FireflyIII\Http\Controllers\ProfileControllerCode
|
* @covers \FireflyIII\Http\Controllers\ProfileController
|
||||||
*/
|
*/
|
||||||
public function testDeleteCode(): void
|
public function testDeleteCode(): void
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user