This commit is contained in:
James Cole
2023-11-23 06:13:28 +01:00
parent 47d8ab685d
commit bac0710a9c
2 changed files with 20 additions and 16 deletions

View File

@@ -90,7 +90,7 @@ class ShowController extends Controller
return redirect(route('bills.show', [$bill->id]));
}
$set = $this->repository->getRulesForBill($bill);
$set = $this->repository->getRulesForBill($bill);
if (0 === $set->count()) {
$request->session()->flash('error', (string)trans('firefly.no_rules_for_bill'));
@@ -142,6 +142,10 @@ class ShowController extends Controller
$manager->setSerializer(new DataArraySerializer());
$manager->parseIncludes(['attachments', 'notes']);
// add another period to end, could fix 8163
$range = app('navigation')->getViewRange(true);
$end = app('navigation')->addPeriod($end, $range);
// Make a resource out of the data and
$parameters = new ParameterBag();
$parameters->set('start', $start);