Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 12.0

This commit is contained in:
Laurent Destailleur 2020-11-05 09:43:38 +01:00
commit 9380ea4bc5
3 changed files with 3 additions and 1 deletions

View File

@ -784,7 +784,7 @@ abstract class CommonInvoice extends CommonObject
if (!$error)
{
// Force payment mode of invoice to withdraw
$payment_mode_id = dol_getIdFromCode($this->db, 'PRE', 'c_paiement', 'code', 'id', 1);
$payment_mode_id = dol_getIdFromCode($this->db, ($type == 'bank-transfer' ? 'VIR' : 'PRE'), 'c_paiement', 'code', 'id', 1);
if ($payment_mode_id > 0)
{
$result = $this->setPaymentMethods($payment_mode_id);

View File

@ -645,6 +645,7 @@ class ImportCsv extends ModeleImports
$errorforthistable++;
$error++;
}
else $newval = $arrayrecord[($key - 1)]['val']; //We get new value computed.
}
elseif ($objimport->array_import_convertvalue[0][$val]['rule'] == 'numeric')
{

View File

@ -672,6 +672,7 @@ class ImportXlsx extends ModeleImports
$errorforthistable++;
$error++;
}
else $newval = $arrayrecord[($key - 1)]['val']; //We get new value computed.
}
elseif ($objimport->array_import_convertvalue[0][$val]['rule'] == 'numeric')
{