2026-04-09 13:10:47 +02:00
|
|
|
|
select *
|
|
|
|
|
|
from lg_app_log
|
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
--truncate table lg_app_log;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2026-05-04 10:15:18 +02:00
|
|
|
|
Test Calls f<EFBFBD>r logs
|
2026-04-09 13:10:47 +02:00
|
|
|
|
*/
|
|
|
|
|
|
begin
|
2026-05-04 10:15:18 +02:00
|
|
|
|
-- Neuen Batch-Ordner f<>r heutigen Import anlegen
|
2026-04-09 13:10:47 +02:00
|
|
|
|
pck_net_storage.p_create_folder(
|
|
|
|
|
|
i_prefix => 'testmandant-42/Eingang/Verarbeitet 2026/'
|
|
|
|
|
|
,i_folder_name => 'Batch-2026-04-09'
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
-- Drei PDFs kommen im Import an
|
|
|
|
|
|
pck_net_storage.p_upload_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/scan_001.pdf'
|
|
|
|
|
|
,i_content => empty_blob()
|
|
|
|
|
|
,i_content_type => 'application/pdf'
|
|
|
|
|
|
);
|
|
|
|
|
|
pck_net_storage.p_upload_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/scan_002.pdf'
|
|
|
|
|
|
,i_content => empty_blob()
|
|
|
|
|
|
,i_content_type => 'application/pdf'
|
|
|
|
|
|
);
|
|
|
|
|
|
pck_net_storage.p_upload_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/scan_003.pdf'
|
|
|
|
|
|
,i_content => empty_blob()
|
|
|
|
|
|
,i_content_type => 'application/pdf'
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
-- Scans werden nach Sichtung benannt
|
|
|
|
|
|
pck_net_storage.p_rename_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/scan_001.pdf'
|
|
|
|
|
|
,i_new_name => 'rechnung_mueller_2026-04.pdf'
|
|
|
|
|
|
);
|
|
|
|
|
|
pck_net_storage.p_rename_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/scan_002.pdf'
|
|
|
|
|
|
,i_new_name => 'angebot_huber_2026-04.pdf'
|
|
|
|
|
|
);
|
|
|
|
|
|
|
2026-05-04 10:15:18 +02:00
|
|
|
|
-- scan_003 ist ein Duplikat, wird gel<65>scht
|
2026-04-09 13:10:47 +02:00
|
|
|
|
pck_net_storage.p_delete_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/scan_003.pdf'
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
-- Verarbeitete Dateien in den Batch-Ordner verschieben
|
|
|
|
|
|
pck_net_storage.p_move_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/rechnung_mueller_2026-04.pdf'
|
|
|
|
|
|
,i_target_prefix => 'testmandant-42/Eingang/Verarbeitet 2026/Batch-2026-04-09/'
|
|
|
|
|
|
);
|
|
|
|
|
|
pck_net_storage.p_move_object(
|
|
|
|
|
|
i_object_key => 'testmandant-42/Eingang/Import/angebot_huber_2026-04.pdf'
|
|
|
|
|
|
,i_target_prefix => 'testmandant-42/Eingang/Verarbeitet 2026/Batch-2026-04-09/'
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
commit;
|
|
|
|
|
|
end;
|
|
|
|
|
|
/
|