Debug Documents
This commit is contained in:
parent
93cd227a8c
commit
9413b7f2b6
1 changed files with 5 additions and 5 deletions
10
vendor/view/documents/documents_form.php
vendored
10
vendor/view/documents/documents_form.php
vendored
|
|
@ -86,7 +86,7 @@ try{
|
|||
|
||||
<label for="company_id">Cliente: </label>
|
||||
|
||||
<select class="form-control form-control" id="company_id" name="company_id">
|
||||
<select class="form-control form-control company_id_select" id="company_id" name="company_id">
|
||||
|
||||
<option value="" selected>Selecione</option>
|
||||
<?php
|
||||
|
|
@ -273,7 +273,7 @@ try{
|
|||
|
||||
<?php }} ?>
|
||||
|
||||
<input type="text" name="company_id" id="company_id" value="">
|
||||
<input type="text" name="company_id" id="company_id" class="company_id_input">
|
||||
<input type="hidden" name="documents_id" id="documents_id" value="<?php echo $DocumentsResult->documents_id;?>">
|
||||
<input type="hidden" name="TABLE" value="documents" />
|
||||
<input type="hidden" name="ACTION" value="documents_save" />
|
||||
|
|
@ -302,12 +302,12 @@ try{
|
|||
/** Verifica se o cliente foi informado */
|
||||
if($DocumentsResult->documents_id > 0){ ?>
|
||||
|
||||
$('input:#company_id').val(<?php echo $DocumentsResult->company_id;?>);
|
||||
$('.company_id_input').val(<?php echo $DocumentsResult->company_id;?>);
|
||||
|
||||
/** Caso selecione outro cliente, atualizo o valor */
|
||||
$('select:#company_id').change(function(){
|
||||
$('company_id_select').change(function(){
|
||||
|
||||
$('input:#company_id').val($('select:#company_id option:selected').val());
|
||||
$('.company_id_input').val($('.company_id_input option:selected').val());
|
||||
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue