Merge branch '12.0' of git@github.com:Dolibarr/dolibarr.git into 12.0
This commit is contained in:
commit
9380ea4bc5
@ -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);
|
||||
|
||||
@ -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')
|
||||
{
|
||||
|
||||
@ -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')
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user