本文整理匯總了PHP中FactureFournisseur::deleteline方法的典型用法代碼示例。如果您正苦於以下問題:PHP FactureFournisseur::deleteline方法的具體用法?PHP FactureFournisseur::deleteline怎麽用?PHP FactureFournisseur::deleteline使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FactureFournisseur
的用法示例。
在下文中一共展示了FactureFournisseur::deleteline方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: setEventMessage
setEventMessage($object->errors, 'errors');
}
}
} elseif ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->fournisseur->facture->supprimer) {
$object->fetch($id);
$object->fetch_thirdparty();
$result = $object->delete($id);
if ($result > 0) {
header('Location: list.php');
exit;
} else {
$mesg = '<div class="error">' . $object->error . '</div>';
}
} elseif ($action == 'confirm_delete_line' && $confirm == 'yes' && $user->rights->fournisseur->facture->creer) {
$object->fetch($id);
$ret = $object->deleteline(GETPOST('lineid'));
if ($ret > 0) {
header('Location: ' . $_SERVER["PHP_SELF"] . '?id=' . $id);
exit;
} else {
$mesg = '<div class="error">' . $object->error . '</div>';
/* Fix bug 1485 : Reset action to avoid asking again confirmation on failure */
$action = '';
}
} elseif ($action == 'confirm_paid' && $confirm == 'yes' && $user->rights->fournisseur->facture->creer) {
$object->fetch($id);
$result = $object->set_paid($user);
if ($result < 0) {
setEventMessage($object->error, 'errors');
}
}
示例2: header
$_GET['action']='create';
$_GET['socid']=$_POST['socid'];
}
else
{
$db->commit();
header('Location: fiche.php?facid='.$facid);
exit;
}
}
}
if ($_GET['action'] == 'del_ligne')
{
$facfou = new FactureFournisseur($db,'',$_GET['facid']);
$facfou->deleteline($_GET['lineid']);
$_GET['action'] = 'edit';
}
// Modification d'une ligne
if ($_REQUEST['action'] == 'update_line')
{
if ($_REQUEST['etat'] == '1' && ! $_REQUEST['cancel']) // si on valide la modification
{
$facfou = new FactureFournisseur($db);
$facfou->fetch($_GET['facid']);
if ($_POST['puht'])
{
$pu=$_POST['puht'];
$price_base_type='HT';