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

CRM_Contribute_Form_Task_PDFLetterCommon contains problem UPDATE for the receipt and thank you times

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 4.2.1
    • Fix Version/s: None
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      civicrm_api("Contribution", "update", array('version' => '3', 'id' => $contributionId, 'receipt_date' => $nowDate));

      should be

      civicrm_api("Contribution", "create", array('version' => '3', 'id' => $contributionId, 'receipt_date' => $nowDate));

      same for the thankyou_date

      Refer to http://forum.civicrm.org/index.php/topic,26000.15.html

      I had to track this down when the user reported breakage. Call to Contribution Update produces strange results, eg the fee amount is invalid, then the net_amount is invalid. Set those values, and it's fatal.

      "create" seem to work fine.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              bartclarkson Bart Clarkson
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: