Skip to content

Commit

Permalink
Upgrade API to Dolibarr 13
Browse files Browse the repository at this point in the history
  • Loading branch information
naku committed Jun 4, 2021
1 parent 50a2010 commit c29dcbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c29dcbb

Please sign in to comment.