From df1ddce0a68b9d88252defe2db1f0521ed64da46 Mon Sep 17 00:00:00 2001 From: solocla Date: Wed, 22 Jul 2026 12:07:20 +0200 Subject: [PATCH] fixed buyer in template --- public/userarea/mapping_template_xls_scheme2.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/public/userarea/mapping_template_xls_scheme2.php b/public/userarea/mapping_template_xls_scheme2.php index 11db485..07a68ce 100644 --- a/public/userarea/mapping_template_xls_scheme2.php +++ b/public/userarea/mapping_template_xls_scheme2.php @@ -617,7 +617,11 @@ $apiSampleJson = $template['api_sample_json'] ?? ''; - + 'Buyer']; + $fixedKey = $fm['fixed_field_key']; + echo htmlspecialchars($fixedFieldLabels[$fixedKey] ?? $fixedKey); + ?> @@ -2192,6 +2196,10 @@ $apiSampleJson = $template['api_sample_json'] ?? ''; const tbody = document.querySelector('#fixedFieldsTable tbody'); if (!tbody) return; + const fixedFieldLabels = { + 'ClienteAnalisi': 'Buyer' + }; + const keysWithDropdown = [ 'ClienteResponsabile', 'ClienteFornitore', @@ -2223,7 +2231,7 @@ $apiSampleJson = $template['api_sample_json'] ?? ''; ${parseInt(r.is_required) === 1 ? 'checked' : ''}> - ${escapeHtml(r.fixed_field_key)} + ${escapeHtml(fixedFieldLabels[r.fixed_field_key] || r.fixed_field_key)} ${escapeHtml(r.data_type || '')}