Add test-rda page, fix prefijo/remisionante/especialidad for TNS RDA sends
- New /test-rda route: list Firebird candidates with valid contract/factura, send individual RDA with auto tercero creation and full result display - json_generator: use prefijo_tns_default config instead of Firebird PREFIJO, add profesionalRemisionante from DOCIDMEDICO or remisionante_default config - All queries: add DOCIDMEDICO column from MEDICO JOIN - automation/transaccion: add remisionante_default and prefijo_tns_default params - config: add remisionante_default (00) and prefijo_tns_default (00) keys - automation SQL: filter NUM_FACTURA > 0 to skip unbilled records - config.html: add UI fields for new config keys Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
3017c7956e
commit
c64a68ec6f
@@ -127,7 +127,7 @@
|
||||
<h4 class="font-medium text-gray-800"><i class="fas fa-user-md mr-2 text-green-500"></i>Valores por Defecto RDA</h4>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">Profesional Default <span class="text-gray-400 font-normal">(código TNS, ej: 02)</span></label>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">Profesional Default <span class="text-gray-400 font-normal">(código TNS, ej: XIMENA)</span></label>
|
||||
<input type="text" name="config_profesional_default"
|
||||
value="{{ configs|selectattr('key', 'equalto', 'profesional_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">
|
||||
@@ -139,6 +139,20 @@
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 text-sm">
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
<div>
|
||||
<label class="block text-sm font-medium text-gray-700 mb-1">Remisionante Default <span class="text-gray-400 font-normal">(cédula médico si no hay en Firebird)</span></label>
|
||||
<input type="text" name="config_remisionante_default"
|
||||
value="{{ configs|selectattr('key', 'equalto', 'remisionante_default')|map(attribute='value')|first|default('00') }}"
|
||||
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">Prefijo TNS Default <span class="text-gray-400 font-normal">(prefijo de facturación TNS, ej: 00)</span></label>
|
||||
<input type="text" name="config_prefijo_tns_default"
|
||||
value="{{ configs|selectattr('key', 'equalto', 'prefijo_tns_default')|map(attribute='value')|first|default('00') }}"
|
||||
class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 text-sm">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit"
|
||||
class="px-6 py-2.5 bg-blue-600 hover:bg-blue-700 text-white font-medium rounded-lg transition-colors">
|
||||
|
||||
Reference in New Issue
Block a user