Saving changes to the Journals and API CRUD V3 fixes.

This commit is contained in:
Scott Idem
2026-01-02 19:30:33 -05:00
parent 33d42ed85b
commit 6eb601f56d
6 changed files with 123 additions and 107 deletions

View File

@@ -373,24 +373,20 @@
if ($journals_loc.qry__category_code) {
data_kv.category_code = $journals_loc.qry__category_code;
}
$effect(() => {
if (log_lvl) {
console.log('Creating new journal entry with data_kv:', data_kv);
}
});
if (log_lvl) {
console.log('Creating new journal entry with data_kv:', data_kv);
}
journals_func
.create_ae_obj__journal_entry({
api_cfg: $ae_api,
journal_id: $lq__journal_obj.journal_id,
journal_id: $lq__journal_obj?.journal_id,
data_kv: data_kv,
log_lvl: log_lvl
})
.then((results) => {
$effect(() => {
if (log_lvl) {
console.log('New journal entry created:', results);
}
});
if (log_lvl) {
console.log('New journal entry created:', results);
}
$journals_slct.journal_entry_id = results?.journal_entry_id_random;
// $journals_loc.entry.edit = true;
$journals_loc.entry.edit_kv[$journals_slct.journal_entry_id] =