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

Service customer price not used even if PRODUIT_CUSTOMER_PRICES enabled #15199

Closed
DR59 opened this issue Oct 28, 2020 · 0 comments
Closed

Service customer price not used even if PRODUIT_CUSTOMER_PRICES enabled #15199

DR59 opened this issue Oct 28, 2020 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@DR59
Copy link

DR59 commented Oct 28, 2020

Bug

We are trying to bill customers for time spent on projects but only default price for services is used for invoice computing, not customer specific price.
NOTE : We use delcroip Project TimeSheet module (https://github.com/delcroip/dolibarr_project_timesheet) and not the standard basic time sheet functions.

Environment

  • Version: 11.0.1
  • OS: Debian 9
  • Web server: Apache/2.4.38
  • PHP: 7.3.19
  • Database: MariaDB 10.3.25
  • URL(s): compta/facture/card.php?facid=###

Expected and actual behavior

We expected that the invoice would use the customer specific price to compute the price for the service billed (provided that the work has been done after the date of validity for the given price).

Actual behavior is that when we generate the bill, the values used are all default prices and not the values contained in the product_customer_price table. The prices used for the invoice, as displayed by page compta/facture/card.php?facid=###, is just the default ones and the generated PDF also use those default values.

Steps to reproduce the behavior

Activate per customer price in PM/Services modules
Create a service and activate it for selling, entering a default price and then adding a different selling price for a given customer.
Create a project the the given customer with a billable task using the defined service. Enter some time for this task at a date posterior to the customer specific price validity date for the related service.
Bill the project. When bill displayed (compta/facture/card.php?facid=#) only default prices are used.

@DR59 DR59 added the Bug This is a bug (something does not work as expected) label Oct 28, 2020
@eldy eldy closed this as completed in 45f834c Nov 1, 2020
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)
Projects
None yet
Development

No branches or pull requests

1 participant