Skip to main content

This package provides functionalities for managing sales, including price calculations, taxes, and discounts.

Project description

Sales Manager

This package provides functionalities for managing sales, including price calculations, taxes, and discounts.

Installation

You can install the package using:

pip install Sales-Manager-GVP

Example of use

from app_sales.sales_manager import SalesManager

def main():
    # Base price of the product
    base_price = 100.0

    # Tax and discount must be values between 0 and 1
    tax_percentage = 0.05      # 5% tax
    discount_percentage = 0.10 # 10% discount

    # Create a SalesManager instance
    manager = SalesManager(base_price, tax_percentage, discount_percentage)

    # Calculate the final price after tax and discount
    final_price = manager.calculate_final_price()

    # Display results
    print(f"Base price: ${base_price}")
    print(f"Tax: {tax_percentage * 100}%")
    print(f"Discount: {discount_percentage * 100}%")
    print(f"Final price: ${final_price}")

if __name__ == "__main__":
    main()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sales_manager_gvp-1.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sales_manager_gvp-1.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file sales_manager_gvp-1.0.2.tar.gz.

File metadata

  • Download URL: sales_manager_gvp-1.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for sales_manager_gvp-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c6188cee777470ce19ee03680a3f9ec4ce09dd063bf217dcfbd63b59f96d9716
MD5 9edb29cdb79c651f394abca559d51a26
BLAKE2b-256 2dec7105a89e597827ba6940f89d75ed67d2cf1e90b9f12f6fcfb1b469a1d7fe

See more details on using hashes here.

File details

Details for the file sales_manager_gvp-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sales_manager_gvp-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc74dd245b8e5d243f91ea70da476db3c9adf0ada5927c9de943e17e7310cc8
MD5 3338f0441d592e2aee580edd78d92f5d
BLAKE2b-256 6de8822b75a4fe06d1fce96dd476f0ed753dfa284530c82b8f784fde34fce5d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page