Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
c77184c848
@ -163,7 +163,7 @@ if (!empty($conf->facture->enabled) && $user->rights->facture->lire)
|
||||
|
||||
$sql .= " GROUP BY f.rowid, f.ref, f.datef, f.total, f.tva, f.total_ttc, f.ref_client, f.type, ";
|
||||
$sql .= "s.email, s.nom, s.rowid, s.code_client, s.code_compta, s.code_fournisseur, s.code_compta_fournisseur";
|
||||
$sql .= ", cc.rowid as country_id, cc.code as country_code";
|
||||
$sql .= ", cc.rowid, cc.code";
|
||||
|
||||
// Add Group from hooks
|
||||
$parameters = array();
|
||||
|
||||
@ -151,7 +151,7 @@ if ($prev_id > 0 || $ref)
|
||||
}
|
||||
|
||||
|
||||
$rej = new RejetPrelevement($db, $user);
|
||||
$rej = new RejetPrelevement($db, $user, $type);
|
||||
|
||||
/*
|
||||
* List errors
|
||||
|
||||
@ -95,7 +95,7 @@ if ($action == 'confirm_rejet')
|
||||
if ($lipre->fetch($id) == 0)
|
||||
|
||||
{
|
||||
$rej = new RejetPrelevement($db, $user,$type);
|
||||
$rej = new RejetPrelevement($db, $user, $type);
|
||||
|
||||
$rej->create($user, $id, GETPOST('motif', 'alpha'), $daterej, $lipre->bon_rowid, GETPOST('facturer', 'int'));
|
||||
|
||||
@ -158,7 +158,7 @@ if ($id)
|
||||
|
||||
if ($lipre->statut == 3)
|
||||
{
|
||||
$rej = new RejetPrelevement($db, $user);
|
||||
$rej = new RejetPrelevement($db, $user, $type);
|
||||
$resf = $rej->fetch($lipre->id);
|
||||
if ($resf == 0)
|
||||
{
|
||||
|
||||
@ -65,7 +65,7 @@ llxHeader('', $title);
|
||||
if ($sortorder == "") $sortorder = "DESC";
|
||||
if ($sortfield == "") $sortfield = "p.datec";
|
||||
|
||||
$rej = new RejetPrelevement($db, $user);
|
||||
$rej = new RejetPrelevement($db, $user, $type);
|
||||
$line = new LignePrelevement($db);
|
||||
|
||||
$hookmanager->initHooks(array('withdrawalsreceiptsrejectedlist'));
|
||||
|
||||
@ -214,7 +214,7 @@ if ($resql)
|
||||
print '<td class="right">%</td><td class="right">'.$langs->trans("Amount").'</td><td class="right">%</td></tr>';
|
||||
|
||||
require_once DOL_DOCUMENT_ROOT.'/compta/prelevement/class/rejetprelevement.class.php';
|
||||
$Rejet = new RejetPrelevement($db, $user);
|
||||
$Rejet = new RejetPrelevement($db, $user, $type);
|
||||
|
||||
while ($i < $num)
|
||||
{
|
||||
|
||||
@ -461,3 +461,4 @@ InEEC=Europe (EEC)
|
||||
RestOfEurope=Rest of Europe (EEC)
|
||||
OutOfEurope=Out of Europe (EEC)
|
||||
CurrentOutstandingBillLate=Current outstanding bill late
|
||||
BecarefullChangeThirdpartyBeforeAddProductToInvoice=Be carefull, depending on your product price settings, you should change thirdparty before adding product to POS.
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
* Copyright (C) 2014 Ion agorria <ion@agorria.com>
|
||||
* Copyright (C) 2016-2018 Ferran Marcet <fmarcet@2byte.es>
|
||||
* Copyright (C) 2017 Gustavo Novaro
|
||||
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2019-2020 Frédéric France <frederic.france@netlogic.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -2441,6 +2441,7 @@ class Product extends CommonObject
|
||||
$sql .= " WHERE ";
|
||||
$sql .= " b.entity IN (".getEntity('bom').")";
|
||||
$sql .= " AND b.fk_product =".$this->id;
|
||||
$sql .= " GROUP BY b.rowid";
|
||||
|
||||
$result = $this->db->query($sql);
|
||||
if ($result) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user