Fix numeroContrato: use EMPRESA.CODCONTRATO from Firebird, sucursal default 00
- Join EMPRESA table in all RDA queries to get CODCONTRATO (TNS contract code) - Use EMPRESA.CODCONTRATO as numeroContrato instead of raw NIT_EMPRESA - Especialidad always uses default_especialidad (ignore Firebird COD_ESPECIALIDAD) - sucursal defaults to '00' (not empty) in config and endpoints - Fix config template label: especialidad default is TNS code not Firebird code Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
f0514641b3
commit
3017c7956e
@@ -133,7 +133,7 @@
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 text-sm">
|
||||
</div>
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">Especialidad Default <span class="text-gray-400 font-normal">(código Firebird, ej: BAC)</span></label>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">Especialidad Default <span class="text-gray-400 font-normal">(código TNS, ej: 02)</span></label>
|
||||
<input type="text" name="config_especialidad_default"
|
||||
value="{{ configs|selectattr('key', 'equalto', 'especialidad_default')|map(attribute='value')|first|default('') }}"
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 text-sm">
|
||||
|
||||
Reference in New Issue
Block a user