Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-2776

Error in Batch Contribution update via profile

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0, 2.1
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      Bug posted on: http://forum.civicrm.org/index.php/topic,2571.0/topicseen.html

      -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      When I try to update a batch of contribution to the Completed status using the Core function, I get an error:

      Code:

      => -2
      [message] => DB Error: syntax error
      [mode] => 16
      [debug_info] => UPDATE civicrm_contribution SET domain_id = 1 , contact_id = 1251 , contribution_type_id = 4 , payment_instrument_id = 7 , receive_date = 20080225151457 , total_amount = 162.50 , fee_amount = 0 , net_amount = 162,5 , currency = 'EUR' , receipt_date = 20080229212041 , source = 'Online evenement registratie: Zeilkamp 1 2008' , is_test = 0 , contribution_status_id = 1 WHERE ( civicrm_contribution.id = 10 ) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '5 , currency = 'EUR' , receipt_date = 20080229212041 , source = 'Online evenemen' at line 1]
      [type] => DB_Error
      [user_info] => UPDATE civicrm_contribution SET domain_id = 1 , contact_id = 1251 , contribution_type_id = 4 , payment_instrument_id = 7 , receive_date = 20080225151457 , total_amount = 162.50 , fee_amount = 0 , net_amount = 162,5 , currency = 'EUR' , receipt_date = 20080229212041 , source = 'Online evenement registratie: Zeilkamp 1 2008' , is_test = 0 , contribution_status_id = 1 WHERE ( civicrm_contribution.id = 10 ) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '5 , currency = 'EUR' , receipt_date = 20080229212041 , source = 'Online evenemen' at line 1]
      [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="UPDATE civicrm_contribution SET domain_id = 1 , contact_id = 1251 , contribution_type_id = 4 , payment_instrument_id = 7 , receive_date = 20080225151457 , total_amount = 162.50 , fee_amount = 0 , net_amount = 162,5 , currency = 'EUR' , receipt_date = 20080229212041 , source = 'Online evenement registratie: Zeilkamp 1 2008' , is_test = 0 , contribution_status_id = 1 WHERE ( civicrm_contribution.id = 10 ) [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '5 , currency = 'EUR' , receipt_date = 20080229212041 , source = 'Online evenemen' at line 1]"]

      The value of total_amount is correct (162.50) while the value of net_amount isn't (162,5). This has probably to do with the currency settings (in the Netherlands 162,50 would be correct, but this should be translated back before firing a database query).

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              kurund Kurund Jalmi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: