Skip to content

Instantly share code, notes, and snippets.

@noili
Created April 26, 2017 12:57
Show Gist options
  • Save noili/adfca263e32514d3a0240416025413b8 to your computer and use it in GitHub Desktop.
Save noili/adfca263e32514d3a0240416025413b8 to your computer and use it in GitHub Desktop.
for (Tmct0alcId alcId : factura.getAlcIds()) {
alc = tmct0alcBo.findById(alcId);
if (alc != null && (estadoasig = alc.getCdestadoasig())!=null && estadoasig>=ASIGNACIONES.PDTE_LIQUIDAR.getId()) {
alcEstadoContBo.setEstadocont(alc, estadoContAlc, TIPO_ESTADO.CORRETAJE_O_CANON);
apunteAlcDao.save(new ApunteContableAlc(apunteD, alc, importe = alc.getEstadocont().getIdestado()==
CONTABILIDAD.PDTE_AJUSTE.getId()? alc.getImajusvb(): alc.getImajusvb()==null?
alc.getImcomisn(): alc.getImajusvb().add(alc.getImcomisn())));
apunteAlcDao.save(new ApunteContableAlc(apunteH, alc, importe));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment