Bläddra i källkod

Bug : affichage des points de vente lorsqu'ils ne sont pas définis dans la production

master
keun 7 år sedan
förälder
incheckning
912b3a00c0
1 ändrade filer med 11 tillägg och 9 borttagningar
  1. +11
    -9
      backend/web/js/lechatdesnoisettes.js

+ 11
- 9
backend/web/js/lechatdesnoisettes.js Visa fil

@@ -62,15 +62,17 @@ function chat_index_commandes_points_vente_livraison() {

function chat_index_commandes_maj_points_vente() {
var nb = $('#productionpointvente-productions_point_vente input[type=checkbox]:checked').size() ;
if(nb == 0)
{
$('#panel-commandes #tabs-points-vente, #panel-commandes #commandes-points-vente').hide() ;
$('#panel-commandes .alert-danger').show();
}
else {
$('#panel-commandes #tabs-points-vente, #panel-commandes #commandes-points-vente').show() ;
$('#panel-commandes .alert-danger').hide();
if($('#productions-point-vente').size()) {
var nb = $('#productionpointvente-productions_point_vente input[type=checkbox]:checked').size() ;
if(nb == 0)
{
$('#panel-commandes #tabs-points-vente, #panel-commandes #commandes-points-vente').hide() ;
$('#panel-commandes .alert-danger').show();
}
else {
$('#panel-commandes #tabs-points-vente, #panel-commandes #commandes-points-vente').show() ;
$('#panel-commandes .alert-danger').hide();
}
}
var id_production = $('#id-production').val() ;

Laddar…
Avbryt
Spara