Class CreateVoucherServiceImpl
java.lang.Object
ch.tocco.nice2.optional.finance.impl.util.CreateVoucherServiceImpl
- All Implemented Interfaces:
CreateVoucherService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.finance.api.util.CreateVoucherService
CreateVoucherService.VoucherTypeDefaultValues
-
Constructor Summary
ConstructorDescriptionCreateVoucherServiceImpl
(VoucherService voucherService, UriResolver uriResolver, DefaultDisplayService defaultDisplayService, QueryBuilderFactory queryBuilderFactory, Context context) -
Method Summary
Modifier and TypeMethodDescriptiongetBruttoNettoMwst
(BigDecimal amount, org.joda.time.LocalDate voucherDate, String roundingEntityUri, @Nullable String vatCodeUri) getComboBoxValues
(@Nullable Entity entity) getFormValuesOnVoucherTypeChange
(Map<String, Object> values)
-
Constructor Details
-
CreateVoucherServiceImpl
public CreateVoucherServiceImpl(VoucherService voucherService, UriResolver uriResolver, DefaultDisplayService defaultDisplayService, QueryBuilderFactory queryBuilderFactory, Context context)
-
-
Method Details
-
getFormValuesOnVoucherTypeChange
public CreateVoucherService.VoucherTypeDefaultValues getFormValuesOnVoucherTypeChange(Map<String, Object> values) throws UnresolvableUriException, UriStoreException, PersistException, URISyntaxException- Specified by:
getFormValuesOnVoucherTypeChange
in interfaceCreateVoucherService
- Throws:
UnresolvableUriException
UriStoreException
PersistException
URISyntaxException
-
getBruttoNettoMwst
public VoucherService.VoucherTotals getBruttoNettoMwst(BigDecimal amount, org.joda.time.LocalDate voucherDate, String roundingEntityUri, @Nullable @Nullable String vatCodeUri) throws UnresolvableUriException, UriStoreException, URISyntaxException, PersistException - Specified by:
getBruttoNettoMwst
in interfaceCreateVoucherService
- Throws:
UnresolvableUriException
UriStoreException
URISyntaxException
PersistException
-
getComboBoxValues
- Specified by:
getComboBoxValues
in interfaceCreateVoucherService
-