Prestashop: order return slip show date from shipping date not date from return request

Created on 5 Mar 2020  Â·  7Comments  Â·  Source: PrestaShop/PrestaShop

Hello,

the order return slip shows the date from when the order was shipped. It should show the date from when the return was requested.

reproduce:
make an order. Mark as shipped. Wait a few days, then ask for order return in costumer account. If merchant set state for return "Waiting for package". Then customer can print out order return slip. And you will see underneath the order return number there is the date from when order was shipped and NOT from when return was requested. But there should be the date from return request.
image

Thanks a lot in advance for checking back 😊

1.7.5.2 1.7.6.3 Bug Credit notes Minor To Do

All 7 comments

Hi @didi-2018,

I did not manage to reproduce the issue with PS1.7.6.3.
Deleivery slip pdf
image
Credit Slip pdf
image
Merchandise Returns page
image

Thanks to check & feedback.

@khouloudbelguith please show me the date above under the return number

image

@didi-2018, thanks for your feedback.
I manage to reproduce the issue with PS1.7.5.2 and ps1.7.6.3.
image
I’ll add this to the debug roadmap so that it’s fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

@khouloudbelguith thank you very much ♥

@khouloudbelguith I fixed it /classes/pdf/HTMLTemplateOrderReturn.php

line 47:

change:

    $this->date = Tools::displayDate($this->order->invoice_date);

to:

    $this->date = Tools::displayDate($this->order_return->date_add);

image

WOOOOHOOO 😄🌟

thanks for checking back and feedback

@didi-2018, Great!
If you have already fixed it on your end, please do send us a pull request!
Thanks!

@khouloudbelguith https://github.com/PrestaShop/PrestaShop/pull/17999 can you please check? I dont know if I have done that right 🙈. this is my first pull request.

Was this page helpful?
0 / 5 - 0 ratings