Filtro de num inicial/final relatorio saldo estoque feat #AL-4398
parent
1171685eac
commit
73942273db
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ModelWeb</artifactId>
|
<artifactId>ModelWeb</artifactId>
|
||||||
<version>1.113.0</version>
|
<version>1.114.0</version>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
|
|
|
@ -6,6 +6,7 @@ import java.util.Calendar;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
@ -120,7 +121,7 @@ public class VoucherServiceImpl implements VoucherService {
|
||||||
for (Voucher vou : dados) {
|
for (Voucher vou : dados) {
|
||||||
VoucherVO vo;
|
VoucherVO vo;
|
||||||
|
|
||||||
if( !vou.getContrato().getNumContrato().equals(numContrato)) {
|
if( StringUtils.isNotEmpty(numContrato) && !vou.getContrato().getNumContrato().equals(numContrato)) {
|
||||||
vo = VoucherVO.converteVoucher(vou);
|
vo = VoucherVO.converteVoucher(vou);
|
||||||
vo.setMensagem(Labels.getLabel("legalizacaoMassivaController.MSG.contratoDiferente"));
|
vo.setMensagem(Labels.getLabel("legalizacaoMassivaController.MSG.contratoDiferente"));
|
||||||
retorno.add(vo);
|
retorno.add(vo);
|
||||||
|
|
Loading…
Reference in New Issue