本文整理匯總了PHP中Facture::insertExtraFields方法的典型用法代碼示例。如果您正苦於以下問題:PHP Facture::insertExtraFields方法的具體用法?PHP Facture::insertExtraFields怎麽用?PHP Facture::insertExtraFields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Facture
的用法示例。
在下文中一共展示了Facture::insertExtraFields方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: restrictedArea
}
$result = restrictedArea($user, 'facture', $id, '');
$diroutputpdf = $conf->facture->dir_output . '/unpaid/temp';
if (!$user->rights->societe->client->voir || $socid) {
$diroutputpdf .= '/private/' . $user->id;
}
// If user has no permission to see all, output dir is specific to user
if (!empty($factor_depot_classify)) {
$TFactorDepot = GETPOST('toGenerate');
//var_dump($TFactorDepot);
if (!empty($TFactorDepot)) {
foreach ($TFactorDepot as $facref) {
$f = new Facture($db);
$f->fetch(0, $facref);
$f->array_options['options_factor_depot'] = 1;
$f->insertExtraFields();
TFactor::addEvent($facid, $f->ref);
}
}
setEventMessage('BillsClassifyDeposed');
}
/*
* Action
*/
if ($action == "builddoc" && $user->rights->facture->lire && !GETPOST('button_search') && !empty($builddoc_generatebutton)) {
if (is_array($_POST['toGenerate'])) {
$arrayofinclusion = array();
foreach ($_POST['toGenerate'] as $tmppdf) {
$arrayofinclusion[] = preg_quote($tmppdf . '.pdf', '/');
}
$factures = dol_dir_list($conf->facture->dir_output, 'all', 1, implode('|', $arrayofinclusion), '\\.meta$|\\.png', 'date', SORT_DESC);