Aggiunta gestione export csv

This commit is contained in:
rexeref committed 2026-10-10 20:40:24 +02:00
1 parent 8b5b690435
commit 8cd79da5eb
8 files changed
+376 -42

No files matched your search

+5 -2
View File
@@ -33,13 +33,16 @@ int consumeProductInventory(const char *fname, const char *name, int qty);
int getCount(const char *fname, const char *name);
void listSold(const char *fname);
int addSold(const char *fname, const char *name, int qty);
int updateSold(const char *fname, const char *name, int qty);
int deleteSold(const char *fname, const char *name);
int deleteSold(const char *productsFile, const char *soldFile, const char *name);
int updateSold(const char *productsFile, const char *soldFile, const char *name, int qty);
int recordSale(const char *productsFile, const char *soldFile, const char *name, int qty);
/* Entrate */
double getTotalRevenue(const char *productsFile, const char *soldFile);
/* Export */
int exportSalesToCsv(const char *productsFile, const char *soldFile, const char *outFile);
/* Config */
int ensureAppConfig(const char *fname);
int loadAppConfig(const char *fname);