From 551ff109c98eb904ee527319d94b91aabe47fe96 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 26 May 2018 07:53:32 +0200 Subject: [PATCH] Fixed #1403 --- app/Http/Controllers/BillController.php | 1 + app/Models/Bill.php | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/BillController.php b/app/Http/Controllers/BillController.php index 8fcb18777f..bbb5a96234 100644 --- a/app/Http/Controllers/BillController.php +++ b/app/Http/Controllers/BillController.php @@ -164,6 +164,7 @@ class BillController extends Controller $preFilled = [ 'notes' => $this->billRepository->getNoteText($bill), 'transaction_currency_id' => $bill->transaction_currency_id, + 'active' => $bill->active, ]; $request->session()->flash('preFilled', $preFilled); diff --git a/app/Models/Bill.php b/app/Models/Bill.php index e42126e39d..bf4c01ff12 100644 --- a/app/Models/Bill.php +++ b/app/Models/Bill.php @@ -29,10 +29,14 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\SoftDeletes; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; -use FireflyIII\Models\Attachment; /** * Class Bill. + * + * @property bool $active + * @property int $transaction_currency_id + * @property string $amount_min + * @property string $amount_max */ class Bill extends Model {