Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created June 3, 2014 17:00
Show Gist options
  • Save joshfeck/e2b91cd6599000ecb772 to your computer and use it in GitHub Desktop.
Save joshfeck/e2b91cd6599000ecb772 to your computer and use it in GitHub Desktop.
This gist works in conjunction with https://gist.github.com/joshfeck/52ac749150322a2e4221. 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($registration_ids, $attendees);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment