Subversion Repositories SmartDukaan

Rev

Rev 18697 | Rev 18755 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18697 Rev 18698
Line 9138... Line 9138...
9138
                loanHistoryRec.user_id = userId
9138
                loanHistoryRec.user_id = userId
9139
                loanHistoryRec.creditor_id = creditorId
9139
                loanHistoryRec.creditor_id = creditorId
9140
                loanHistoryRec.payment_id = paymentId
9140
                loanHistoryRec.payment_id = paymentId
9141
                loanHistoryRec.amount = creditTxn.amount * loanTxnMultplierMap.get(creditTxn.credit_type)
9141
                loanHistoryRec.amount = creditTxn.amount * loanTxnMultplierMap.get(creditTxn.credit_type)
9142
                loanHistoryRec.credit_type = CreditTxnType._VALUES_TO_NAMES[creditTxn.credit_type]
9142
                loanHistoryRec.credit_type = CreditTxnType._VALUES_TO_NAMES[creditTxn.credit_type]
9143
                loanHistoryRec.loan_id = creditTxn.loan_id
9143
                loanHistoryRec.loan_id = creditTxn.shipping_id
9144
                if creditorDueDateMap.has_key(creditorId):
9144
                if creditorDueDateMap.has_key(creditorId):
9145
                    due_days = creditorDueDateMap.get(creditorId)
9145
                    due_days = creditorDueDateMap.get(creditorId)
9146
                    loanHistoryRec.due_date = datetime.datetime.now()+timedelta(days=due_days)
9146
                    loanHistoryRec.due_date = datetime.datetime.now()+timedelta(days=due_days)
9147
                else:
9147
                else:
9148
                    fetchCreditorDueDateMap()
9148
                    fetchCreditorDueDateMap()