<?php
if ( $invoices = wc_gzdp_get_invoices_by_order( $order ) ) {
foreach ( $invoices as $invoice ) {
$invoice_type = $invoice->get_invoice_type();
if ( $get_title_invoice = $invoice->get_title() ) {
echo '<p style="margin-bottom:0 !important">'.$get_title_invoice.'</p>';
}
}
}
?>
Rechnung on Cancellation PDF
<?php
echo wp_kses_post( $document->get_parent_formatted_number() );
?>