33 lines
1.4 KiB
PHP
Executable File
33 lines
1.4 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$reqDelete ='';
|
|
|
|
// ---------------------------------------------------
|
|
// Delete des options
|
|
// ---------------------------------------------------
|
|
$resConn='';
|
|
$reqDelete="DELETE FROM `prdOptions` WHERE idLgCde=" .$idLgCde. " AND idCde=" .$idCde. " AND itemNumber=" .$tabItemNumber[$u]. ";";
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .='<b><span class="debugStyle" >reqDelete options aucun=></b> ' .$reqDelete;}
|
|
$resConn=$idPdo->query($reqDelete);
|
|
if ($resConn) {
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .='<span class="msgOk"><span style="font-weight:bold">Supression des options réussie resConn =></span></span> ' .$resConn;}
|
|
}
|
|
else {
|
|
if (isset($debug[2]) && $debug[2] == '1' ) $debugMsg .='<br><span class="msgKo">Echec de la suppression des anciennes options. (fichier reqDeleteOptionsAucun.php) ==> </span>' .$reqDelete; $admMsgClass='ko';
|
|
}
|
|
|
|
$_SESSION['nLigne']=0;
|
|
$_SESSION['tabQuantite']=array();
|
|
$_SESSION['tabItemNumber']=array();
|
|
$_SESSION['lineItemLibelle']=array();
|
|
$_SESSION['lineItemPrixHT']=array();
|
|
$_SESSION['lineItemPrixTTC']=array();
|
|
$_SESSION['lineItemPrixHtTOT']=array();
|
|
$_SESSION['lineItemPrixTtcTOT']=array();
|
|
$_SESSION['lineItemQuantite']=array();
|
|
$_SESSION['lineItemTvaTaux']=array();
|
|
|
|
// pour panier
|
|
$_SESSION['lineItemNumber']=array();
|
|
?>
|