Fixed NDG issue

This commit is contained in:
rajesh
2026-03-03 12:14:48 +05:30
parent 9ae2926b88
commit 7d6c55cf92

View File

@@ -166,6 +166,13 @@ public class AppointmentDao {
NdganagEntity ndganagEntity = ndganagRepository.findByVatNumber(company.getVatNumber());
if (ndganagEntity != null && ndganagEntity.getNdg() != null) {
ndgResponse.setNdg(ndganagEntity.getNdg());
company.setNdg(ndganagEntity.getNdg());
application.setNdg(ndganagEntity.getNdg());
application.setNdgStatus(GepafinConstant.NDG_GENERATED);
application.setStatus(ApplicationStatusTypeEnum.NDG.getValue());
companyRepository.save(company);
applicationRepository.save(application);
return ndgResponse;
}