Class CreateInvoiceLinesFromProcess
- java.lang.Object
-
- org.openbravo.common.actionhandler.createlinesfromprocess.CreateInvoiceLinesFromProcess
-
public class CreateInvoiceLinesFromProcess extends Object
-
-
Constructor Summary
Constructors Constructor Description CreateInvoiceLinesFromProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
createInvoiceLinesFromDocumentLines(org.codehaus.jettison.json.JSONArray selectedLinesParam, Invoice currentInvoice, Class<? extends BaseOBObject> selectedLinesFromClass)
This process copies the selected Lines into the Invoice that is being processed by this same Process 1.
-
-
-
Method Detail
-
createInvoiceLinesFromDocumentLines
public int createInvoiceLinesFromDocumentLines(org.codehaus.jettison.json.JSONArray selectedLinesParam, Invoice currentInvoice, Class<? extends BaseOBObject> selectedLinesFromClass)
This process copies the selected Lines into the Invoice that is being processed by this same Process- 1. Update Invoice and Invoice Line related information
- 2. Copy product and attributes
- 3. Calculate amounts and UOM's
- 4. Calculate Prices based on price list
- 5. Calculate Acc and Def Plan from Product
- 6. Recalculate Taxes
- Parameters:
selectedLinesParam
- Order/InOut Lines selected by the user from which the invoice lines will be createdcurrentInvoice
- The invoice currently being createdselectedLinesFromClass
- The class of the lines being copied (Order/InOut)- Returns:
- The number of invoice lines created by the process
-
-