Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 2.07 KB

File metadata and controls

42 lines (25 loc) · 2.07 KB

< Return to Overview

Business-to-consumer Tax Calculation (TaxNet) (business-to-consumer-tax-calculation-net)

Tax calculation when the customer is of type Person (business-to-consumer), when the seller has taxMode TaxNet

Required if system provides consumer VAT receipts, for the relevant tax mode

https://www.openactive.io/open-booking-api/EditorsDraft/#business-to-consumer-tax-calculation-by-booking-system-is-mandatory

Coverage Status: complete

Test prerequisites - Opportunities

Opportunities that match the following criteria must exist in the booking system (for each configured bookableOpportunityTypesInScope) for the configured primary Seller in order to use useRandomOpportunities: true. Alternatively the following testOpportunityCriteria values must be supported by the test interface of the booking system for useRandomOpportunities: false.

TestOpportunityBookableNonFreeTaxNet x4

Running tests for only this feature

npm start -- --runInBand test/features/tax/business-to-consumer-tax-calculation-net/

'Implemented' tests

Update default.json within packages/openactive-integration-tests/config/ as follows to enable 'Implemented' testing for this feature:

"implementedFeatures": {
  ...
  "business-to-consumer-tax-calculation-net": true,
  ...
}
Identifier Name Description Prerequisites per Opportunity Type Required Test Interface Actions
business-to-consumer-tax-calculation-net Business-to-consumer tax calculation (net) The totals of totalPaymentTax should match the sum of the unitTaxSpecification, and the totalPaymentDue.price should equal the total of all acceptedOffer.price PLUS TotalPaymentTax.price. TestOpportunityBookableNonFreeTaxNet x4