From 4c46982f2304821baa543f5afee617c90175c040 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 15 Jul 2008 09:51:19 +0000 Subject: [PATCH] Bugfix 0000018 - unneeded freight cost reset on page update --- CHANGELOG.txt | 4 ++++ sales/customer_delivery.php | 7 ++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 527d5768..ad1d73cc 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +15-Jul-2008 Janusz Dobrowolski +# Fixed bug [0000018] - unwanted freight cost reset on page update. +$ /sales/customer_delivery.php + 14-Jul-2008 Janusz Dobrowolski # Fixed bug [0000017] - error while checking qoh $ /includes/ui/items_cart.inc diff --git a/sales/customer_delivery.php b/sales/customer_delivery.php index 8365cc81..6d30256e 100644 --- a/sales/customer_delivery.php +++ b/sales/customer_delivery.php @@ -412,11 +412,8 @@ foreach ($_SESSION['Items']->line_items as $line=>$ln_itm) { end_row(); } -$_POST['ChargeFreightCost'] = price_format($_SESSION['Items']->freight_cost); - -if (!check_num('ChargeFreightCost')) { - $_POST['ChargeFreightCost'] = price_format(0); -} +$_POST['ChargeFreightCost'] = get_post('ChargeFreightCost', + price_format($_SESSION['Items']->freight_cost)); start_row(); -- 2.30.2