| Line 4547... |
Line 4547... |
| 4547 |
wh.referenceNumber = rechargeTransaction.id
|
4547 |
wh.referenceNumber = rechargeTransaction.id
|
| 4548 |
wh.description = "Debited amount"
|
4548 |
wh.description = "Debited amount"
|
| 4549 |
|
4549 |
|
| 4550 |
wallet.amount = wallet.amount - rechargeTransaction.amount
|
4550 |
wallet.amount = wallet.amount - rechargeTransaction.amount
|
| 4551 |
store.availableLimit = store.availableLimit - rechargeTransaction.amount
|
4551 |
store.availableLimit = store.availableLimit - rechargeTransaction.amount
|
| 4552 |
|
- |
|
| - |
|
4552 |
store.collectedAmount = store.collectedAmount + rechargeTransaction.amount - rechargeTransaction.discount
|
| 4553 |
session.commit()
|
4553 |
session.commit()
|
| 4554 |
|
4554 |
|
| 4555 |
strProviderCode = get_provider_code(rechargeTransaction.mobileOperatorId)
|
4555 |
strProviderCode = get_provider_code(rechargeTransaction.mobileOperatorId)
|
| 4556 |
retStatus, retCode, spiceTID, description = RechargeService.rechargeDevice(rechargeTransaction.id, rechargeTransaction.deviceType, strProviderCode, rechargeTransaction.deviceNum, rechargeTransaction.amount, rechargeTransaction.plan)
|
4556 |
retStatus, retCode, spiceTID, description = RechargeService.rechargeDevice(rechargeTransaction.id, rechargeTransaction.deviceType, strProviderCode, rechargeTransaction.deviceNum, rechargeTransaction.amount, rechargeTransaction.plan)
|
| 4557 |
rechargeTransaction.spiceTID = spiceTID
|
4557 |
rechargeTransaction.spiceTID = spiceTID
|
| Line 4582... |
Line 4582... |
| 4582 |
wh.referenceNumber = rechargeTransaction.id
|
4582 |
wh.referenceNumber = rechargeTransaction.id
|
| 4583 |
wh.description = "Credited amount"
|
4583 |
wh.description = "Credited amount"
|
| 4584 |
|
4584 |
|
| 4585 |
wallet.amount = wallet.amount + rechargeTransaction.amount
|
4585 |
wallet.amount = wallet.amount + rechargeTransaction.amount
|
| 4586 |
store.availableLimit = store.availableLimit + rechargeTransaction.amount
|
4586 |
store.availableLimit = store.availableLimit + rechargeTransaction.amount
|
| - |
|
4587 |
store.collectedAmount = store.collectedAmount - rechargeTransaction.amount + rechargeTransaction.discount
|
| 4587 |
|
4588 |
|
| 4588 |
session.commit()
|
4589 |
session.commit()
|
| 4589 |
|
4590 |
|
| 4590 |
return rechargeTransaction
|
4591 |
return rechargeTransaction
|
| 4591 |
|
4592 |
|