Updates the invoice status of the invoice, which belongs to passed invoice transaction.
Syntax
void
setInvoiceStatus
(
final long
trxId
,
final Long
actorId
,
final int
InvoiceStatus
) throws MobiliserServiceException, DataAccessException, TransactionException
Parameters
-
trxId –
the invoice transaction that belongs to the invoice that should be updated.
-
actorId –
the authenticated user
-
InvoiceStatus –
the new invoice status.
Exceptions
-
MobiliserServiceException –
if initializing the transaction fails for some reason (business rules)
-
DataAccessException –
if some error occurs communicating / writing / reading persistent storage
-
TransactionException –
if some error occurs while handling the transactions related to persistent storage
Usage
The status will be updated without any further checking.