56 lines
1.6 KiB
PHP
Executable File
56 lines
1.6 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
$reqDelete ='';
|
|
|
|
// ---------------------------------------------------
|
|
// Delete des options
|
|
// ---------------------------------------------------
|
|
$resConn='';
|
|
$reqDelete="DELETE from prdOptions WHERE idLgCde=" .$idLgCde. " and itemNumber=" .$lineItemNumber[$opt]. ";";
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug(2, ['ReqDelete options ' => $reqDelete], 'reqDeleteOption.php'); }
|
|
$resConn=$idPdo->query($reqDelete);
|
|
if ($resConn) {
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug(2, ['Supression des options réussie' => 'oui' ], 'r'); }
|
|
}
|
|
else {
|
|
if (isset($debug[2]) && $debug[2] == '1' ) {
|
|
$debugMsg .= monDebug(2, ['Supression des options echec' => 'non' ], '');
|
|
$admMsgClass='ko';
|
|
}
|
|
}
|
|
|
|
$_SESSION['nLigne']=0;
|
|
|
|
$_SESSION['tabQuantite']=array();
|
|
|
|
$_SESSION['tabItemNumber']=array();
|
|
|
|
$lineItemLibelle[$opt]='';
|
|
$_SESSION['lineItemLibelle']=array();
|
|
|
|
$lineItemPrixHT[$opt]='';
|
|
$_SESSION['lineItemPrixHT']=array();
|
|
|
|
$lineItemPrixTTC[$opt]='';
|
|
$_SESSION['lineItemPrixTTC']=array();
|
|
|
|
$lineItemPrixHtTOT[$opt]='';
|
|
$_SESSION['lineItemPrixHtTOT']=array();
|
|
|
|
$lineItemPrixTtcTOT[$opt]='';
|
|
$_SESSION['lineItemPrixTtcTOT']=array();
|
|
|
|
$lineItemQuantite[$opt]='';
|
|
$_SESSION['lineItemQuantite']=array();
|
|
|
|
$lineItemTvaTaux[$opt]='';
|
|
$_SESSION['lineItemTvaTaux']=array();
|
|
|
|
// pour panier
|
|
$lineItemNumber[$opt]='';
|
|
$_SESSION['lineItemNumber']=array();
|
|
$nLigne --;
|
|
|
|
if (isset($debug[2]) && $debug[2] == '1' ) { $debugMsg .= monDebug(2, ['$_SESSION[nLigne]' => $_SESSION['nLigne'] ], 'r'); }
|
|
?>
|