bugfix lieferantengutschrift menge max

This commit is contained in:
OpenXE 2024-02-09 10:49:18 +01:00
parent 324c7dbf17
commit c6ee9c0faf

View File

@ -301,12 +301,6 @@ class lieferantengutschrift {
$defaultorder = 1; $defaultorder = 1;
$defaultorderdesc = 0; $defaultorderdesc = 0;
$offen_menge = "TRIM(IF(
pd.menge > COALESCE(vp.menge,0),
pd.menge - COALESCE(vp.menge,0),
0
))+0";
$auswahl = array ( $auswahl = array (
'<input type=\"checkbox\" name=\"ids[]\" value=\"', '<input type=\"checkbox\" name=\"ids[]\" value=\"',
['sql' => 'pd.id'], ['sql' => 'pd.id'],
@ -314,12 +308,14 @@ class lieferantengutschrift {
); );
$werte = array ( $werte = array (
'<input type="number" name="werte[]" value="', '<input type="number" name="werte[]" min="0"',
['sql' => $offen_menge], 'max = "',
'" min="0"', ['sql' => 'vp.menge'],
' max="', '" ',
['sql' => $offen_menge], 'value = "',
'"/>' ['sql' => 'vp.menge'],
'" ',
'/>'
); );
$preise = array ( $preise = array (