The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Using
fold
instead ofreduce
function to avoid error on empty sales.
- Calculation of sale discount value for subtotal amount (discountAmountOfSaleAffectingSubtotal).
- Sellable get tax amount by a group of codes (taxOfCodes).
- Taxes equality by code.
- Discounts calculations cannot be negative.
- Obtain list of products with sale discount included (itemsWithSaleDiscount).
- Discount property affectTax renamed to affectSubtotalBeforeTaxes to clarify purpose.
- Tax property affectTax renamed to affectNextTaxSubtotal to clarify purpose.
- 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).