Subversion Repositories SmartDukaan

Rev

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

Rev 7142 Rev 7144
Line 63... Line 63...
63
        processUnknownTransactions()
63
        processUnknownTransactions()
64
    if options.authorized:
64
    if options.authorized:
65
        processAuthorizedTransactions(options.txn_id)
65
        processAuthorizedTransactions(options.txn_id)
66
    if options.collection:
66
    if options.collection:
67
        d = datetime.datetime.now()
67
        d = datetime.datetime.now()
68
        #d = d + timedelta(days = -10)
68
        d = d + timedelta(days = -1)
69
        compute_recharge_collection(d)
69
        compute_recharge_collection(d)
70
 
70
 
71
def processRefunds():
71
def processRefunds():
72
    todate = datetime.datetime.now()
72
    todate = datetime.datetime.now()
73
    for i in range(15):
73
    for i in range(15):
Line 166... Line 166...
166
        store.availableLimit = store.creditLimit
166
        store.availableLimit = store.creditLimit
167
        session.commit()
167
        session.commit()
168
        
168
        
169
        data = storeData.get(storeId)
169
        data = storeData.get(storeId)
170
        
170
        
171
        if store.hotspotId == 'C93':
-
 
172
            continue
171
        
173
        store_string = "<Store>" + store.hotspotId + "</Store>"
172
        store_string = "<Store>" + store.hotspotId + "</Store>"
174
        date_string = "<ReconDate>" + todate.strftime("%Y%m%d") + "</ReconDate>"
173
        date_string = "<ReconDate>" + todate.strftime("%Y%m%d") + "</ReconDate>"
175
        cash_string = "<Cash>" + str(data[0]) + "</Cash>"
174
        cash_string = "<Cash>" + str(data[0]) + "</Cash>"
176
        card_string = "<Hdfc>" + str(data[1]) + "</Hdfc>"
175
        card_string = "<Hdfc>" + str(data[1]) + "</Hdfc>"
177
        type_string = "<Type>RechargeSale</Type>"
176
        type_string = "<Type>RechargeSale</Type>"