Fix phpcs

This commit is contained in:
Laurent Destailleur 2019-03-16 23:19:34 +01:00
parent 9a132d9691
commit f6285e7daf

View File

@ -247,20 +247,20 @@ if (empty($reshook))
{ {
$error=0; $error=0;
$datepaye = dol_mktime(12, 0, 0, GETPOST('remonth'), GETPOST('reday'), GETPOST('reyear')); $datepaye = dol_mktime(12, 0, 0, GETPOST('remonth', 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int'));
// Clean parameters amount if payment is for a credit note // Clean parameters amount if payment is for a credit note
if (GETPOST('type') == FactureFournisseur::TYPE_CREDIT_NOTE) if (GETPOST('type', 'int') == FactureFournisseur::TYPE_CREDIT_NOTE)
{ {
foreach ($amounts as $key => $value) // How payment is dispatch foreach ($amounts as $key => $value) // How payment is dispatch
{ {
$newvalue = price2num($value,'MT'); $newvalue = price2num($value, 'MT');
$amounts[$key] = -$newvalue; $amounts[$key] = -$newvalue;
} }
foreach ($multicurrency_amounts as $key => $value) // How payment is dispatch foreach ($multicurrency_amounts as $key => $value) // How payment is dispatch
{ {
$newvalue = price2num($value,'MT'); $newvalue = price2num($value, 'MT');
$multicurrency_amounts[$key] = -$newvalue; $multicurrency_amounts[$key] = -$newvalue;
} }
} }