From ecef2ae5d1d383b135349cc2989c79712fab4324 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 12 May 2023 15:11:46 +0000 Subject: [PATCH] Bug 8179: (QA follow-up) Date received should default to today Signed-off-by: Kyle M Hall --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt index 776fbdc66a..297498ad5f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/orderreceive.tt @@ -426,6 +426,9 @@ tr.append(''+display_string( 'item_type_id', item._strings, item.item_type_id )+''); tr.append(''+display_string( 'materials_notes', item._strings, item.materials_notes )+''); tr.append(''+(item.public_notes||'')+''); + + const fp = document.querySelector("#datereceived")._flatpickr; + fp.setDate(new Date()); }; var items_columns = [null, null, 'external_id', 'home_library_id', -- 2.30.2