Fixed excel report redirection (regresion after customer selector in reports improvem...
[fa-stable.git] / sales / customer_credit_invoice.php
index 24f70ce6b2c876b288cddd5833077ddb8c240615..ff6e45797e0c14534051686c21f71a594f42dfa1 100644 (file)
@@ -173,7 +173,7 @@ function copy_to_cart()
        $cart->ship_via = $_POST['ShipperID'];
        $cart->freight_cost = input_num('ChargeFreightCost');
        $cart->document_date =  $_POST['CreditDate'];
-       $cart->Location = $_POST['Location'];
+       $cart->Location = (isset($_POST['Location']) ? $_POST['Location'] : "");
        $cart->Comments = $_POST['CreditText'];
        if ($_SESSION['Items']->trans_no == 0)
                $cart->reference = $_POST['ref'];