test data

This commit is contained in:
2021-02-15 19:01:51 +09:00
parent d521a0e593
commit fd20fb8725

View File

@@ -91,7 +91,8 @@ class FinanceHelper {
* where we can. * where we can.
*/ */
if($pageFailed == false) { if($pageFailed == false) {
$wallet = json_decode($journals->raw, false); //Decode the json data, and return it as an array
$wallet = json_decode($journals->raw, true);
//Foreach journal entry, add the journal entry to the table //Foreach journal entry, add the journal entry to the table
@@ -136,6 +137,7 @@ class FinanceHelper {
if(isset($entry['tax_receiver_id'])) { if(isset($entry['tax_receiver_id'])) {
$awj->tax_receiver_id = $entry['tax_receiver_id']; $awj->tax_receiver_id = $entry['tax_receiver_id'];
} }
$awj-save();
} }