Package org.idempiere.apps.form
Class BOMDrop
java.lang.Object
org.idempiere.apps.form.BOMDrop
- 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) getBOMLine
(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) getNonServiceProjects
(String trxName) Get Array of open non service Projects (C_Project_ID, Name)saveInvoiceLines
(int C_Invoice_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName) saveOrderLines
(int C_Order_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName) saveProjectLines
(int C_Project_ID, List<BOMDrop.SelectedItem> selectedItems, String trxName)
-
Constructor Details
-
BOMDrop
public BOMDrop()default constructor
-
-
Method Details
-
getMaxBOMDeep
- Parameters:
product
-- Returns:
-
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) - 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
- Parameters:
product
-qty
-callback
-
-