Optimized Inventory Valuation Reports, 301 and 308.
[fa-stable.git] / sales / customer_invoice.php
index 9ec89b569eede7069de04c40653e9714a729ca54..6f38b64d718b9ef7f0472af845839c0287a8738f 100644 (file)
@@ -234,7 +234,7 @@ function set_delivery_shipping_sum($delivery_notes)
     
     foreach($delivery_notes as $delivery_num) 
     {
-        $myrow = get_customer_trans($delivery_num, 13);
+        $myrow = get_customer_trans($delivery_num, ST_CUSTDELIVERY);
 
         $shipping += $myrow['ov_freight'];
     }