add warning if outstanding limit is exceeded

This commit is contained in:
Frédéric FRANCE 2021-06-08 17:39:13 +02:00 committed by GitHub
parent fa4786a3f6
commit af6bbe23ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2294,6 +2294,7 @@ if ($action == 'create') {
print $langs->trans('OutstandingBill');
print '</td><td class="valuefield">';
$arrayoutstandingbills = $soc->getOutstandingBills();
print ($arrayoutstandingbills['opened'] > $soc->outstanding_limit ? img_warning() : '');
print price($arrayoutstandingbills['opened']).' / ';
print price($soc->outstanding_limit, 0, $langs, 1, - 1, - 1, $conf->currency);
print '</td>';