IDEMPIERE-3137 Pack Out Print Format doesn't export translations
This commit is contained in:
parent
757674f86a
commit
05f6571df4
|
@ -20,6 +20,7 @@ package org.adempiere.pipo2.handler;
|
|||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import javax.xml.transform.sax.TransformerHandler;
|
||||
|
||||
|
@ -32,6 +33,7 @@ import org.adempiere.pipo2.PoExporter;
|
|||
import org.adempiere.pipo2.PoFiller;
|
||||
import org.adempiere.pipo2.exception.POSaveFailedException;
|
||||
import org.compiere.model.I_AD_PrintFormat;
|
||||
import org.compiere.model.I_AD_PrintFormatItem;
|
||||
import org.compiere.model.I_AD_PrintPaper;
|
||||
import org.compiere.model.I_AD_Table;
|
||||
import org.compiere.model.X_AD_Package_Exp_Detail;
|
||||
|
@ -134,6 +136,13 @@ public class PrintFormatElementHandler extends AbstractElementHandler {
|
|||
addTypeName(atts, "table");
|
||||
document.startElement("", "", I_AD_PrintFormat.Table_Name, atts);
|
||||
createPrintFormatBinding(ctx, document, m_Printformat);
|
||||
PackOut packOut = ctx.packOut;
|
||||
packOut.getCtx().ctx.put("Table_Name",I_AD_PrintFormat.Table_Name);
|
||||
try {
|
||||
new CommonTranslationHandler().packOut(packOut,document,null,m_Printformat.get_ID());
|
||||
} catch(Exception e) {
|
||||
if (log.isLoggable(Level.INFO)) log.info(e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
String sql = "SELECT AD_PrintFormatItem_ID FROM AD_PrintFormatItem WHERE AD_PrintFormat_ID= "
|
||||
|
|
Loading…
Reference in New Issue