| Line 132... |
Line 132... |
| 132 |
Client txnClient = tsc.getClient();
|
132 |
Client txnClient = tsc.getClient();
|
| 133 |
try {
|
133 |
try {
|
| 134 |
Map<String, String> unprocessedAwbs = txnClient.reconcileCodCollection(collectedAmountMap, xferBy, xferTxnId, xferDate.getTime());
|
134 |
Map<String, String> unprocessedAwbs = txnClient.reconcileCodCollection(collectedAmountMap, xferBy, xferTxnId, xferDate.getTime());
|
| 135 |
if(!unprocessedAwbs.isEmpty()){
|
135 |
if(!unprocessedAwbs.isEmpty()){
|
| 136 |
for(Entry<String, String> entry: unprocessedAwbs.entrySet())
|
136 |
for(Entry<String, String> entry: unprocessedAwbs.entrySet())
|
| 137 |
addActionError("Unable to process AWB no. " + entry.getKey() + " bcoz of " + entry.getValue());
|
137 |
addActionError("Unable to process AWB no. " + entry.getKey() + " since " + entry.getValue());
|
| 138 |
}
|
138 |
}
|
| 139 |
} catch (TransactionServiceException e) {
|
139 |
} catch (TransactionServiceException e) {
|
| 140 |
logger.error("Unable to reconcile COD collection", e);
|
140 |
logger.error("Unable to reconcile COD collection", e);
|
| 141 |
addActionError(e.getMessage());
|
141 |
addActionError(e.getMessage());
|
| 142 |
} catch (TException e) {
|
142 |
} catch (TException e) {
|