Working ability to create new Journals
This commit is contained in:
@@ -202,7 +202,7 @@ export async function load_ae_obj_li__journal(
|
||||
}
|
||||
|
||||
|
||||
// Updated 2025-03-15
|
||||
// Updated 2025-03-24
|
||||
export async function create_ae_obj__journal(
|
||||
{
|
||||
api_cfg,
|
||||
@@ -224,6 +224,11 @@ export async function create_ae_obj__journal(
|
||||
console.log(`*** create_ae_obj__journal() *** account_id=${account_id}`);
|
||||
}
|
||||
|
||||
if (!account_id) {
|
||||
console.log(`ERROR: Journals - Journal - account_id required to create`);
|
||||
return false;
|
||||
}
|
||||
|
||||
ae_promises.create__journal = await api.create_ae_obj_crud({
|
||||
api_cfg: api_cfg,
|
||||
obj_type: 'journal',
|
||||
|
||||
@@ -57,6 +57,7 @@ let journals_session_data_struct: key_val = {
|
||||
// trigger__journal_li: null,
|
||||
|
||||
show__modal_edit__journal_id: false,
|
||||
show__modal_new__journal_obj: false,
|
||||
show__modal_view__journal_id: null,
|
||||
show_list__journal_entry_li_group: true,
|
||||
show__modal_view__journal_entry_id: null,
|
||||
@@ -65,6 +66,9 @@ let journals_session_data_struct: key_val = {
|
||||
journal: {
|
||||
edit: false,
|
||||
edit_kv: {},
|
||||
|
||||
new_journal_name: '',
|
||||
new_journal_type_code: '',
|
||||
},
|
||||
entry: {
|
||||
edit: false,
|
||||
|
||||
Reference in New Issue
Block a user