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

Error invoicing contract, services in contract turn into products in the invoice #14927

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

Comments

@joanahead
Copy link

Bug

When doing and invoice from a contract, if there are any services* created within the contract, they turn into products (instead of services) in the invoice, and so, services' dates cannot be edited in the invoice.

  • If you use services from the products/services Dolibarr database it works well, but if you defined the service as text in the contract it fails when building the invioice and turns those "text" services into products.

Environment

  • Version: 12.0.2
  • OS: Centos 7
  • Web server: Apache
  • PHP: 7.2
  • Database: MySQL/

Steps to reproduce the behavior

Create customer contract. Add service from scratch to the contract (do NOT use preexistent services from services/products Dolibarr database). Create invoice from the contract.
Then in the invoice the service turned into a product and you cannot edit the dates (begin, end) of the service as it is a product that has no dates.

@joanahead joanahead added the Bug This is a bug (something does not work as expected) label Oct 5, 2020
Ahuahuachi added a commit to TI-Sin-Problemas/dolibarr that referenced this issue Oct 15, 2020
This bug is produced because the ContratLigne class gives a property type instead of a product_type
Ahuahuachi added a commit to TI-Sin-Problemas/dolibarr that referenced this issue Oct 15, 2020
This bug is produced because the ContratLigne class gives a property type instead of a product_type
eldy added a commit that referenced this issue Oct 15, 2020
FIX #14927 Change ContratLigne property type to product_type
@eldy eldy closed this as completed in 4a3ffbb Oct 15, 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