From a2299b0bae21c8f05f091732a78fc250cbd5e016 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 28 Sep 2025 17:41:50 +0200 Subject: openAI invoice importing v0.1 --- docs/CHANGES.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'docs/CHANGES.rst') diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 157b56e..1a46011 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -1,7 +1,25 @@ .. _changes: TODO: +for invoice importing using AI: + 4. find billing item tax rate based on paid tax vs total + 6. set document original and copy path (save file to zip first) + 7. create a new invoice ID + + 8. call ai_document_to_invoice in a thread & create a new UI page to show loading screen. + The user should not be able to add/update existing invoices but they can navigate to other screens + and come back to the loading screen. +- retrieve available balance from AI api & show in settings/services. +- let user choose the model to use in settings/services/ai +- real error logging for OpenAI and importing in general +- when importing an invoice: do not accept invoices for unsupported countries (yet) + +- log_set_depth function so data can be grouped +- move string function out of openAI.cpp into strops.cpp +- log elapsed time for ai requests - refactor _add functions to use _import functions +- _import functions should not check for validity and should never fail because of invalid data +- invalid invoices should be marked in the UI - write tests that check error handling for corrupt files. (e.g. references to tax rates, project and cost center that failed to load) - it is possible a referenced tax rate is loaded after an invoice is loaded. This means all invoices need to be recalculated after file load. (try to write a test for this). - invoice sequential number should be modifyable & checked for uniqueness (for external invoices being imported) -- cgit v1.2.3-70-g09d2