Fix storage bug in #845

This commit is contained in:
James Cole
2017-09-15 06:26:09 +02:00
parent 519ca4b2af
commit 38bb074751
2 changed files with 28 additions and 3 deletions

View File

@@ -173,6 +173,10 @@ class ImportStorage
// store meta object things:
$this->storeCategory($journal, $importJournal->category->getCategory());
$this->storeBudget($journal, $importJournal->budget->getBudget());
// to save bill, also give it the amount:
$importJournal->bill->setAmount($amount);
$this->storeBill($journal, $importJournal->bill->getBill());
$this->storeMeta($journal, $importJournal->metaDates);
$journal->setMeta('notes', $importJournal->notes);