Update export-bank-receipts.php (#38076)

* Update export-bank-receipts.php

* Update export-bank-receipts.php

* Update export-bank-receipts.php
This commit is contained in:
Frédéric FRANCE 2026-05-04 12:55:31 +02:00 committed by GitHub
parent 331af2c22d
commit 5539bc560a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,7 +80,7 @@ if (!isset($argv[3]) || !$argv[3]) {
exit(1);
}
$bankref = $argv[1];
$bankreceiptnum = $argv[2] ?? 'all';
$bankreceiptnum = $argv[2] ?: 'all';
$model = $argv[3];
$newlangid = 'en_EN'; // To force a new lang id
@ -433,7 +433,7 @@ if ($resql) {
}
if ($numrows > 0) {
print "Found ".$numrows." records for receipt ".$num."\n";
print "Found ".$numrows." records for receipt ".$bankreceiptnum."\n";
// Genere en-tete
$objmodel->write_footer($outputlangs);
@ -445,7 +445,7 @@ if ($resql) {
$ret = 0;
} else {
print "No records found for receipt ".$num."\n";
print "No records found for receipt ".$bankreceiptnum."\n";
$ret = 0;
}