Class BOMDrop

java.lang.Object
org.idempiere.apps.form.BOMDrop

public class BOMDrop extends Object
Author:
hengsin
  • Constructor Details

    • BOMDrop

      public BOMDrop()
      default constructor
  • Method Details

    • getMaxBOMDeep

      public int getMaxBOMDeep(MProduct product)
      Parameters:
      product -
      Returns:
    • getDraftOrders

      public KeyNamePair[] getDraftOrders(String trxName)
      Get Array of draft orders (C_Order_ID, DocumentNo_GrandTotal)
      Parameters:
      trxName - optional trx name
      Returns:
      array of draft orders
    • getNonServiceProjects

      public KeyNamePair[] getNonServiceProjects(String trxName)
      Get Array of open non service Projects (C_Project_ID, Name)
      Parameters:
      trxName - optional trx name
      Returns:
      array of non service projects
    • getDraftInvoices

      public KeyNamePair[] getDraftInvoices(String trxName)
      Get Array of draft Invoices (C_Invoice_ID, DocumentNo_GrandTotal)
      Parameters:
      trxName - optional trx name
      Returns:
      array of draft invoices
    • getBOMLine

      public MPPProductBOMLine[] getBOMLine(MProduct product)
      Get BOM lines from default BOM of product, sorted by component type and line number
      Parameters:
      product -
      Returns:
      MPPProductBOMLine[]
    • saveOrderLines

      public MOrder saveOrderLines(int C_Order_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName)
      Parameters:
      C_Order_ID -
      selectedItems -
      trxName -
      Returns:
      MOrder
    • saveInvoiceLines

      public MInvoice saveInvoiceLines(int C_Invoice_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName)
      Parameters:
      C_Invoice_ID -
      selectedItems -
      trxName -
      Returns:
      MInvoice
    • saveProjectLines

      public MProject saveProjectLines(int C_Project_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName)
      Parameters:
      C_Project_ID -
      selectedItems -
      trxName -
      Returns:
      MProject
    • addBOMLines

      public void addBOMLines(MProduct product, BigDecimal qty, Callback<BOMDrop.BOMLine> callback)
      Parameters:
      product -
      qty -
      callback -