This commit is contained in:
James Cole 2018-05-26 07:53:32 +02:00
parent 664451d0c6
commit 551ff109c9
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 6 additions and 1 deletions

View File

@ -164,6 +164,7 @@ class BillController extends Controller
$preFilled = [ $preFilled = [
'notes' => $this->billRepository->getNoteText($bill), 'notes' => $this->billRepository->getNoteText($bill),
'transaction_currency_id' => $bill->transaction_currency_id, 'transaction_currency_id' => $bill->transaction_currency_id,
'active' => $bill->active,
]; ];
$request->session()->flash('preFilled', $preFilled); $request->session()->flash('preFilled', $preFilled);

View File

@ -29,10 +29,14 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\HasMany; use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\SoftDeletes;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use FireflyIII\Models\Attachment;
/** /**
* Class Bill. * Class Bill.
*
* @property bool $active
* @property int $transaction_currency_id
* @property string $amount_min
* @property string $amount_max
*/ */
class Bill extends Model class Bill extends Model
{ {