Project directory tree
|___Invoicepy (Library)
| |____ __init.py__
| |____ catalogItem.py
| |____ Invoice.py
|
|___Docs
| |___architecure.md
| |___scalability.md
|
|___Logs
| |___0.log
|
|___sqldumps
| |___catalog.sql
| |___orders.sql
|
|___index.py - Entry point to the CLI
|
|___loggerUtil.py
|
|___utils.py
|
|___logger.config
|
|___README
Contains information about a catalog item icluding its name, price, unique item id, discount, category, tax rate and final amount to be paid to checkout.
Member functions print()
and printVerbose()
allow priting details of the catalogItem
.
Contains information about the invoice including order_id, customer_id, checkout_amount, address, and cartItems (the items bought).
Member function print()
allows printing of the invoice as and when required.