Bugfix 0000018 - unneeded freight cost reset on page update
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 15 Jul 2008 09:51:19 +0000 (09:51 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Tue, 15 Jul 2008 09:51:19 +0000 (09:51 +0000)
CHANGELOG.txt
sales/customer_delivery.php

index 527d5768ed12137b4d99fd5d8d8cc7c77dce49e8..ad1d73cca228b9e23ce5a3c66c2d99f1ed4057c3 100644 (file)
@@ -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
index 8365cc819a4e1bc0f2cb77fc6af1e61d59247d9e..6d30256e82f9f78cabb8eaab075f28426de84620 100644 (file)
@@ -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();