Skip to content

Commit

Permalink
[MODINVOICE-482] Fix from feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
damien-git committed Jan 31, 2024
1 parent 74ac5b5 commit e27df6c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,20 @@ public Future<Void> batchUpdate(List<Transaction> transactions, RequestContext r
}

public Future<Void> batchRelease(List<Transaction> transactions, RequestContext requestContext) {
// NOTE: we will have to use transactionPatches when it is available
// NOTE: we will have to use transactionPatches when it is available (see MODINVOICE-521)
transactions.forEach(tr -> tr.getEncumbrance().setStatus(Encumbrance.Status.RELEASED));
return batchUpdate(transactions, requestContext);
}

public Future<Void> batchUnrelease(List<Transaction> transactions, RequestContext requestContext) {
// NOTE: we will have to use transactionPatches when it is available
// NOTE: we will have to use transactionPatches when it is available (see MODINVOICE-521)
transactions.forEach(tr -> tr.getEncumbrance().setStatus(Encumbrance.Status.UNRELEASED));
return batchUpdate(transactions, requestContext);
}


public Future<Void> batchCancel(List<Transaction> transactions, RequestContext requestContext) {
// NOTE: we will have to use transactionPatches when it is available
// NOTE: we will have to use transactionPatches when it is available (see MODINVOICE-521)
transactions.forEach(tr -> tr.setInvoiceCancelled(true));
return batchUpdate(transactions, requestContext);
}
Expand Down

0 comments on commit e27df6c

Please sign in to comment.