maheu Posted September 8, 2017 Share Posted September 8, 2017 Hello, I have a question about invoices on Prestashop. I got an order which was terminated, so I refunded the money back to the customer. But in the invoice I don't see any note about this refund. I need it for my accountant. What can I do? Thanks in advance! Cheers! Link to comment Share on other sites More sharing options...
bellini13 Posted September 8, 2017 Share Posted September 8, 2017 what invoice are you referring to? Link to comment Share on other sites More sharing options...
maheu Posted September 8, 2017 Author Share Posted September 8, 2017 Hello! Normal invoice which every customer gets after paying the order. Cheers! Link to comment Share on other sites More sharing options...
bellini13 Posted September 8, 2017 Share Posted September 8, 2017 you print every orders invoice and give that to your accountant? surely there is an easier to give them your sales and expense information? Link to comment Share on other sites More sharing options...
maheu Posted September 9, 2017 Author Share Posted September 9, 2017 Unfortunately not. I have to have a document for every transaction. So if I pay something I have to show the invoice I got and if I recieve money, I have to give an invoice..... Link to comment Share on other sites More sharing options...
bellini13 Posted September 9, 2017 Share Posted September 9, 2017 why not print the order details page in the back office that contains the refund information? Link to comment Share on other sites More sharing options...
Scully Posted September 9, 2017 Share Posted September 9, 2017 What we do: we print every payment in the invoice. So normally payment amount is the same as invoice amount. If we have a refund, we add the refund payment as payment with negative figures. And the payment information on the invocie reads like this: Payment: Bankwire CHF 500.00, Bankwire CHF -500.00 It would also be feasible to readout the current order state and in terms it has been cancelled or refunded to add some more text for this condition. This would require some changes in the PDF controller as well as in invoice.tpl. 1 Link to comment Share on other sites More sharing options...
maheu Posted September 12, 2017 Author Share Posted September 12, 2017 What we do: we print every payment in the invoice. So normally payment amount is the same as invoice amount. If we have a refund, we add the refund payment as payment with negative figures. And the payment information on the invocie reads like this: Payment: Bankwire CHF 500.00, Bankwire CHF -500.00 It would also be feasible to readout the current order state and in terms it has been cancelled or refunded to add some more text for this condition. This would require some changes in the PDF controller as well as in invoice.tpl. Thank you! I talked with my accountant and this way is fine. Cheers! Link to comment Share on other sites More sharing options...
maheu Posted September 12, 2017 Author Share Posted September 12, 2017 Ok, I added now a payment (-20€) to a cancelled order, but the invoice stays the same. there is nowhere this minus payment. Link to comment Share on other sites More sharing options...
Scully Posted September 12, 2017 Share Posted September 12, 2017 Post your invoice or a screenshot. Link to comment Share on other sites More sharing options...
maheu Posted September 12, 2017 Author Share Posted September 12, 2017 Hello! Here are the screenshots. Cheers! Link to comment Share on other sites More sharing options...
Scully Posted September 12, 2017 Share Posted September 12, 2017 I quote myself: What we do: we print every payment in the invoice But where can I see you read out and print payments? I don't see them at all. Link to comment Share on other sites More sharing options...
Scully Posted September 12, 2017 Share Posted September 12, 2017 This is how it looks with our invoices. Note that the total amount of the invoice does NOT change. But in the header, all payments are shown, including the one with minus amount. Link to comment Share on other sites More sharing options...
maheu Posted September 12, 2017 Author Share Posted September 12, 2017 Ah, I didnt see that. And how can I read out the payments? Cheers! Link to comment Share on other sites More sharing options...
Scully Posted September 12, 2017 Share Posted September 12, 2017 Insert this code at some appropirate place in your invoice.tpl {foreach from=$order_invoice->getOrderPaymentCollection() item=payment} {assign var=paycounter value=$paycounter+1}{if $paycounter > 1}, {$paycounter}. {l s='Payment: ' pdf='true'} {/if} {$payment->payment_method}: {displayPrice price=$payment->amount currency=$payment->id_currency} {foreachelse} {l s='Not yet paid.' pdf='true'} {/foreach} 1 Link to comment Share on other sites More sharing options...
maheu Posted September 12, 2017 Author Share Posted September 12, 2017 Thank you so much! Link to comment Share on other sites More sharing options...
Scully Posted September 12, 2017 Share Posted September 12, 2017 Code above also inserts a payment counter if there is more than one payment. Mark topic as SOLVED if appropriate. 1 Link to comment Share on other sites More sharing options...
maheu Posted September 12, 2017 Author Share Posted September 12, 2017 Sorry, where can I do that? Link to comment Share on other sites More sharing options...
Scully Posted September 12, 2017 Share Posted September 12, 2017 (edited) Post # 15 => Insert this code at some appropirate place in your invoice.tpl Edited September 12, 2017 by Scully (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now