Fixed page usability in non-js mode.
[fa-stable.git] / sales / customer_delivery.php
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();