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

Facture "createFromOrder" doesn't take over external / client reference #32768

Open
lippoliv opened this issue Jan 24, 2025 · 0 comments
Open
Labels
Bug This is a bug (something does not work as expected)

Comments

@lippoliv
Copy link
Contributor

Bug

When \Facture::createFromOrder is used to create a Facture from an Commande, the external reference isn't taken over.

After using it, this must be done manually ($invoice->ref_customer = $order->ref_client;).

Dolibarr Version

20.0.3

Environment PHP

8.2

Environment Database

MariaDB 10.6.20

Steps to reproduce the behavior and expected behavior

  1. Create sales order
  2. Define external reference
  3. Trigger createFromOrder (code or API)

Attached files

No response

@lippoliv lippoliv added the Bug This is a bug (something does not work as expected) label Jan 24, 2025
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