Merge pull request #18472 from FHenry/dev_php8

fix: php 8 warning
This commit is contained in:
Laurent Destailleur 2021-08-24 14:18:29 +02:00 committed by GitHub
commit f93e899c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -122,7 +122,12 @@ class box_comptes extends ModeleBoxes
$account_static->accountancy_journal = $objp->accountancy_journal;
$solde = $account_static->solde(0);
$solde_total[$objp->currency_code] += $solde;
if (!array_key_exists($objp->currency_code, $solde_total)) {
$solde_total[$objp->currency_code] = $solde;
} else {
$solde_total[$objp->currency_code] += $solde;
}
$this->info_box_contents[$line][] = array(
'td' => '',

View File

@ -92,6 +92,7 @@ class box_factures_fourn_imp extends ModeleBoxes
$sql .= ", f.tva as total_tva";
$sql .= ", f.total_ttc";
$sql .= ", f.paye, f.fk_statut as status, f.type";
$sql .= ", f.tms";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s";
$sql .= ",".MAIN_DB_PREFIX."facture_fourn as f";
if (!$user->rights->societe->client->voir && !$user->socid) {