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

Only one Invoice is available and attached to all the activities

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.4
    • Fix Version/s: 4.6.8
    • Component/s: CiviContribute
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      The stored copy of downloaded invoices are always written to the same file name and the uri stored in civicrm_file table is always the same (Invoice.pdf). This means the file is over-written each time an invoice is downloaded. And the attachment 'content' for the 'Downloaded Invoice' activity is always the last invoice downloaded.

      To recreate:

      • create a new contribution
      • view contribution and click 'Print Invoice'
      • view the invoice
      • create another contribution for a different contact / different amount
      • view contribution and click 'Print Invoice'
      • now go back to the first contact, and view invoice attached to 'Downloaded Invoice' activity. It will be the invoice for the second contact.
          • Original Post —
            When we create an invoice, its creating fine and associating with activity.

      whenever we create new invoice its updating the existing invoice and associating it with the new activity but, only new file is available for all the activities as old one is over written with new one.

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              sri_techie sri
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: