diff --git a/app/helpers/api/dolibarr/model/supplierInvoice/SupplierinvoicesAddPaymentModel.java b/app/helpers/api/dolibarr/model/supplierInvoice/SupplierinvoicesAddPaymentModel.java index fb9b1f9..f2ae2e9 100755 --- a/app/helpers/api/dolibarr/model/supplierInvoice/SupplierinvoicesAddPaymentModel.java +++ b/app/helpers/api/dolibarr/model/supplierInvoice/SupplierinvoicesAddPaymentModel.java @@ -7,7 +7,7 @@ */ public class SupplierinvoicesAddPaymentModel { public Long datepaye = new Date().getTime() / 1000; /* Unix timestamp */ - public Integer paiementid; /* Payment method */ + public Integer payment_mode_id; /* Payment method */ public String closepaidinvoices = "yes"; public Integer accountid; public String num_paiement; diff --git a/app/helpers/api/dolibarr/service/SupplierInvoiceService.java b/app/helpers/api/dolibarr/service/SupplierInvoiceService.java index fa238ff..729fa5b 100755 --- a/app/helpers/api/dolibarr/service/SupplierInvoiceService.java +++ b/app/helpers/api/dolibarr/service/SupplierInvoiceService.java @@ -50,7 +50,7 @@ public Integer payInvoice(Integer invoiceId, SupplierinvoicesAddPaymentModel pay */ public Integer payInvoice(Integer invoiceId, Integer accountId, Integer paymentMode, Date paymentDate) { var model = new SupplierinvoicesAddPaymentModel(); - model.paiementid = paymentMode; + model.payment_mode_id = paymentMode; model.accountid = accountId; if (paymentDate != null) { model.datepaye = paymentDate.getTime() / 1000;