NOTICE: All information contained herein is, and remains
the property of TechnoCore.
The intellectual and technical concepts contained
herein are proprietary to TechnoCore and dissemination of this information or reproduction of this material
is strictly forbidden unless prior written permission is obtained
from TechnoCore.
ObjTextFHTotal is a Python module that calculates the total payment amount for a hire purchase (HP) agreement. It inherits from ObjTextFHInstalment and utilizes its compute method to determine the total cost over the loan term.
ObjTextFHInstalment.__init__(self, db_connection: DatabaseConnection = 0, page=0)Initializes the ObjTextFHTotal object, inheriting from ObjTextFHInstalment.
DatabaseConnection object for database operations.Process(self, param_1="", param_2="", ...)Calculates the total payment for a given product.
To calculate the total payment for a product:
import ObjTextFHTotal
# Initialize the object with a database connection
total_calculator = ObjTextFHTotal.ObjProcessText(db_connection=db)
# Calculate the total payment for a product with a specific price
price = "5399"
total_payment = total_calculator.Process(price)
print(f"The total payment for a product with price {price} is {total_payment}")