Class BOMDrop

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

public class BOMDrop extends Object
Form to create order, invoice or project lines from BOM.
Author:
hengsin
  • Constructor Details

    • BOMDrop

      public BOMDrop()
      default constructor
  • Method Details

    • getMaxBOMDeep

      public int getMaxBOMDeep(MProduct product)
      Get max BOM level for product
      Parameters:
      product -
      Returns:
      max BOM level
    • 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)
      Add order lines for selected items
      Parameters:
      C_Order_ID -
      selectedItems -
      trxName -
      Returns:
      MOrder
    • saveInvoiceLines

      public MInvoice saveInvoiceLines(int C_Invoice_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName)
      Add invoice lines for selected items
      Parameters:
      C_Invoice_ID -
      selectedItems -
      trxName -
      Returns:
      MInvoice
    • saveProjectLines

      public MProject saveProjectLines(int C_Project_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName)
      Add project lines for selected items
      Parameters:
      C_Project_ID -
      selectedItems -
      trxName -
      Returns:
      MProject
    • addBOMLines

      public void addBOMLines(MProduct product, BigDecimal qty, Callback<BOMDrop.BOMLine> callback)
      Invoke call back for each BOM line
      Parameters:
      product -
      qty -
      callback -