Skip to content

Instantly share code, notes, and snippets.

Created January 9, 2013 10:20
Show Gist options
  • Save anonymous/4492123 to your computer and use it in GitHub Desktop.
Save anonymous/4492123 to your computer and use it in GitHub Desktop.
for (DuplicataNota duplicata : duplicatas) {
valorMovto = MoneyHelper.somar(valorMovto, duplicata.getValor());
LancamentoContabil lcto = new LancamentoContabil(EmpresaHelper.getParametrosEmpresaLogada(MovimentacaoContabil.class.cast(movContabilValue.
getValue()).getDataMovimentacao()).getContaFornecedores(), duplicata.getValor(), StringUtils.EMPTY, EmpresaHelper.getEmpresaLogada());
if(duplicata.isAPagar())
lcto.setTipo(LancamentoContabil.DEBITO);
else
lcto.setTipo(LancamentoContabil.CREDITO);
lancamentos.add(lcto);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment