Feat(SQL): Location Get Many and Calc Stored Procedures created with logic using Location Link table.

This commit is contained in:
2025-07-15 15:07:40 +01:00
parent 7573f329e9
commit a3fd8b12fe
44 changed files with 2590 additions and 873 deletions

View File

@@ -0,0 +1,33 @@
{% if is_blank_row %}
<tr class="{{ model.FLAG_ROW_NEW }} {{ model.FLAG_LOCATION }}" {{ model.ATTR_ID_LOCATION }}>
<td class="{{ model.FLAG_LOCATION_PARENT }} {{ model.FLAG_DDL_PREVIEW }}">
{% set attribute_text = model.FLAG_LOCATION_PARENT %}
{% include 'components/dog/_preview_DDL_location.html' %}
</td>
<td class="{{ model.FLAG_NAME }}">
<input type="text"
class="{{ model.FLAG_NAME }}"
{{ model.ATTR_VALUE_CURRENT }} {{ model.ATTR_VALUE_PREVIOUS }} />
</td>
{% set active = True %}
{% include 'components/dog/_td_active.html' %}
</tr>
{% else %}
<tr class="{{ model.FLAG_LOCATION }}" {{ model.ATTR_ID_LOCATION }}="{{ location.id_location }}">
{% set location_preview = location.location_parent %}
<td class="{{ model.FLAG_LOCATION_PARENT }} {{ model.FLAG_DDL_PREVIEW }}">
{% set attribute_text = model.FLAG_LOCATION_PARENT %}
{% include 'components/dog/_preview_DDL_location.html' %}
</td>
<td class="{{ model.FLAG_NAME }}">
<input type="text"
class="{{ model.FLAG_NAME }}"
{{ model.ATTR_VALUE_CURRENT }}="{{ model.format_null_string_as_blank(location.name)|escape }}"
{{ model.ATTR_VALUE_PREVIOUS }}="{{ model.format_null_string_as_blank(location.name)|escape }}"
value="{{ model.format_null_string_as_blank(location.name) }}" />
</td>
{% set active = location.active %}
{% include 'components/dog/_td_active.html' %}
</tr>
{% endif %}