Esempio n. 1
0
 public static function customer_id_changed($old_customer_id, $new_customer_id)
 {
     $old_customer_id = (int) $old_customer_id;
     $new_customer_id = (int) $new_customer_id;
     if ($old_customer_id > 0 && $new_customer_id > 0) {
         $sql = "UPDATE `" . _DB_PREFIX . "job` SET customer_id = " . $new_customer_id . " WHERE customer_id = " . $old_customer_id;
         query($sql);
         module_invoice::customer_id_changed($old_customer_id, $new_customer_id);
         module_file::customer_id_changed($old_customer_id, $new_customer_id);
     }
 }