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
ConstructorsConstructorDescriptionCreateVoucherServiceImpl(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:
getFormValuesOnVoucherTypeChangein interfaceCreateVoucherService- Throws:
UnresolvableUriExceptionUriStoreExceptionPersistExceptionURISyntaxException
-
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:
getBruttoNettoMwstin interfaceCreateVoucherService- Throws:
UnresolvableUriExceptionUriStoreExceptionURISyntaxExceptionPersistException
-
getComboBoxValues
- Specified by:
getComboBoxValuesin interfaceCreateVoucherService
-