private void copyToListProd(ListProduct prod) {
   prod.setEndprice(this.endprice);
   prod.setPrice(this.price);
   prod.setPercentage(
       HibernateUtils.calculatePercentageFromPrices(
           prod.getProduct().getPurchaseprice(), this.price));
 }
 private void copyFromListProd(ListProduct prod) {
   this.price = prod.getPrice();
   this.taxrate = (float) prod.getProduct().getTaxrate().getValue();
   this.endprice = prod.getEndprice();
   this.originalPercentage = prod.getPercentage();
 }