Skip to content

Commit

Permalink
version 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zp1ke committed Jun 25, 2024
1 parent 4d5af15 commit 618ed80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.3]

### Added

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

## [0.0.2]

### Changed
Expand Down
4 changes: 4 additions & 0 deletions lib/src/sale.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ class Sale implements Sellable {
return subtotal + tax + tip;
}

List<Item> get itemsWithSaleDiscount {
return _items;
}

List<Item> get _items {
if (discount == null) {
return items;
Expand Down

0 comments on commit 618ed80

Please sign in to comment.