2
0
forked from Wavyzz/dolibarr

Fix: cast int to string for str_pad fixes PhanTypeMismatchArgumentInternal

This commit is contained in:
MDW
2024-03-18 02:08:55 +01:00
parent e0069026b3
commit 87288a1a17

View File

@@ -943,7 +943,7 @@ class AccountancyExport
$tab['signe_montant'] = '+'; $tab['signe_montant'] = '+';
// The amount must be in centimes without decimal points. // The amount must be in centimes without decimal points.
$tab['montant'] = str_pad(abs(($line->debit - $line->credit) * 100), 12, '0', STR_PAD_LEFT); $tab['montant'] = str_pad((string) abs(($line->debit - $line->credit) * 100), 12, '0', STR_PAD_LEFT);
$tab['contrepartie'] = str_repeat(' ', 8); $tab['contrepartie'] = str_repeat(' ', 8);
// Force date format : %d%m%y // Force date format : %d%m%y