Hot answers tagged

9

So, I remembered that there is such a thing as Smarty calls to the CiviCRM API. Stuck the following code into the template and bam! Got my custom field to show up in my generated invoice. {crmAPI var='result' entity='Contribution' action='get' invoice_id="$invoice_id"} {foreach from=$result.values item=poid} {$poid.custom_40} {/foreach}


7

I came accross the same issue. The invoice date gives the current date and that is in most cases not correct. We have used the receive date of the contribution in the invoice template as follows. ... {crmAPI var='contribution' entity='Contribution' action='getsingle' id=$id} ... {ts}Invoice Date:{/ts} {$contribution.receive_date|crmDate:$config->...


6

Initially i thought the address are rendered using format defined at Address Settings but i was wrong when i checked the message template. The message template is designed to use address format as Street Address Supplement Address Supplement Address State Abbreviation City Postal Code Country I did some modification to message template so that State ...


5

Please refer to this link https://civicrm.org/partners-contributors to get/contact a CiviCRM expert in your area


5

I order to use legal_name against your message template the best way would be enabling CIVICRM_MAIL_SMARTY to 1 in civicrm_setting.php By doing this you can access {contact.legal_name} in your message template I did made a test against Version 4.7.15 which worked. so please give a try Reference: https://wiki.civicrm.org/confluence/display/CRMDOC/Smarty+...


4

I think the answer is in the making: Klaas and Björn just proposed this PR: https://github.com/civicrm/civicrm-core/pull/11110


4

That error is coming from dompdf, bundled with CiviCRM. Here are a couple of references to that error outside of CiviCRM: https://github.com/dompdf/dompdf/issues/902 https://github.com/barryvdh/laravel-dompdf/issues/389 The error happens for both 4.6 and 4.7, different php, so the trigger to the issue appears to be somewhat removed. I fixed one case ...


4

The invoice is generated based on the template "Contributions - Invoice". It contains a line to the logo ({$resourceBase}/i/civi99.png" height = "34px" width = "99px") that you would need to replace. You can find teh message templates by Navigating to >>Administer >>CiviMail >>Message Templates in the tab "System Workflow Messages"


4

Sales Tax (like GST) is per Financial Type so if you need to make an invoice without GST you need to make the Contribution of a Financial Type that has no GST associated with it. Have a look here for details on how to set up different sales tax rates for the same membership type: How to apply different Sales Tax rates to the same Membership Type - Back ...


4

This requires editing of the Contribution Invoice Receipt - Message Template. End result looks like this: I'll detail the steps below to get the header part. The header portion contains two tables: the first table is used to add your logo. The second table has the formatting for the Name and Address section: note that we're putting the Member's Name and ...


3

I see 2 ways: Do Use Scheduled Reminders (Administer - Communication - Scheduled Reminders), If you choose Memberships as Entity you can use Membership tokens in the email being sent. You can limit the recipients per group. So if you want to send it one-time, just search for the people you want to send it to, place them in a group and create a reminder with ...


3

It is absolutely possible to have multiple line items on an invoice :) This can be done by using "Price sets". More information about this can be found in the book here: http://docs.civicrm.org/user/en/4.6/membership/membership-price-sets/ Once you have set up your price set, persons (either administrators or public users who purchases memberships on a ...


3

Invoices can be send via email or can be downloaded. Both create an activity (of type "Emailed Invoice" or "Downloaded Invoice"). The invoice pdfs are attached to that activity. When you first get the activity via the API and collect the Activity ID, you can get information about the attachment via the "Attachment-Get" API function, where "entity_table" ...


3

I guess you are doing it correctly - to set a future date on the Invoice - I would recommend creating an New token and displaying the date - which you are already doing it - so i don't think their is any other work around


3

To print invoice the user should either have access CiviContribute or view my invoice permission. "CiviPay: access CiviPay" permission doesn't come with CiviCRM install. I feel CiviPay extension might be conflicting with Print invoice as the extension may be using same url as of print invoice i.e civicrm/contribute/invoice. Pradeep


3

I have two comments: CiviCRM is not really good in invoicing. So my advice would be to do the invoicing part in a seperate system, usually an accounting software might do the job I have made an extension to link Contributions to a case, check it out at: https://github.com/CiviCooP/org.civicoop.casecontribution May I ask what exactly you want to invoice ...


3

DOMPDF in CiviCRM have a trouble with special characters UTF-8. We have this same problem in Poland. I've create a repo with solution: https://github.com/ngo360/civicrm.dompdf.utf8 For apply this change go to path: path/to/civicrm/vendor/dompdf and delete all files. Then upload files from repo. I think is resolve Your problem.


2

Scheduled Reminders is the way I suspect many users provide this. Ie they create a Scheduled Reminder to go to members say 30 days before due date, with a link to the renewal page. Even if this is only set up to use Pay Later at least that way they get the data in the system that a payment is due. And of course the Contribution page then sends out the '...


2

You want to change the auto-increment number: ALTER TABLE civicrm_contribution AUTO_INCREMENT = 4356; Note that this is very dangerous if you set the number backward rather than forward.


2

It's on the contact itself. It has become one of the addresses, the billing address.


2

"Default invoice payment page" setting is used to set contribution page that can be used to pay pending or partially paid contribution using payment processor. More about the setting and uses: Wiki: https://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=346750980 CRM Issue: https://issues.civicrm.org/jira/browse/CRM-19263 HTH Pradeep


2

If you’re running out of memory, as per the comment in the other answer, apply this patch to dompdf (a project external to CiviCRM which you’ll find in the CiviCRM vendor directory). https://github.com/dompdf/dompdf/pull/1570/files Note: this patch has been merged into dompdf master, so it will be included in the CiviCRM code base in an upcoming release. ...


2

For a client with different payment gateways we sidestepped the issue by having different Contribution pages for each - since one was for a c4 and one for a c3 entity and used {if $contributionPageId == X}


2

The tokens you can use in a message template are a bit random, just what the developer added to the template. In this case, the contribution id can be found with {$contributionID}. However, that is not the same as the invoice_number. I could not find a token for the invoice number. But the templates are generated by smarty, and in smarty you can use the ...


2

To me it sounds as if there has been a similar question with some answers some years ago in this forum: Custom Invoice ID The latest comments are from 2017/2018. Apparently, there has been a PR for custom invoice IDs, but it appears to be closed without pulling it into core. However, some workarounds are discussed also. Hope this helps a bit.


2

If you need to change the settings globally, not just for the single statement, you have the option under Administer -> Localization -> Languages, Currency, Locations. There you can define the "Thousands Separator" as well as the "Decimal Delimiter".


2

The crmMoney function uses php's money_format() function to format the numbers. On Windows, this function does not exist! (https://issues.civicrm.org/jira/browse/CRM-650) However you can use crmNumberFormat to format it yourself, and add in the currency symbol manually, for example, assuming you want the US dollar symbol: Instead of {$amount|crmMoney:$...


2

I believe this PR by Andrei (who works on the Wordpress/Caldera form integration) may help fix this (Core) issue: https://github.com/civicrm/civicrm-core/pull/13477 It removes bad logic re: participants -originally included in Core invoicing code and works great. I’ve tested it/used it myself using Drupal/Webform CiviCRM module. Unfortunately Andrei’s PR ...


2

I believe this is possible with the Line Item Editor extension.


2

I have my Alt Invoice extension, which sends an additional invoice to someone based on their relationship. I'd say that a developer could start from there to make an extension and be more than halfway there.


Only top voted, non community-wiki answers of a minimum length are eligible