From 93cd227a8c87561be134151bacfe6fd567ab5e52 Mon Sep 17 00:00:00 2001 From: Kenio de Souza Date: Sat, 6 Sep 2025 07:24:34 -0300 Subject: [PATCH] Debug Documents --- vendor/view/documents/documents_form.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/vendor/view/documents/documents_form.php b/vendor/view/documents/documents_form.php index 5e9d751..b334163 100644 --- a/vendor/view/documents/documents_form.php +++ b/vendor/view/documents/documents_form.php @@ -302,9 +302,15 @@ try{ /** Verifica se o cliente foi informado */ if($DocumentsResult->documents_id > 0){ ?> - $('input#company_id').val(company_id;?>); - alert(); + $('input:#company_id').val(company_id;?>); + /** Caso selecione outro cliente, atualizo o valor */ + $('select:#company_id').change(function(){ + + $('input:#company_id').val($('select:#company_id option:selected').val()); + + }); + }); @@ -359,15 +365,6 @@ try{ /** inputs mask */ loadMask(); - 0){ ?> - - $('#company_id').val(); - alert(); - - - /** tooltips */ $('[data-toggle="tooltip"]').tooltip();