From 020f124a94845a1dd933c8546e8ece8dabf3ae95 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 28 Oct 2010 16:26:26 +0000 Subject: [PATCH] Fixed warning on CN edition due to not existing ref POST. --- sales/credit_note_entry.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sales/credit_note_entry.php b/sales/credit_note_entry.php index 1d5fbc3e..513fb25e 100644 --- a/sales/credit_note_entry.php +++ b/sales/credit_note_entry.php @@ -96,7 +96,8 @@ function copy_to_cn() $cart->freight_cost = input_num('ChargeFreightCost'); $cart->Location = $_POST["Location"]; $cart->sales_type = $_POST['sales_type_id']; - $cart->reference = $_POST['ref']; + if ($cart->trans_no == 0) + $cart->reference = $_POST['ref']; $cart->ship_via = $_POST['ShipperID']; $cart->dimension_id = $_POST['dimension_id']; $cart->dimension2_id = $_POST['dimension2_id']; @@ -112,7 +113,8 @@ function copy_from_cn() $_POST['ChargeFreightCost'] = price_format($cart->freight_cost); $_POST['Location'] = $cart->Location; $_POST['sales_type_id'] = $cart->sales_type; - $_POST['ref'] = $cart->reference; + if ($cart->trans_no == 0) + $_POST['ref'] = $cart->reference; $_POST['ShipperID'] = $cart->ship_via; $_POST['dimension_id'] = $cart->dimension_id; $_POST['dimension2_id'] = $cart->dimension2_id; -- 2.30.2