Subversion Repositories SmartDukaan

Rev

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

Rev 6353 Rev 6356
Line 118... Line 118...
118
                addressId = cart.getAddressId();
118
                addressId = cart.getAddressId();
119
            }
119
            }
120
            address = userClient.getAddressById(addressId);
120
            address = userClient.getAddressById(addressId);
121
            
121
            
122
            try {
122
            try {
123
                showCodOption = userClient.showCODOption(cartId, sourceId, address.getPin()) && !hasGiftVoucher;
123
                showCodOption = userClient.showCODOption(cartId, sourceId, address.getPin());
124
            } catch(Exception e) {
124
            } catch(Exception e) {
125
                logger.error("Error while checking if COD is available for: " + showCodOption, e);
125
                logger.error("Error while checking if COD is available for: " + showCodOption, e);
126
                showCodOption = false; //Not a critical error, proceeding with defensive behaviour.
126
                showCodOption = false; //Not a critical error, proceeding with defensive behaviour.
127
            }
127
            }
128
            
128