Class MCOFCMarkup

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_COF_C_Markup, I_Persistent, Evaluatee

public class MCOFCMarkup extends X_COF_C_Markup
Model Class for COF_C_Markup
Version:
$Id: MCOFCMarkup.java, 16/03/2015 15:57:38 gabriels
Author:
Gabriel S Schneider (gabriel.schneider@devcoffee.com.br, http://www.devcoffee.com.br)
See Also:
  • Constructor Details

    • MCOFCMarkup

      public MCOFCMarkup(Properties ctx, int COF_C_Markup_ID, String trxName)
      Parameters:
      ctx -
      COF_C_Markup_ID -
      trxName -
    • MCOFCMarkup

      public MCOFCMarkup(Properties ctx, ResultSet rs, String trxName)
      Parameters:
      ctx -
      rs -
      trxName -
    • MCOFCMarkup

      public MCOFCMarkup(Properties ctx, int COF_C_Markup_ID, String trxName, String... virtualColumns)
    • MCOFCMarkup

      public MCOFCMarkup(Properties ctx, String COF_C_Markup_UU, String trxName, String... virtualColumns)
    • MCOFCMarkup

      public MCOFCMarkup(Properties ctx, String COF_C_Markup_UU, String trxName)
  • Method Details

    • getMarkup

      public static MCOFCMarkup getMarkup(int AD_Client_ID, int AD_Org_ID, int C_BPartner_ID, int C_DocType_ID, int M_Product_ID, int M_Product_Category_ID, Timestamp validTo, String trxName)
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord -
      Returns:
      true if save
    • calculateMarkup

      public static Object[] calculateMarkup(MOrder order, int M_Product_ID, int M_PriceList_ID, BigDecimal precoCustoLista)
      Parameters:
      order -
      M_Product_ID -
      M_PriceList_ID -
      precoCustoLista -
      Returns:
      Object[]{ MkpMínimo, MkpMáximo, PrecoCustoLista};
    • setMarkupCalculate

      public static String setMarkupCalculate(MOrderLine orderLine, int precision, boolean overwritten)
      Calcula o Markup e preenche os Campos de Preço da Linha do Pedido
      Parameters:
      orderLine -
      precision -
      Returns: