Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad order of the lines in orders pending invoicing #17556

Closed
xusdeejay opened this issue May 9, 2021 · 2 comments
Closed

bad order of the lines in orders pending invoicing #17556

xusdeejay opened this issue May 9, 2021 · 2 comments
Labels
Bug This is a bug (something does not work as expected) Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open

Comments

@xusdeejay
Copy link

xusdeejay commented May 9, 2021

Bug

[order of the lines in orders pending invoicing]

Environment

  • Version: [Affected Dolibarr version 13.x.x]
  • OS: [Linux/Windows]
  • Web server: [Hosting and WAMPserver]
  • PHP: [PHP 7.x]
  • Database: [MySQL and MariaDB]
  • URL(s): [https://dolibarr/commande/list.php?leftmenu=orders&search_status=-3&billed=0&contextpage=billableorders) and https://dolibarr/commande/list.php?&contextpage=billableorders&search_status=-3&search_project_ref=]

Expected and actual behavior

[It is expected that it will invoice in order all the lines of the first order and then all of the next order, etc., and invoice the first line of each order, then the second line of each order, etc.]

Steps to reproduce the behavior

[invoice pending orders and use the option, in a single invoice. my solution, replace script htdocs/core/ actions_massactions.inc.php v.12.0.4 in v.13.0.2]

commandetoinvoice_badlyordered
commandetoinvoice_ok

Attached files (Screenshots, screencasts, dolibarr.log, debugging informations…)

[Files]

@xusdeejay xusdeejay added the Bug This is a bug (something does not work as expected) label May 9, 2021
@xusdeejay
Copy link
Author

xusdeejay commented May 11, 2021

replaced line "$lines[$i]->rang," to "$ii," and it works well.

@github-actions
Copy link

This issue is stale because it has been open 1 year with no activity. If this is a bug, please comment to confirm it is still present on latest stable version. if this is a feature request, please comment to notify the request is still relevant and not yet covered by latest stable version. This issue may be closed automatically by stale bot in 10 days (you should still be able to re-open it if required).

@github-actions github-actions bot added the Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open label May 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected) Issue Stale (automatic label) This issue is stale because it has been open 1 year with no activity. Remove this label to keep open
Projects
None yet
Development

No branches or pull requests

1 participant