Work on the new Journals. Just saving things while they are working well.

This commit is contained in:
Scott Idem
2025-03-21 11:03:38 -04:00
parent 596986afb7
commit 35354a9d0f
10 changed files with 630 additions and 118 deletions

View File

@@ -165,6 +165,11 @@ export async function create_ae_obj__journal_entry(
console.log(`*** create_ae_obj__journal_entry() *** journal_id=${journal_id}`);
}
if (!journal_id) {
console.log(`ERROR: Journals - Entry - journal_id required to create`);
return false;
}
ae_promises.create__journal_entry = await api.create_ae_obj_crud({
api_cfg: api_cfg,
obj_type: 'journal_entry',
@@ -348,9 +353,10 @@ export async function db_save_ae_obj_li__journal_entry(
person_id: obj.person_id_random,
activity: obj.activity,
category: obj.category,
topic: obj.topic,
activity_code: obj.activity_code,
category_code: obj.category_code,
type_code: obj.type_code,
topic_code: obj.topic_code,
public: obj.public,
private: obj.private,