src/org/openbravo/common/hooks/OrderLineQtyChangedHookObject.java
author Guillermo Alvarez de Eulate <guillermo.alvarez@openbravo.com>
Thu, 06 Feb 2014 11:27:59 +0100
changeset 21925 c385f03ea176
parent 21276 2a737579aafc
permissions -rw-r--r--
fixed issue 25441: Price is set fine using unit price when qty is changed in orderline
guillermo@21276
     1
package org.openbravo.common.hooks;
guillermo@21276
     2
guillermo@21276
     3
import java.math.BigDecimal;
guillermo@21276
     4
guillermo@21925
     5
import org.openbravo.model.pricing.pricelist.PriceList;
guillermo@21925
     6
guillermo@21276
     7
public class OrderLineQtyChangedHookObject {
guillermo@21276
     8
guillermo@21276
     9
  private String productId;
guillermo@21276
    10
  private String orderId;
guillermo@21276
    11
  private BigDecimal qty;
guillermo@21276
    12
  private BigDecimal price;
guillermo@21276
    13
  private String changed;
guillermo@21276
    14
  private int pricePrecision;
guillermo@21925
    15
  private PriceList priceList;
guillermo@21925
    16
  private BigDecimal listPrice;
guillermo@21276
    17
guillermo@21276
    18
  public int getPricePrecision() {
guillermo@21276
    19
    return pricePrecision;
guillermo@21276
    20
  }
guillermo@21276
    21
guillermo@21276
    22
  public void setPricePrecision(int pricePrecision) {
guillermo@21276
    23
    this.pricePrecision = pricePrecision;
guillermo@21276
    24
  }
guillermo@21276
    25
guillermo@21276
    26
  public String getChanged() {
guillermo@21276
    27
    return changed;
guillermo@21276
    28
  }
guillermo@21276
    29
guillermo@21276
    30
  public void setChanged(String changed) {
guillermo@21276
    31
    this.changed = changed;
guillermo@21276
    32
  }
guillermo@21276
    33
guillermo@21276
    34
  public String getOrderId() {
guillermo@21276
    35
    return orderId;
guillermo@21276
    36
  }
guillermo@21276
    37
guillermo@21276
    38
  public void setOrderId(String orderId) {
guillermo@21276
    39
    this.orderId = orderId;
guillermo@21276
    40
  }
guillermo@21276
    41
guillermo@21276
    42
  public void setProductId(String productId) {
guillermo@21276
    43
    this.productId = productId;
guillermo@21276
    44
  }
guillermo@21276
    45
guillermo@21276
    46
  public String getProductId() {
guillermo@21276
    47
    return productId;
guillermo@21276
    48
  }
guillermo@21276
    49
guillermo@21276
    50
  public void setProduct(String productid) {
guillermo@21276
    51
    this.productId = productid;
guillermo@21276
    52
  }
guillermo@21276
    53
guillermo@21276
    54
  public BigDecimal getQty() {
guillermo@21276
    55
    return qty;
guillermo@21276
    56
  }
guillermo@21276
    57
guillermo@21276
    58
  public void setQty(BigDecimal qty) {
guillermo@21276
    59
    this.qty = qty;
guillermo@21276
    60
  }
guillermo@21276
    61
guillermo@21276
    62
  public BigDecimal getPrice() {
guillermo@21276
    63
    return price;
guillermo@21276
    64
  }
guillermo@21276
    65
guillermo@21276
    66
  public void setPrice(BigDecimal price) {
guillermo@21276
    67
    this.price = price;
guillermo@21276
    68
  }
guillermo@21276
    69
guillermo@21925
    70
  public PriceList getPriceList() {
guillermo@21925
    71
    return priceList;
guillermo@21925
    72
  }
guillermo@21925
    73
guillermo@21925
    74
  public void setPriceList(PriceList priceList) {
guillermo@21925
    75
    this.priceList = priceList;
guillermo@21925
    76
  }
guillermo@21925
    77
guillermo@21925
    78
  public BigDecimal getListPrice() {
guillermo@21925
    79
    return listPrice;
guillermo@21925
    80
  }
guillermo@21925
    81
guillermo@21925
    82
  public void setListPrice(BigDecimal listPrice) {
guillermo@21925
    83
    this.listPrice = listPrice;
guillermo@21925
    84
  }
guillermo@21925
    85
guillermo@21276
    86
}