Jump to content
MinnaLaa

(solved) 1.7.3. Delivery slip/invoice PDF product sort order by product reference, not alphabetical

Recommended Posts

Hello :)

Because of the physical storage system I need delivery slip or/and invoice to have sort order by product's reference. These documents are going to be printed out and products are collected from the storage in certain order. So, either or of these documents need to have sort ordered by product's reference number (green high lighted part of the image).

Is there any solution to this? I have access to code.

 

order-sort.png

Edited by MinnaLaa (see edit history)

Share this post


Link to post
Share on other sites

PS 1.7.3.

Found a solution for this...

classes/order/OrderInvoice.php

somewhere around row 130 where getProductsDetail

change

' ORDER BY od.`product_name`');

to

' ORDER BY od.`product_reference`');

 

  • Like 1

Share this post


Link to post
Share on other sites

Thank you. This should properly be a setting in the back office!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More