*/
 $obj_customer = new customer_credits();
 $obj_customer->id = @security_form_input_predefined("int", "id_customer", 1, "");
 $obj_refund = new credit_refund();
 $obj_refund->type = "customer";
 $obj_refund->id = @security_form_input_predefined("int", "id_refund", 0, "");
 /*
 	Verify Data
 */
 // check that the specified customer actually exists
 if (!$obj_customer->verify_id()) {
     log_write("error", "process", "The customer you have attempted to edit - " . $obj_customer->id . " - does not exist in this system.");
 } else {
     if ($obj_refund->id) {
         // are we editing an existing refund? make sure it exists and belongs to this customer
         if (!$obj_refund->verify_id()) {
             log_write("error", "process", "The refund you have attempted to edit - " . $obj_refund->id . " - does not exist in this system.");
         } else {
             $obj_refund->load_data();
         }
     }
 }
 /*
 	Fetch Standard Data
 */
 $obj_refund->data["date_trans"] = @security_form_input_predefined("date", "date_trans", 1, "");
 $obj_refund->data["description"] = @security_form_input_predefined("any", "description", 0, "");
 $obj_refund->data["amount_total"] = @security_form_input_predefined("money", "amount", 1, "");
 $obj_refund->data["account_dest"] = @security_form_input_predefined("int", "account_dest", 1, "");
 $obj_refund->data["account_asset"] = @security_form_input_predefined("int", "account_asset", 1, "");
 $obj_refund->data["id_employee"] = @security_form_input_predefined("int", "id_employee", 1, "");