Package org.idempiere.apps.form
Class BOMDrop
java.lang.Object
org.idempiere.apps.form.BOMDrop
Form to create order, invoice or project lines from BOM.
- Author:
- hengsin
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
bom linestatic class
selected bom item -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBOMLines
(MProduct product, BigDecimal qty, Callback<BOMDrop.BOMLine> callback) Invoke call back for each BOM linegetBOMLine
(MProduct product) Get BOM lines from default BOM of product, sorted by component type and line numbergetDraftInvoices
(String trxName) Get Array of draft Invoices (C_Invoice_ID, DocumentNo_GrandTotal)getDraftOrders
(String trxName) Get Array of draft orders (C_Order_ID, DocumentNo_GrandTotal)int
getMaxBOMDeep
(MProduct product) Get max BOM level for productgetNonServiceProjects
(String trxName) Get Array of open non service Projects (C_Project_ID, Name)saveInvoiceLines
(int C_Invoice_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName) Add invoice lines for selected itemssaveOrderLines
(int C_Order_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName) Add order lines for selected itemssaveProjectLines
(int C_Project_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName) Add project lines for selected items
-
Constructor Details
-
BOMDrop
public BOMDrop()default constructor
-
-
Method Details
-
getMaxBOMDeep
Get max BOM level for product- Parameters:
product
-- Returns:
- max BOM level
-
getDraftOrders
Get Array of draft orders (C_Order_ID, DocumentNo_GrandTotal)- Parameters:
trxName
- optional trx name- Returns:
- array of draft orders
-
getNonServiceProjects
Get Array of open non service Projects (C_Project_ID, Name)- Parameters:
trxName
- optional trx name- Returns:
- array of non service projects
-
getDraftInvoices
Get Array of draft Invoices (C_Invoice_ID, DocumentNo_GrandTotal)- Parameters:
trxName
- optional trx name- Returns:
- array of draft invoices
-
getBOMLine
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
Invoke call back for each BOM line- Parameters:
product
-qty
-callback
-
-