Fixed side bug on transaction numbers rewrite (edition of old delivery notes)
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 10 Oct 2009 14:43:35 +0000 (14:43 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 10 Oct 2009 14:43:35 +0000 (14:43 +0000)
sales/includes/cart_class.inc

index 4eeef444f97de87a3a0afbcd0013a4a7156c6058..b3d5ac966a19d3fd17af6542801342daa0d2c0d5 100644 (file)
@@ -121,7 +121,7 @@ class cart
                                                $this->delivery_to = $sodata["deliver_to"];
                                                $this->delivery_address = $sodata["delivery_address"];
                                        }
-                                       if (!$view && ($type!=ST_CUSTDELIVERY || $this->trans_link!=0)) {
+                                       if (!$view && ($type!=ST_CUSTCREDIT || $this->trans_link!=0)) {
                                                $src_type = get_parent_type($type);
                                                $src_details = 0;
                                                if ($src_type == ST_SALESORDER) { // get src data from sales_orders
@@ -149,7 +149,7 @@ class cart
                                                }
                                        }
                                }
-                       } else {
+               } else {
                                $this->trans_type = $type;
                                $this->trans_no = 0;
                                // set new sales document defaults here