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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sales_manager_gvp-1.0.1.tar.gz.
File metadata
- Download URL: sales_manager_gvp-1.0.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ef1bdb0ea6726b3860aaeabe76178749fefb91bcb07273ba12f87875461e308
|
|
| MD5 |
fd265729a9e63f3bf74b33a0b804bd98
|
|
| BLAKE2b-256 |
e296e52fb0cbe2c0475a54c47ac8ce56dad9d302f82f98d60a50f1c62e9adbac
|
File details
Details for the file sales_manager_gvp-1.0.1-py3-none-any.whl.
File metadata
- Download URL: sales_manager_gvp-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
323dbe13d79204e587e96e54b6f2377783c66760d2fb4c61b458f37cfb2a1d09
|
|
| MD5 |
36b7e57153bb7a14956fd6344fe42e48
|
|
| BLAKE2b-256 |
18acf1f5e379bf718a689ee674ab6229e9730aaa41de135da34cca9ee6a5fb1a
|