Class TestUtils
- java.lang.Object
-
- org.openbravo.test.materialMgmt.invoiceFromShipment.TestUtils
-
public class TestUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description TestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Order
cloneOrder(String orderId, String docNo)
Returns a new Order Line based on the given one.static OrderLine
cloneOrderLine(OrderLine oldLine, Order newOrder)
Returns a new Order Line based on the given one.static void
processInvoice(Invoice invoice)
Calls the C_INVOICE_POST stored procedure
-
-
-
Method Detail
-
cloneOrder
public static Order cloneOrder(String orderId, String docNo)
Returns a new Order Line based on the given one. It is a clone of the first one but without being invoiced or delivered- Returns:
- A new Order Line clone based on the original one
-
cloneOrderLine
public static OrderLine cloneOrderLine(OrderLine oldLine, Order newOrder)
Returns a new Order Line based on the given one. It is a clone of the first one but without being invoiced or delivered- Parameters:
oldLine
- Order Line to be clonednewOrder
- new Order (a clone of the original one)- Returns:
- A new Order Line clone based on the original one
-
-