Skip to content

Commit

Permalink
Fix : uniformize RCUR instead of RECUR (#25536)
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime authored Aug 2, 2023
1 parent fe7eed9 commit b5d84cb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion htdocs/compta/prelevement/class/bonprelevement.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ public function create($banque = 0, $agence = 0, $mode = 'real', $format = 'ALL'
if ($format == 'FRST' && $bac->frstrecur != 'FRST') {
continue;
}
if ($format == 'RCUR' && ($bac->frstrecur != 'RCUR' && $bac->frstrecur != 'RECUR')) {
if ($format == 'RCUR' && $bac->frstrecur != 'RCUR') {
continue;
}
}
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/bank/doc/pdf_sepamandate.modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function write_file($object, $outputlangs, $srctemplatepath = '', $hidede
$pdf->MultiCell($this->page_largeur - $this->marge_gauche - $this->marge_droite, 3, $txt, 0, 'L');
$pdf->Rect(80, $posY, 5, 5);
$pdf->SetXY(80, $posY);
if ($object->frstrecur == 'RECUR') {
if ($object->frstrecur == 'RCUR') {
$pdf->MultiCell(5, 3, 'X', 0, 'L');
}
$pdf->SetXY(86, $posY);
Expand Down
4 changes: 3 additions & 1 deletion htdocs/install/mysql/migration/18.0.0-19.0.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@
-- V19
ALTER TABLE llx_ticket ADD COLUMN fk_contract integer DEFAULT 0 after fk_project;

UPDATE llx_product_lot SET manufacturing_date = datec WHERE manufacturing_date IS NULL
UPDATE llx_product_lot SET manufacturing_date = datec WHERE manufacturing_date IS NULL;

UPDATE llx_societe_rib SET frstrecur = 'RCUR' WHERE frstrecur = 'RECUR';
2 changes: 1 addition & 1 deletion htdocs/societe/class/companybankaccount.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CompanyBankAccount extends Account
public $default_rib;

/**
* Value 'FRST' or 'RCUR' (For SEPA mandate). Warning, in database, we store 'RECUR'.
* Value 'FRST' or 'RCUR' (For SEPA mandate)
*
* @var string
*/
Expand Down
4 changes: 2 additions & 2 deletions htdocs/societe/paymentmodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@
print '<td>'.$form->selectDate($date_rum ? $date_rum : $companybankaccount->date_rum, 'date_rum', 0, 0, 1, 'date_rum', 1, 1).'</td></tr>';

print '<tr><td>'.$langs->trans("WithdrawMode").'</td><td>';
$tblArraychoice = array("FRST" => $langs->trans("FRST"), "RECUR" => $langs->trans("RECUR"));
$tblArraychoice = array("FRST" => $langs->trans("FRST"), "RCUR" => $langs->trans("RECUR"));
print $form->selectarray("frstrecur", $tblArraychoice, dol_escape_htmltag(GETPOST('frstrecur', 'alpha') ?GETPOST('frstrecur', 'alpha') : $companybankaccount->frstrecur), 0);
print '</td></tr>';

Expand Down Expand Up @@ -2102,7 +2102,7 @@
print '<td colspan="4">'.$form->selectDate($date_rum, 'date_rum', 0, 0, 1, 'date_rum', 1, 1).'</td></tr>';

print '<tr><td>'.$langs->trans("WithdrawMode").'</td><td>';
$tblArraychoice = array("FRST" => $langs->trans("FRST"), "RECUR" => $langs->trans("RECUR"));
$tblArraychoice = array("FRST" => $langs->trans("FRST"), "RCUR" => $langs->trans("RECUR"));
print $form->selectarray("frstrecur", $tblArraychoice, (GETPOSTISSET('frstrecur') ? GETPOST('frstrecur') : 'FRST'), 0);
print '</td></tr>';

Expand Down

0 comments on commit b5d84cb

Please sign in to comment.