retouche get tarifs

This commit is contained in:
2021-06-04 12:26:13 +02:00
parent 83860d3c21
commit 1356fc2255
9 changed files with 117 additions and 188 deletions

View File

@@ -119,6 +119,7 @@
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
$(document).ready(function() {
groupe = "${dossier.groupe}"
// validate the form
$('#devis_ligne-form').formValidation({
framework: 'bootstrap',
@@ -146,12 +147,14 @@ $(document).ready(function() {
$('#libelle').autocomplete({
minLength: 3,
appendTo: "#TX",
source: function (request, response) {
$.ajax({
url:'/ajax_texte',
dataType: 'json',
data: {
recherche: 'TX' + request.term,
groupe: 'TEXTE',
libelle: request.term,
},
success: function (data) {
response( data );
@@ -167,7 +170,8 @@ $(document).ready(function() {
url:'/ajax_texte',
dataType: 'json',
data: {
recherche: 'AR' + request.term,
groupe: groupe,
libelle: request.term,
},
success: function (data) {
response( data );
@@ -180,7 +184,10 @@ $(document).ready(function() {
// lecture de l'article
$.ajax({
url: '/ajax_article',
data: {ref:ref},
data: {
groupe: groupe,
ref:ref
},
dataType: 'json',
success:function(response){
var len = response.length;