mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-04-01 11:00:23 +02:00
bugfix verbindlichkeit positionen_hinzufuegen
This commit is contained in:
parent
093b9669b6
commit
6ae35684fe
@ -235,9 +235,12 @@ class Verbindlichkeit {
|
|||||||
))+0";
|
))+0";
|
||||||
|
|
||||||
$auswahl = array (
|
$auswahl = array (
|
||||||
'<input type=\"checkbox\" name=\"ids[]\" value=\"',
|
'<input type=\"checkbox\" name=\"auswahl[]\" value=\"',
|
||||||
['sql' => 'pd.id'],
|
['sql' => 'pd.id'],
|
||||||
'"/>'
|
'"/>',
|
||||||
|
'<input type=\"number\" name=\"ids[]\" value=\"',
|
||||||
|
['sql' => 'pd.id'],
|
||||||
|
'" hidden/>'
|
||||||
);
|
);
|
||||||
|
|
||||||
$werte = array (
|
$werte = array (
|
||||||
@ -715,18 +718,27 @@ class Verbindlichkeit {
|
|||||||
|
|
||||||
// Process multi action
|
// Process multi action
|
||||||
$ids = $this->app->Secure->GetPOST('ids');
|
$ids = $this->app->Secure->GetPOST('ids');
|
||||||
|
$auswahl = $this->app->Secure->GetPOST('auswahl');
|
||||||
$werte = $this->app->Secure->GetPOST('werte');
|
$werte = $this->app->Secure->GetPOST('werte');
|
||||||
$preise = $this->app->Secure->GetPOST('preise');
|
$preise = $this->app->Secure->GetPOST('preise');
|
||||||
|
|
||||||
$bruttoeingabe = $this->app->Secure->GetPOST('bruttoeingabe');
|
$bruttoeingabe = $this->app->Secure->GetPOST('bruttoeingabe');
|
||||||
|
|
||||||
foreach ($ids as $key => $paketdistribution) {
|
foreach ($auswahl as $key => $paketdistribution) {
|
||||||
|
$key = -1;
|
||||||
|
foreach ($ids as $index => $value) {
|
||||||
|
if ($value == $paketdistribution) {
|
||||||
|
$key = $index;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($key == -1) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
$menge = $werte[$key];
|
$menge = $werte[$key];
|
||||||
|
|
||||||
if ($menge <= 0) {
|
if ($menge <= 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check available number
|
// Check available number
|
||||||
$sql = "
|
$sql = "
|
||||||
SELECT
|
SELECT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user