Skip to content

Commit

Permalink
Update PickingLists.php
Browse files Browse the repository at this point in the history
Apply changes from SVN commit 7944.
  • Loading branch information
TurboPT authored Mar 1, 2018
1 parent c828267 commit 02bfcd4
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions PickingLists.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,9 @@

/*show the line items on the order with the quantity being dispatched available for modification */

$k = 0; //row colour counter
$j = 0;
foreach ($_SESSION['Items' . $identifier]->LineItems as $LnItm) {
++$j;
if ($k == 1) {
$RowStarter = '<tr class="EvenTableRows">';
$k = 0;
} else {
$RowStarter = '<tr class="OddTableRows">';
$k = 1;
}

if (sizeOf($LnItm->SerialItems) > 0) {
$_SESSION['Items' . $identifier]->LineItems[$LnItm->LineNumber]->QtyDispatched = 0; //initialise QtyDispatched
Expand All @@ -334,8 +326,8 @@
}
}

echo $RowStarter;
echo '<td>' . $LnItm->StockID . '</td>
echo '<tr class="striped_row">
<td>' . $LnItm->StockID . '</td>
<td title="' . $LnItm->LongDescription . '">' . $LnItm->ItemDescription . '</td>
<td class="number">' . locale_number_format($LnItm->Quantity, $LnItm->DecimalPlaces) . '</td>
<td>' . $LnItm->Units . '</td>
Expand Down Expand Up @@ -373,7 +365,9 @@

if (mb_strlen($LnItm->Narrative) > 1) {
$Narrative = str_replace('\r\n', '<br />', $LnItm->Narrative);
echo $RowStarter . '<td colspan="6">' . stripslashes($Narrative) . '</td></tr>';
echo '<tr class="striped_row">
<td colspan="6">' . stripslashes($Narrative) . '</td>
</tr>';
}
} //end foreach ($line)

Expand Down Expand Up @@ -737,4 +731,4 @@
echo '</form>';

include('includes/footer.php');
?>
?>

0 comments on commit 02bfcd4

Please sign in to comment.