Skip to content

Commit

Permalink
preparing next version
Browse files Browse the repository at this point in the history
  • Loading branch information
zp1ke committed May 21, 2024
1 parent 11db5d5 commit 035f9e1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.0.1]

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Test](https://github.com/h4j4x/salert/actions/workflows/test.yml/badge.svg)](https://github.com/h4j4x/salert/actions/workflows/test.yml)

Library for sales data calculations.
A library for efficient sales amounts calculations, including discounts, subtotal before taxes, taxes and total amounts.

## Features

Expand Down
3 changes: 3 additions & 0 deletions lib/src/discount.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ import 'dart:math';
class Discount {
/// Amount for calculations.
final double amount;

/// Unitary applies calculation for every item.
final bool isUnitary;

/// If amount represents a percentage.
final bool isPercentage;

/// True if applies before taxes.
final bool affectTax;

Expand Down
2 changes: 0 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ repository: https://github.com/h4j4x/salert
environment:
sdk: ^3.4.0

dependencies:

dev_dependencies:
lints: ^4.0.0
test: any

0 comments on commit 035f9e1

Please sign in to comment.