Class MProductionLine

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

public class MProductionLine extends X_M_ProductionLine
Production line model
See Also:
  • Field Details

    • productionParent

      protected MProduction productionParent
  • Constructor Details

    • MProductionLine

      public MProductionLine(Properties ctx, String M_ProductionLine_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      M_ProductionLine_UU - UUID key
      trxName - Transaction
    • MProductionLine

      public MProductionLine(Properties ctx, int M_ProductionLine_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - ctx
      M_ProductionLine_ID - id
    • MProductionLine

      public MProductionLine(Properties ctx, int M_ProductionLine_ID, String trxName, String... virtualColumns)
      Parameters:
      ctx -
      M_ProductionLine_ID -
      trxName -
      virtualColumns -
    • MProductionLine

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

      public MProductionLine(MProduction header)
      Parent Constructor
      Parameters:
      header -
    • MProductionLine

      public MProductionLine(MProductionPlan header)
      Parameters:
      header -
  • Method Details

    • createTransactions

      public String createTransactions(Timestamp date, boolean mustBeStocked)
      Create material transactions
      Parameters:
      date -
      mustBeStocked - true to verify on hand quantity
      Returns:
      "" for success, error message if failed
    • getEndProduct_ID

      protected int getEndProduct_ID()
      Returns:
      end product id (from production or production plan)
    • deleteMA

      protected int deleteMA()
      Delete M_ProductionLineMA records
      Returns:
      number of records deleted
    • toString

      public String toString()
      Description copied from class: PO
      String representation
      Overrides:
      toString in class X_M_ProductionLine
      Returns:
      String representation
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved
    • beforeDelete

      protected boolean beforeDelete()
      Description copied from class: PO
      Execute before Delete operations.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted
    • getProductionReversalId

      public int getProductionReversalId()
      Get Reversal_ID of parent production
      Returns:
      Reversal_ID
    • getLineMAs

      public MProductionLineMA[] getLineMAs()
      Returns:
      array of MProductionLineMA