Commits

Carlos Ruiz committed 008a15a

minor fixes for magnetic media

Comments (0)

Files changed (2)

org.globalqss.idempiere.LCO.magneticmedia/src/org/globalqss/model/MLCODIANConcept.java

 		// for each position in sources
 		String sql = "SELECT DISTINCT dcs.CalcColumnPosition "
 			+ "FROM LCO_DIAN_ConceptSource dcs "
-			+ "WHERE dcs.LCO_DIAN_Concept_ID=? AND dcs.IsActive='Y' AND dcs.CalcColumnPosition>0"
+			+ "WHERE dcs.LCO_DIAN_Concept_ID=? AND dcs.IsActive='Y' AND dcs.CalcColumnPosition>0 "
 			+ "ORDER BY dcs.CalcColumnPosition";
 		PreparedStatement pstmt = null;
 		ResultSet rs = null;

org.globalqss.idempiere.LCO.magneticmedia/src/org/globalqss/process/LCO_DianGenerateXML.java

 					xmlh = new X_LCO_DIAN_XML_Header(getCtx(), 0, get_TrxName());
 					cntmedia++;
 					xmlh.setLCO_DIAN_SendSchedule_ID(sendScheduleProcess.getLCO_DIAN_SendSchedule_ID());
-					int p_seqEnvio = seqxml.getNextID();
+					String s_seqEnvio = MSequence.getDocumentNoFromSeq(seqxml, get_TrxName(), sendScheduleProcess);
+					int p_seqEnvio = Integer.valueOf(s_seqEnvio);
 					seqxml.saveEx();
 					xmlh.setSequence(p_seqEnvio);
 					xmlh.saveEx();