Merge branch 'develop' of https://github.com/Dolibarr/dolibarr into develop
This commit is contained in:
commit
ef1838d679
@ -432,5 +432,5 @@
|
|||||||
<rule ref="PSR2.Classes.ClassDeclaration" />
|
<rule ref="PSR2.Classes.ClassDeclaration" />
|
||||||
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
||||||
<rule ref="PSR2.Files.EndFileNewline.TooMany" />
|
<rule ref="PSR2.Files.EndFileNewline.TooMany" />
|
||||||
|
<rule ref="PSR2.Files.EndFileNewline.NoneFound" />
|
||||||
</ruleset>
|
</ruleset>
|
||||||
|
|||||||
@ -94,7 +94,7 @@ if (! GETPOSTISSET('date_startmonth') && (empty($date_start) || empty($date_end)
|
|||||||
|
|
||||||
$idpays = $mysoc->country_id;
|
$idpays = $mysoc->country_id;
|
||||||
|
|
||||||
$sql = "SELECT f.rowid, f.ref, f.type, f.datef as df, f.libelle,f.ref_supplier, f.date_lim_reglement as dlf, f.close_code,";
|
$sql = "SELECT f.rowid, f.ref as ref, f.type, f.datef as df, f.libelle,f.ref_supplier, f.date_lim_reglement as dlf, f.close_code,";
|
||||||
$sql .= " fd.rowid as fdid, fd.description, fd.product_type, fd.total_ht, fd.tva as total_tva, fd.total_localtax1, fd.total_localtax2, fd.tva_tx, fd.total_ttc, fd.vat_src_code,";
|
$sql .= " fd.rowid as fdid, fd.description, fd.product_type, fd.total_ht, fd.tva as total_tva, fd.total_localtax1, fd.total_localtax2, fd.tva_tx, fd.total_ttc, fd.vat_src_code,";
|
||||||
$sql .= " s.rowid as socid, s.nom as name, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur,";
|
$sql .= " s.rowid as socid, s.nom as name, s.fournisseur, s.code_client, s.code_fournisseur, s.code_compta, s.code_compta_fournisseur,";
|
||||||
$sql .= " p.accountancy_code_buy , aa.rowid as fk_compte, aa.account_number as compte, aa.label as label_compte";
|
$sql .= " p.accountancy_code_buy , aa.rowid as fk_compte, aa.account_number as compte, aa.label as label_compte";
|
||||||
|
|||||||
@ -220,4 +220,4 @@ dol_fiche_end();
|
|||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
llxFooter();
|
llxFooter();
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
@ -57,4 +57,4 @@ $url = $conf->global->BLOCKEDLOG_AUTHORITY_URL.'/blockedlog/ajax/authority.php?s
|
|||||||
|
|
||||||
$res = file_get_contents($url);
|
$res = file_get_contents($url);
|
||||||
//echo $url;
|
//echo $url;
|
||||||
echo $res;
|
echo $res;
|
||||||
|
|||||||
@ -319,6 +319,7 @@ class Mailing extends CommonObject
|
|||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->error=$object->error;
|
$this->error=$object->error;
|
||||||
|
$this->errors=array_merge($this->errors, $object->errors);
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1285,7 +1285,12 @@ class Propal extends CommonObject
|
|||||||
// Create clone
|
// Create clone
|
||||||
$object->context['createfromclone']='createfromclone';
|
$object->context['createfromclone']='createfromclone';
|
||||||
$result=$object->create($user);
|
$result=$object->create($user);
|
||||||
if ($result < 0) $error++;
|
if ($result < 0)
|
||||||
|
{
|
||||||
|
$this->error = $object->error;
|
||||||
|
$this->errors = array_merge($this->errors, $object->errors);
|
||||||
|
$error++;
|
||||||
|
}
|
||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -426,4 +426,4 @@ class CashControl extends CommonObject
|
|||||||
|
|
||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -73,4 +73,4 @@ if ($action == 'deletecomment')
|
|||||||
$action='';
|
$action='';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5015,7 +5015,7 @@ abstract class CommonObject
|
|||||||
if ($this->array_options[$key] === '') $mandatorypb=true;
|
if ($this->array_options[$key] === '') $mandatorypb=true;
|
||||||
if ($mandatorypb)
|
if ($mandatorypb)
|
||||||
{
|
{
|
||||||
dol_syslog($this->error);
|
dol_syslog("Mandatory extra field ".$key." is empty");
|
||||||
$this->errors[]=$langs->trans('ErrorFieldRequired', $attributeLabel);
|
$this->errors[]=$langs->trans('ErrorFieldRequired', $attributeLabel);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -447,4 +447,4 @@ class EmailSenderProfileLine
|
|||||||
// @var mixed Sample line property 2
|
// @var mixed Sample line property 2
|
||||||
public $prop2;
|
public $prop2;
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -53,4 +53,4 @@ function fiscalyear_prepare_head(Fiscalyear $object)
|
|||||||
complete_head_from_modules($conf,$langs,$object,$head,$h,'fiscalyear','remove');
|
complete_head_from_modules($conf,$langs,$object,$head,$h,'fiscalyear','remove');
|
||||||
|
|
||||||
return $head;
|
return $head;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -162,4 +162,4 @@ class modDon extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_init($sql,$options);
|
return $this->_init($sql,$options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -257,4 +257,4 @@ class modSupplierProposal extends DolibarrModules
|
|||||||
|
|
||||||
return $this->_remove($sql, $options);
|
return $this->_remove($sql, $options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -519,4 +519,4 @@ class doc_generic_reception_odt extends ModelePdfReception
|
|||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -143,4 +143,4 @@ class mod_reception_beryl extends ModelNumRefReception
|
|||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
return $this->getNextValue($objsoc,$objforref);
|
return $this->getNextValue($objsoc,$objforref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -134,4 +134,4 @@ class mod_reception_moonstone extends ModelNumRefReception
|
|||||||
// phpcs:enable
|
// phpcs:enable
|
||||||
return $this->getNextValue($objsoc,$objforref);
|
return $this->getNextValue($objsoc,$objforref);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -97,4 +97,4 @@ class LogHandler
|
|||||||
{
|
{
|
||||||
$this->ident+=$ident;
|
$this->ident+=$ident;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -83,4 +83,4 @@ interface LogHandlerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function export($content);
|
public function export($content);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -124,4 +124,4 @@ class mod_syslog_syslog extends LogHandler implements LogHandlerInterface
|
|||||||
syslog($content['level'], $content['message']);
|
syslog($content['level'], $content['message']);
|
||||||
closelog();
|
closelog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -527,4 +527,4 @@ print '<script type="text/javascript" language="javascript">
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
print '</table>';
|
print '</table>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
print '<br>';
|
print '<br>';
|
||||||
|
|||||||
@ -45,4 +45,4 @@ if (! empty($extrafieldsobjectkey)) // $extrafieldsobject is the $object->table_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,4 +26,4 @@ if (! empty($extrafieldsobjectkey)) // $extrafieldsobject is the $object->table_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -518,4 +518,4 @@ class DataPolicyCron
|
|||||||
$contacts->getAllAdherentsNotInformed();
|
$contacts->getAllAdherentsNotInformed();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -356,6 +356,7 @@ class Productbatch extends CommonObject
|
|||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->error=$object->error;
|
$this->error=$object->error;
|
||||||
|
$this->errors=array_merge($this->errors, $object->errors);
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -924,7 +924,8 @@ class Productcustomerprice extends CommonObject
|
|||||||
// Other options
|
// Other options
|
||||||
if ($result < 0) {
|
if ($result < 0) {
|
||||||
$this->error = $object->error;
|
$this->error = $object->error;
|
||||||
$error ++;
|
$this->errors=array_merge($this->errors, $object->errors);
|
||||||
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! $error) {
|
if (! $error) {
|
||||||
|
|||||||
@ -589,6 +589,7 @@ class Propalmergepdfproduct extends CommonObject
|
|||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
$this->error=$object->error;
|
$this->error=$object->error;
|
||||||
|
$this->errors=array_merge($this->errors, $object->errors);
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1973,4 +1973,4 @@ class Reception extends CommonObject
|
|||||||
|
|
||||||
return CommonObject::commonReplaceThirdparty($db, $origin_id, $dest_id, $tables);
|
return CommonObject::commonReplaceThirdparty($db, $origin_id, $dest_id, $tables);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,4 +59,4 @@ if ($action=="search"){
|
|||||||
$rows[] = $row;
|
$rows[] = $row;
|
||||||
}
|
}
|
||||||
echo json_encode($rows);
|
echo json_encode($rows);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -197,7 +197,9 @@ class Users extends DolibarrApi
|
|||||||
*
|
*
|
||||||
* @param int $id Id of account to update
|
* @param int $id Id of account to update
|
||||||
* @param array $request_data Datas
|
* @param array $request_data Datas
|
||||||
* @return int
|
* @return array
|
||||||
|
*
|
||||||
|
* @throws RestException
|
||||||
*/
|
*/
|
||||||
function put($id, $request_data = null)
|
function put($id, $request_data = null)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -57,4 +57,4 @@ if ($res == -1) {
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
print json_encode($res);
|
print json_encode($res);
|
||||||
|
|||||||
@ -346,4 +346,4 @@ class ProductAttribute
|
|||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -226,4 +226,4 @@ class ProductAttributeValue
|
|||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -157,4 +157,4 @@ WHERE c2v.fk_prod_combination = ".(int) $fk_combination;
|
|||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user