From db473236e3ca0f313692d6e725b623a66a49dfd6 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sat, 6 Oct 2007 13:01:09 +0000 Subject: [PATCH] BF [ 1808599 ] Print format items are exported without barcode type --- .../pipo/handler/PrintFormatItemElementHandler.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/base/src/org/adempiere/pipo/handler/PrintFormatItemElementHandler.java b/base/src/org/adempiere/pipo/handler/PrintFormatItemElementHandler.java index d568692ef3..75725392a1 100644 --- a/base/src/org/adempiere/pipo/handler/PrintFormatItemElementHandler.java +++ b/base/src/org/adempiere/pipo/handler/PrintFormatItemElementHandler.java @@ -13,6 +13,7 @@ * * Copyright (C) 2005 Robert Klein. robeklein@hotmail.com * Contributor(s): Low Heng Sin hengsin@avantz.com + * Teo Sarca, SC ARHIPAC SERVICE SRL *****************************************************************************/ package org.adempiere.pipo.handler; @@ -212,6 +213,10 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler { atts.getValue("isVarianceCalc")).booleanValue()); m_PrintFormatItem.setIsDeviationCalc(Boolean.valueOf( atts.getValue("isDeviationCalc")).booleanValue()); + + // BarCode Type + String barCodeType = atts.getValue(X_AD_PrintFormatItem.COLUMNNAME_BarcodeType); + m_PrintFormatItem.setBarcodeType(barCodeType); if (m_PrintFormatItem.save(getTrxName(ctx)) == true) { record_log(ctx, 1, m_PrintFormatItem.getName(), "PrintFormatItem", @@ -425,6 +430,10 @@ public class PrintFormatItemElementHandler extends AbstractElementHandler { .addAttribute("", "", "isDeviationCalc", "CDATA", (m_PrintformatItem.isDeviationCalc() == true ? "true" : "false")); + // BarCode Type + if (m_PrintformatItem.getBarcodeType() != null) + atts.addAttribute("", "", X_AD_PrintFormatItem.COLUMNNAME_BarcodeType, "CDATA", + m_PrintformatItem.getBarcodeType()); return atts; }