Subversion Repositories SmartDukaan

Rev

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

Rev 22491 Rev 22499
Line 4744... Line 4744...
4744
            #Payment has been recorded now. We can update the order peacefully.
4744
            #Payment has been recorded now. We can update the order peacefully.
4745
            remittance = CodCourierPaymentRemittance()
4745
            remittance = CodCourierPaymentRemittance()
4746
            remittance.airwayBillNo = awb
4746
            remittance.airwayBillNo = awb
4747
            remittance.collectionReference = xferTxnId
4747
            remittance.collectionReference = xferTxnId
4748
            remittance.amount = amount 
4748
            remittance.amount = amount 
4749
            remittance.settledAt = datetime.datetime.strptime(xferDate, "%Y/%m/%d")
4749
            remittance.settledAt = to_py_date(xferDate)
4750
            remittance.provider_id = order.logistics_provider_id
4750
            remittance.provider_id = order.logistics_provider_id
4751
            order.cod_reconciliation_timestamp = datetime.datetime.now()
4751
            order.cod_reconciliation_timestamp = datetime.datetime.now()
4752
            session.commit()
4752
            session.commit()
4753
        
4753
        
4754
        if len(orders) > 1:
4754
        if len(orders) > 1: