mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Can no longer set a budget to an expense.
This commit is contained in:
parent
51b11e5188
commit
b1b13d3696
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user