本文整理汇总了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;