Class AbstractAccountingMethod
java.lang.Object
ch.tocco.nice2.optional.finance.api.service.accountingmethod.AbstractAccountingMethod
- All Implemented Interfaces:
AccountingMethod
- Direct Known Subclasses:
BruttoAccountingMethodImpl
,NettoAccountingMethodImpl
-
Constructor Summary
ConstructorDescriptionAbstractAccountingMethod
(BusinessUnitManager businessUnitManager, ActiveVatRateService activeVatRateService) -
Method Summary
Modifier and TypeMethodDescriptioncreateAccountings
(List<Entity> vouchers, String voucherAmountField, boolean negateAmount) protected abstract void
setVatAccount
(AccountingService.Accounting accounting, @Nullable Integer debitAccount, @Nullable Integer creditAccount, @Nullable Integer vatAccountNr, String voucherType) 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.optional.finance.api.service.accountingmethod.AccountingMethod
createExclusiveAccoutings, createInclusiveAccountings, getMethodName
-
Constructor Details
-
AbstractAccountingMethod
public AbstractAccountingMethod(BusinessUnitManager businessUnitManager, ActiveVatRateService activeVatRateService)
-
-
Method Details
-
createAccountings
public List<AccountingService.Accounting> createAccountings(List<Entity> vouchers, String voucherAmountField, boolean negateAmount) -
setVatAccount
protected abstract void setVatAccount(AccountingService.Accounting accounting, @Nullable @Nullable Integer debitAccount, @Nullable @Nullable Integer creditAccount, @Nullable @Nullable Integer vatAccountNr, String voucherType)
-