@@ -9,9+9,9 @@ function add_to_order(&$order, $new_item, $new_item_qty, $standard_cost)
{
$allready_on_order = 0;
{
$allready_on_order = 0;
- foreach ($order->line_items as $order_item)
+ foreach ($order->line_items as $order_item)
{
{
- if (strcasecmp($order_item->stock_id, $new_item) == 0)
+ if (strcasecmp($order_item->stock_id, $new_item) == 0)
{
$allready_on_order = 1;
display_error(_("For Part :") . $new_item . " " . "This item is already on this order. You can change the quantity ordered of the existing line if necessary.");
{
$allready_on_order = 1;
display_error(_("For Part :") . $new_item . " " . "This item is already on this order. You can change the quantity ordered of the existing line if necessary.");
@@ -29,17+29,17 @@ function add_to_order(&$order, $new_item, $new_item_qty, $standard_cost)