コード例 #1
0
ファイル: db_utility.py プロジェクト: awrigh36/birtdb-python
def get_total_payments_for_customer(cust_num):
    total_payments = 0
    cust_num_string = str(cust_num)
    it = db_access.get_all_payments_for_customer(cust_num_string)
    for x in it:
        amount = x[3]
        amount_str = str(amount)
        total_payments += float(amount_str)

    return str(total_payments)
コード例 #2
0
def get_all_payments_for_customer(cust_num):
    return db_access.get_all_payments_for_customer(str(cust_num))