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

Fix #27010 Possible to bill several times lines of an order already billed … #27011

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from

Conversation

vmaury
Copy link
Contributor

@vmaury vmaury commented Dec 6, 2023

FIX #27010 Possible to bill several times lines of an order already billed …

@vmaury
Copy link
Contributor Author

vmaury commented Dec 10, 2023

@eldy : I suppose you're tuning phpcs, I don't understand the phpcs / travis errors ...
Have a nice sunday !

@vmaury
Copy link
Contributor Author

vmaury commented Dec 13, 2023

@eldy : I saw you made some changes on phpcs config, I merged by branch #27011 with develop this morning, but there's still an error I don't understand ...
If you can have a look ... thanks !

@eldy
Copy link
Member

eldy commented Mar 20, 2024

The choice on lines and quantity must not be defined by hidden rules:
When we create an invoice from an order, we have the list of invoice with a checkbox so user can select which line we import. We should also have the qty into an input so user can also select quantity.
And the predefined value can be set according to rules like "not already invoiced quantities". We can show for example 1/3 if there is only 1 qty to invoice among 3. Things are clearer for end user.
So we must first enhance the interface to allow to choose the qty to use in order before being able to modulate the qty to use by default.
A end user visible solution is better than a silent hidden rule.

Before we have this implementation, we can rely on the warning: "An invoice was already done for this order"

@vmaury
Copy link
Contributor Author

vmaury commented Apr 3, 2024

I well understand what you mean ...
But for now, to achieve what you said, we're obliged to modify lot of things in commonobject, core/tpl and so on..
I don't feel experimented enough to do this alone on my side.
I suggest we code or discuss about this during devcamp in Montpellier, I'll be there !

@vmaury
Copy link
Contributor Author

vmaury commented Apr 3, 2024

As my final client asks me to have a solution NOW, I coded this
After the suggested lines, if there are other invoices/lines that are concurrent they are displayed
Existing_facts

Do you thing it could be a temporary solution ?

@eldy
Copy link
Member

eldy commented Apr 14, 2024

As my final client asks me to have a solution NOW, I coded this After the suggested lines, if there are other invoices/lines that are concurrent they are displayed Existing_facts

Do you thing it could be a temporary solution ?

Why not.
However, to make screen lighter, i suggest to just show a text link under the list of product
"[Picto warning] Other invoices already exists. Click here to show them..."
When clicking a js code show the full part of "existing invoices" as e see it on your screenshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible to bill several times lines of an order already billed
2 participants