Search in sources :

Example 46 with MInOut

use of org.compiere.model.MInOut in project lar_361 by comitsrl.

the class FiscalDocumentPrint method doPrintShipmentDocument.

/**
 * Realiza la impresión del documento no fiscal homologado
 * con los artículos a entregar.
 *
 * @param args Arreglo con los argumentos requeridos por esta funcionalidad
 * @throws Exception
 */
private void doPrintShipmentDocument(final Object[] args) throws Exception {
    final MInOut shipment = (MInOut) args[0];
    // Informa el inicio de la impresión
    fireActionStarted(FiscalDocumentListener.AC_PRINT_DOCUMENT);
    // Crea el documento no fiscal y luego obtiene todas las líneas del pedido
    final DNFH dnfh = createDNFH(shipment);
    // Se asigna el documento OXP.
    setOxpDocument(shipment);
    // Manda a imprimir el documento en la impresora fiscal
    getFiscalPrinter().printDocument(dnfh);
    // Guarda la info devuelta por el controlador
    saveShipmentData(shipment, dnfh);
    // Se dispara el evento de impresión finalizada.
    fireDocumentPrintEndedOk();
}
Also used : MInOut(org.compiere.model.MInOut) DNFH(ar.com.ergio.print.fiscal.document.DNFH)

Aggregations

MInOut (org.compiere.model.MInOut)46 MInOutLine (org.compiere.model.MInOutLine)23 MOrder (org.compiere.model.MOrder)18 BigDecimal (java.math.BigDecimal)14 MInvoice (org.compiere.model.MInvoice)14 MOrderLine (org.compiere.model.MOrderLine)11 ArrayList (java.util.ArrayList)6 ResultSet (java.sql.ResultSet)5 MBPartner (org.compiere.model.MBPartner)5 MProduct (org.compiere.model.MProduct)5 MRMA (org.compiere.model.MRMA)5 Timestamp (java.sql.Timestamp)4 MInvoiceLine (org.compiere.model.MInvoiceLine)4 MInvoiceSchedule (org.compiere.model.MInvoiceSchedule)4 MPayment (org.compiere.model.MPayment)4 MRMALine (org.compiere.model.MRMALine)4 MInOutConfirm (org.compiere.model.MInOutConfirm)3 MLocator (org.compiere.model.MLocator)3 MStorage (org.compiere.model.MStorage)3 DNFH (ar.com.ergio.print.fiscal.document.DNFH)2