Crate baggins

Source
Expand description

baggins

baggins provides a series of utilities to easily and efficiently calculate sales operations. Due to the nature of monetary calculations, the Bigdecimal crate is used as a backend.

The focus is on ease of use and learning Rust, so there are many opportunities for improvement.

baggins provee una serie de utilidades para calcular facil y eficientemente totales y subtotales de lineas de detalle de procesos de venta. El foco está en la facilidad de uso y en aprender Rust, por lo que hay muchas oportunidades de mejora.

Modules§

discount
discount
tax
tax

Structs§

Calculation
CalculationWithDiscount
will contain the result of the computing of the specified subtotal
CalculationWithoutDiscount
will contain the result of the computing of the specified subtotal without discounts
DetailCalculator

Enums§

BagginsError
The error type for baggins operations - El tipo de error para operaciones de baggins

Traits§

Calculator

Functions§

hundred
handy utility to get 100.0 as BigDecimal
inverse
handy utility to get -1.0 as BigDecimal
one
handy utility to get 1.0 as BigDecimal
zero
handy utility to get 0.0 as BigDecimal. Just a wrapper for zero()