Corrections

This commit is contained in:
kamel 2021-04-27 12:11:28 +02:00
parent 9f3bcbc39d
commit c645241327
2 changed files with 3 additions and 3 deletions

View File

@ -284,7 +284,7 @@ class PaiementFourn extends Paiement
// Set invoice to paid // Set invoice to paid
if (!$error) { if (!$error) {
$result = $invoice->set_paid($user, '', ''); $result = $invoice->setPaid($user, '', '');
if ($result < 0) { if ($result < 0) {
$this->error = $invoice->error; $this->error = $invoice->error;
$error++; $error++;

View File

@ -1964,7 +1964,7 @@ if ($action == 'create') {
print $desc; print $desc;
print '</div></div>'; print '</div></div>';
if ((empty($origin)) || ((($origin == 'propal') || ($origin == 'commande')) && (! empty($originid)))) { if (empty($origin) || ($origin == 'order_supplier' && !empty($originid))) {
// Deposit - Down payment // Deposit - Down payment
if (empty($conf->global->INVOICE_DISABLE_DEPOSIT)) { if (empty($conf->global->INVOICE_DISABLE_DEPOSIT)) {
print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">'; print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">';
@ -2004,7 +2004,7 @@ if ($action == 'create') {
print '<td>'; print '<td>';
print $desc; print $desc;
print '</td>'; print '</td>';
if (($origin == 'propal') || ($origin == 'commande')) { if ($origin == 'order_supplier') {
print '<td class="nowrap" style="padding-left: 15px">'; print '<td class="nowrap" style="padding-left: 15px">';
$arraylist = array( $arraylist = array(
'amount' => $langs->transnoentitiesnoconv('FixAmount', $langs->transnoentitiesnoconv('Deposit')), 'amount' => $langs->transnoentitiesnoconv('FixAmount', $langs->transnoentitiesnoconv('Deposit')),