ACE - APK - LOS ABONOS QUE SE GENERAN EN APK Y MULTAS HAY QUE RESTAR 6 HORAS EN EL WS

This commit is contained in:
Brayan.Gonzalez 2025-01-29 10:25:34 -07:00
parent d614edf933
commit c269ac5570

View File

@ -10,7 +10,6 @@ package com.arrebol.apc.controller.mobile.controller.loan;
import com.arrebol.apc.controller.mobile.json.loan.AuthorizeTransferList;
import com.arrebol.apc.controller.mobile.json.loan.AuthorizeTransferPaymentsDto;
import com.arrebol.apc.controller.mobile.json.loan.DeleteLoanDetailsJaxb;
import com.arrebol.apc.model.ws.parsed.LoanRequestedJaxb;
import com.arrebol.apc.controller.mobile.json.loan.LoanTypeJaxb;
import com.arrebol.apc.controller.mobile.json.loan.LoanTypeListJaxb;
import com.arrebol.apc.controller.mobile.json.loan.UpdateLoanToDeliveryStatusDTO;
@ -65,6 +64,7 @@ import com.arrebol.apc.model.views.constance.LoanInPendingStatusToDeliveryViewCf
import com.arrebol.apc.model.views.constance.TransferInPendingStatusViewCfg;
import com.arrebol.apc.model.ws.parsed.FeesToPayByLoanRequestJaxb;
import com.arrebol.apc.model.ws.parsed.LoanDetailJaxb;
import com.arrebol.apc.model.ws.parsed.LoanRequestedJaxb;
import com.arrebol.apc.model.ws.parsed.NewAmountJaxb;
import com.arrebol.apc.model.ws.parsed.NewTransferAccountJaxb;
import com.arrebol.apc.model.ws.parsed.PersonJaxb;
@ -73,6 +73,7 @@ import java.math.BigDecimal;
import java.math.RoundingMode;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
import java.util.Locale;
@ -454,8 +455,11 @@ public class LoanController implements Serializable {
LoanFeeNotification notification = null;
try {
//DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = new Date();//dateFormat.parse(newAmountJaxb.getStrDate());
//DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//dateFormat.parse(newAmountJaxb.getStrDate());
Calendar calendar = Calendar.getInstance();
calendar.setTime(new Date());
calendar.add(Calendar.HOUR_OF_DAY, -7);
Date date = calendar.getTime();
List<ModelParameter> parameters = new ArrayList<>();
if (newAmountJaxb.isFee()) {
@ -550,7 +554,7 @@ public class LoanController implements Serializable {
Loan loan = loanRepository.findLoanById(transfer.getLoanId());
int referenceNumber = loan.getLastReferenceNumber() + 1;
BigDecimal amountWithoutIVA = transfer.getAmount().divide(new BigDecimal(1.16),RoundingMode.FLOOR);
BigDecimal amountWithoutIVA = transfer.getAmount().divide(new BigDecimal(1.16), RoundingMode.FLOOR);
amountWithoutIVA = amountWithoutIVA.setScale(2, RoundingMode.FLOOR);