Uses of Class
jku.se.Invoice
Packages that use Invoice
-
Uses of Invoice in jku.se
Modifier and TypeMethodDescriptionAdministrator.viewAllInvoices()
Retrieves all invoices stored in the system (visible to admins only).User.viewAllInvoices()
Gets all invoices submitted by this user (fetched from the repository).User.viewHistory()
Gets the invoice history (locally stored in the user object).Modifier and TypeMethodDescriptionvoid
Administrator.approveInvoice
(Invoice invoice) Approves an invoice by setting its status to APPROVED and updating the database.void
Administrator.correctInvoice
(Invoice invoice, double newAmount, Category newCategory, LocalDate newDate) Corrects invoice data such as amount, category, or date.void
Administrator.declinedInvoice
(Invoice invoice) Declines an invoice by setting its status to DECLINED and updating the database.static boolean
AnomalyDetection.detectMismatch
(Invoice invoice) Detects mismatches between OCR-extracted fields and actual invoice fields. -
Uses of Invoice in jku.se.repository
Methods in jku.se.repository that return types with arguments of type InvoiceModifier and TypeMethodDescriptionInvoiceRepository.getAcceptedInvoicesCurrentMonth
(String userEmail) Retrieves all accepted invoices for a user in the current month.InvoiceRepository.getAllInvoicesAdmin()
Retrieves all invoices from the database.InvoiceRepository.getAllInvoicesUser
(String userEmail) Retrieves all invoices for a given user.InvoiceRepository.getDeclinedInvoicesCurrentMonth
(String userEmail) Retrieves all declined invoices for a user in the current month.Methods in jku.se.repository with parameters of type InvoiceModifier and TypeMethodDescriptionstatic void
InvoiceRepository.deleteInvoice
(Invoice invoice) Deletes a specific invoice from the database.static void
InvoiceRepository.updateInvoice
(Invoice invoice) Updates all editable fields of an invoice.static void
InvoiceRepository.updateInvoiceAmount
(Invoice invoice) Updates the invoice amount in the database.static void
InvoiceRepository.updateInvoiceCategory
(Invoice invoice) Updates the invoice category in the database.static void
InvoiceRepository.updateInvoiceDate
(Invoice invoice) Updates the invoice date in the database.static void
InvoiceRepository.updateInvoiceReimbursement
(Invoice invoice) Updates the invoice reimbursement value in the database.static void
InvoiceRepository.updateInvoiceStatus
(Invoice invoice) Updates the invoice status in the database.