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
ConstructorDescriptionDebitorDunningCompensationTask
(VoucherService voucherService, ActiveVatRateService activeVatRateService, VatReverseCalculationService vatReverseCalculationService) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.OptionalTask
run
Methods inherited from interface ch.tocco.nice2.persist.core.api.exec.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:
doRun
in interfaceOptionalTask<Entity,
Entity> - Throws:
PersistException
InterruptedException
-