Subversion Repositories SmartDukaan

Rev

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

Rev 8854 Rev 8886
Line 139... Line 139...
139
			SnapdealItem snapdealItem = null;
139
			SnapdealItem snapdealItem = null;
140
			double SellingPrice = 0;
140
			double SellingPrice = 0;
141
			try {
141
			try {
142
				catalogClient =  new CatalogClient().getClient();
142
				catalogClient =  new CatalogClient().getClient();
143
				snapdealItem = catalogClient.getSnapdealItem(order.getSKUCode());
143
				snapdealItem = catalogClient.getSnapdealItem(order.getSKUCode());
144
				if(snapdealItem.getItem_id()!=0 && order.getSellingPricePerItem() <  snapdealItem.getExceptionPrice()){
144
				if(snapdealItem.getExceptionPrice()!=0 && snapdealItem.getItem_id()!=0 && (order.getSellingPricePerItem() <  snapdealItem.getExceptionPrice())){
145
					SellingPrice = snapdealItem.getExceptionPrice();
145
					SellingPrice = snapdealItem.getExceptionPrice();
146
				}
146
				}
147
				else{
147
				else{
148
					SellingPrice = order.getSellingPricePerItem();
148
					SellingPrice = order.getSellingPricePerItem();
149
				}
149
				}