Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Forked from joshfeck/add-to-template.php
Last active August 29, 2015 14:14
Show Gist options
  • Save Pebblo/3477fb76d952684fe239 to your computer and use it in GitHub Desktop.
Save Pebblo/3477fb76d952684fe239 to your computer and use it in GitHub Desktop.
This gist works in conjunction with https://gist.github.com/Pebblo/48b2ce8b15b898a2611f. You can add the following to /gateways/invoice/template.php to display the price without surcharge and surcharge amount as line items on the invoice.
// suggested code placement is right after the line that says:
// $pdf->ImprovedTable($header, $attendees, $w, $alling);
$pdf->Ln(1);
$pdf->my_itemised_surcharge($attendees);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment