question: private void createLine ( MOrder order , MOrderLine orderLine , BigDecimal qtyInvoiced , BigDecimal qtyEntered ) { if ( m_invoice == null ) { m_invoice = new MInvoice ( order , 0 , p_DateInvoiced ) ; if ( ! m_invoice . save ( ) ) throw new IllegalStateException ( "Could not create Invoice (o)" ) ; } MInvoiceLine line = new MInvoiceLine ( m_invoice ) ; line . setOrderLine ( orderLine ) ; line . setQtyInvoiced ( qtyInvoiced ) ; line . setQtyEntered ( qtyEntered ) ; line . setLine ( m_line + orderLine . getLine ( ) ) ; if ( ! line . save ( ) ) throw new IllegalStateException ( "Could not create Invoice Line (o)" ) ; log . fine ( line . toString ( ) ) ; }
target:  Create Invoice Line from Order Line