Class DebitorDunningCompensationTask
java.lang.Object
ch.tocco.nice2.optional.debitor.impl.service.DebitorDunningCompensationTask
- All Implemented Interfaces:
OptionalTask<Entity,Entity>, PersistTask<Entity, Entity>
task that checks if a debitor only has unpaid dunning expenses
if this is the case these dunning expenses will be compensated
-
Constructor Summary
ConstructorsConstructorDescriptionDebitorDunningCompensationTask(VoucherService voucherService, ActiveVatRateService activeVatRateService, VatReverseCalculationService vatReverseCalculationService) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OptionalTask
runMethods inherited from interface PersistTask
andThenDo, compose, compose2, composeWhen, discardResult, expand, expand, getDescription, ifElse, orWhen, orWhenNot, passWhen, passWhenNot, skipErrors, unwrap
-
Constructor Details
-
DebitorDunningCompensationTask
public DebitorDunningCompensationTask(VoucherService voucherService, ActiveVatRateService activeVatRateService, VatReverseCalculationService vatReverseCalculationService)
-
-
Method Details
-
doRun
public Entity doRun(Entity debitor, CommandContext commandContext) throws PersistException, InterruptedException - Specified by:
doRunin interfaceOptionalTask<Entity,Entity> - Throws:
PersistExceptionInterruptedException
-