Bug 38201: Restore format_date to vendor resource

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Matt Blenkinsop 2025-09-12 13:59:59 +01:00 committed by Lucas Gass
parent 694c87bfb4
commit 65e7ecfd43
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,8 @@ export default {
routeAction: String,
},
setup(props, { emit }) {
const format_date = $date;
const vendorStore = inject("vendorStore");
const { currencies, gstValues } = storeToRefs(vendorStore);
@ -832,7 +834,7 @@ export default {
};
const appendToShow = componentData => {
let format_date = componentData.instancedResource.format_date;
let formatDate = format_date;
return [
{
type: "component",
@ -875,7 +877,7 @@ export default {
) {
return type == "sort"
? row.contractstartdate
: format_date(
: formatDate(
row.contractstartdate
);
},
@ -891,7 +893,7 @@ export default {
) {
return type == "sort"
? row.contractenddate
: format_date(
: formatDate(
row.contractenddate
);
},