Skip to content

Latest commit

 

History

History
59 lines (33 loc) · 1.14 KB

CHANGELOG.md

File metadata and controls

59 lines (33 loc) · 1.14 KB

Changelog

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[0.0.8]

Fixed

  • Using fold instead of reduce function to avoid error on empty sales.

[0.0.7]

Added

  • Calculation of sale discount value for subtotal amount (discountAmountOfSaleAffectingSubtotal).

[0.0.6]

Added

  • Sellable get tax amount by a group of codes (taxOfCodes).

[0.0.5]

Added

  • Taxes equality by code.

[0.0.4]

Fixes

  • Discounts calculations cannot be negative.

[0.0.3]

Added

  • Obtain list of products with sale discount included (itemsWithSaleDiscount).

[0.0.2]

Changed

  • Discount property affectTax renamed to affectSubtotalBeforeTaxes to clarify purpose.
  • Tax property affectTax renamed to affectNextTaxSubtotal to clarify purpose.

[0.0.1]

Added

  • Discount data model with calculation methods.
  • Tax data model with calculation methods.
  • Item data model with calculation methods.
  • Sale data model with calculation methods.
  • Example for SRI invoice (Ecuador).