use of com.axelor.apps.account.db.PaymentVoucher in project axelor-open-suite by axelor.
the class PaymentVoucherController method reloadPaymentVoucher.
public void reloadPaymentVoucher(ActionRequest request, ActionResponse response) {
try {
PaymentVoucher contextPaymentVoucher = request.getContext().asType(PaymentVoucher.class);
PaymentVoucher paymentVoucher = Beans.get(PaymentVoucherRepository.class).find(contextPaymentVoucher.getId());
if (paymentVoucher != null) {
Beans.get(PaymentVoucherLoadService.class).reloadElementToPayList(paymentVoucher, contextPaymentVoucher);
}
response.setReload(true);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
Aggregations