I contacted the support, and Bruno very nicely – and quickly ! – found the reason of this issue :
“I did some initial analysis, and it seems that the woocommerce-square plugin is causing this issue. I even found the code that is problematic:
File includes\Handlers\Order.php:
public function filter_order_item_totals( $total_rows, $order ) { In this function, they are calling the get_payment_method
on the $order
object, and they are not checking if the $order
is of Order type. In this case, it is of type OrderRefund, and that is the problem. I would suggest that you try to deactivate the woocommerce-square plugin to see if it works that way, and if you are using it, try to contact their developers to see if they can resolve this issue.”
I tried this immediately, desactivated the woocommerce-square plugin for 1 minute and tried to generate a credit Note PDF : everthing was fine then !
Thank you very much Bruno, I am now going to contact this plugin admin to fix this definitively !
]]>I am using the ‘simple premium’ template for my credit note. The total value of the credit note contains both a number and a string with tax information: -€34,18 (inclusief -€5,93 btw (21%))
How can I remove the tax part “(inclusief -€5,93 btw (21%))” so that I am only left with the numeric value “-€34,18”?
The following code is responsible for obtaining the totals:
<tfoot>
<?php foreach( $this->get_woocommerce_totals() as $key => $total ) : ?>
<tr class="<?php echo $key; ?>">
<th class="description"><?php echo $total['label']; ?></th>
<td class="price"><?php echo $total['value']; ?></td>
</tr>
<?php endforeach; ?>
</tfoot>
]]>I’ve got a problem with the invoices when creating or regenerating a partially or fully refunded payement.
In both cases, the invoice is still the same, I am not able to see the refunded price.
Is there a way of making the invoices showing the refunds ?
Thanks for your help,
Robin.
]]>In some cases we refund a product before shipping. In this case the packing slip which is created after the refund still contains the refunded products. Since we use the packing slips in our packing process this leads to confusion and errors.
How can I remove/hide the refunded products from the packing slip?
Thanks!
Georg
I have a professional version.
I want to be able to create credit note for a custom status “Partial Refund” where the amount is partially refunded to the client. How would that work?
We are trying to regenerate an invoice, due to an order being partially refunded, however we can’t seem to get the refund and updated price to be included in the invoice.
See here: https://i.gyazo.com/16af49564342b0bc88ec642a88ae9016.png
Any ideas?
]]>I recently noticed that tracking information is displayed on our Proforma Invoices (quotations) generated through Woocommerce PDF Invoices & Packing Slips (by WP Overnight).
There are two options in AST to disable shipment information in Invoices and Packing Slips but not for Proforma Invoices (quotation).
FYI I added this snippet in order to remove the tracking display action in case of “proforma” document template:
add_action( 'wpo_wcpdf_before_order_details', 'remove_shipment_info_from_proforma', -1, 4 );
function remove_shipment_info_from_proforma( $template_type, $order ) {
$wcast = WC_Advanced_Shipment_Tracking_Actions::get_instance();
remove_action( 'wpo_wcpdf_before_order_details', array( $wcast, 'tracking_display_in_invoice' ), 0, 4 );
if ( $template_type !== 'proforma' ) {
add_action( 'wpo_wcpdf_before_order_details', array( $wcast, 'tracking_display_in_invoice' ), 0, 4 );
}
}
It seems to work well but one another weird thing I’m trying to understand (for my curiosity): we also have “credit-note” invoices but we never had any shipment information, and we don’t want it, in these pdf documents. Even if the shipment is done before downloading the credit-note invoice”.
How can we explain that? Indeed, there are no option to not display tracking info in “credit-note” template documents??
Thanks in advance for your feedback and have a nice envening.
Best Regards,
Sylvain