diff --git a/koha-tmpl/intranet-tmpl/prog/js/fetch/circulation-api-client.js b/koha-tmpl/intranet-tmpl/prog/js/fetch/circulation-api-client.js index 1eeb06824c..4f32d5caa5 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/fetch/circulation-api-client.js +++ b/koha-tmpl/intranet-tmpl/prog/js/fetch/circulation-api-client.js @@ -33,13 +33,19 @@ export class CirculationAPIClient extends HttpClient { renew: checkout => this.post({ endpoint: "renew", - body: "itemnumber=%s&borrowernumber=%s&branchcode=%s&override_limit=%s".format( - checkout.item_id, - checkout.patron_id, - checkout.library_id, - checkout.override_limit - ), - //+ ( checkout.seen !== undefined ? "&seen=%s".format(checkout.seen) : "" ) + (checkout.date_due !== undefined ? "&date_due=%s".format(checkout.date_due) : ""), + body: + "itemnumber=%s&borrowernumber=%s&branchcode=%s&override_limit=%s".format( + checkout.item_id, + checkout.patron_id, + checkout.library_id, + checkout.override_limit + ) + + (checkout.seen !== undefined + ? "&seen=%s".format(checkout.seen) + : "") + + (checkout.date_due !== undefined + ? "&date_due=%s".format(checkout.date_due) + : ""), headers: { "Content-Type": "application/x-www-form-urlencoded;charset=utf-8",