本文整理匯總了PHP中Societe::get_codefournisseur方法的典型用法代碼示例。如果您正苦於以下問題:PHP Societe::get_codefournisseur方法的具體用法?PHP Societe::get_codefournisseur怎麽用?PHP Societe::get_codefournisseur使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Societe
的用法示例。
在下文中一共展示了Societe::get_codefournisseur方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$object->gps = array(0, 0);
}
}
// To not set code if third party is not concerned. But if it had values, we keep them.
if (empty($object->client) && empty($oldcopy->code_client))
$object->code_client = '';
if (empty($object->fournisseur) && empty($oldcopy->code_fournisseur))
$object->code_fournisseur = '';
//var_dump($object);exit;
$soc = new Societe($db);
// For automatic creation during create action (not used by Dolibarr GUI, can be used by scripts)
if ($object->Accounting->CustomCode == -1)
$object->Accounting->CustomCode = $soc->get_codeclient($object->prefix_comm, 0);
if ($object->Accounting->SupplierCode == -1)
$object->Accounting->SupplierCode = $soc->get_codefournisseur($object->prefix_comm, 1);
//$object->update($socid,$user,1,$oldcopy->codeclient_modifiable(),$oldcopy->codefournisseur_modifiable());
try {
$couchdb->clean($object);
$couchdb->storeDoc($object);
$result = 1;
} catch (Exception $e) {
$error = "Something weird happened: " . $e->getMessage() . " (errcode=" . $e->getCode() . ")\n";
print $error;
exit;
}
if ($result <= 0) {
$error = $object->error;