|
|
@@ -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() ; |