VAT changes
almost 2 years ago by Ralph Heeringa
VAT OMS contract changes
- CalculatedShoppingCart
- SubTotalAmount removed (total - payment - shipping)
- VatRate value => 21 => 0.21m
- Added VatBreakdownItems collection
- CalculatedShoppingCartLine
- Changed TotalFromPrice (decimal) to TotalAmountFrom (decimal?)
- VatTotalAmount (decimal) (VAT applied to TotalAmount)
- VatTotalAmountFrom (decimal?) (VAT applied to TotalAmountFrom)
- VatRate value => 21 => 0.21m
- Order
- SubTotalAmount removed (total - payment - shipping)
- Added VatBreakdownItems collection
- Orderline
- Quantity removed (single line orders, was leftover)
- TotalAmount removed (Price == TotalAmount when there's no quantity)
- VatRate value => 21 => 0.21m
- PriceFrom (decimal?)
- VatPrice (decimal) (VAT applied to Price)
- VatPriceFrom (decimal?) (VAT applied to PriceFrom)
- VatBreakdownItem
- BreakdownType (enum: total, payment & shipping)
- Amount (decimal) => TotalAmount the breakdown is applied to
- VatAmount (decimal) => Amount VAT for the breakdown type
- VatRate (decimal) => VAT rate (f.e. 0.21m)
Example for VAT breakdown:
| Amount | BreakdownType | VatAmount | VatRate |
|---|---|---|---|
| 2.95 | Payment | 0.51 | 0.21 |
| 1.82 | Shipment | 0.32 | 0.21 |
| 0.68 | Shipment | 0.06 | 0.09 |
| 44.67 | Total | 7.75 | 0.21 |
| 16.63 | Total | 1.38 | 0.09 |
VAT DMS contract changes
- Product
- Price removed (ProductPricing should be used)
- FromPrice removed (ProductPricing should be used)
- BasePrice (decimal) added (f.e. Tweakwise feed)
- ProductPricing
- PriceInclVat (decimal) => Price (decimal)
- PriceFromInclVat (decimal) => PriceFrom (decimal?)
- PriceFromExclVat removed
- PriceExclVat removed
- VatRate value => 21 => 0.21m
- VatPrice (decimal) (VAT applied to price)
- VatPriceFrom (decimal) (VAT applied to pricefrom)