salert

Creator: coderz1093

Last updated:

0 purchases

salert Image
salert Images
Add to Cart

Description:

salert

Salert #



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

Sales items calculations (discount, subtotal, taxes, total).
Sales calculations (discount, subtotal, taxes, total).

Usage #
Example for SRI invoice (Ecuador):
// VAT tax with 13%.
final vat = Tax(code: 'IVA13', unitValue: 13);
// Invoice item (product or service).
final item = Item(code: 'productX', quantity: 1, unitPrice: 10, taxes: [vat]);
// The sale (aka Invoice)
final sale = Sale(items: [item], tip: 1);
// Calculate sale values.
print('SUBTOTAL ${sale.subtotal}');
print('TAX ${sale.tax}');
print('TOTAL ${sale.total}');
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.

Related Products

More From This Creator