Skip to content

Correct the name of oc_gestion_produit_devis to dhb2_gestion_produit_devis because the table was named like this in my nc bdd. I don't know if I'm right but I made this correction on my nc app and it works.#514

Open
Lasertie wants to merge 1 commit into
baimard:masterfrom
Lasertie:master

Conversation

@Lasertie
Copy link
Copy Markdown

No description provided.

…devis because the table was named like this in my nc bdd. I don't know if I'm right but I made this correction on my nc app and it works.
Copy link
Copy Markdown
Author

@Lasertie Lasertie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[all in the commit description]

@baimard
Copy link
Copy Markdown
Owner

baimard commented May 10, 2026

You find a bug, thank you :

but the good correction is :

$sql = "SELECT ".$this->tableprefix."produit.id as pid,".$this->tableprefix."produit_devis.id as pdid, header, reference, description,".$this->tableprefix."produit_devis.comment, quantite, prix_unitaire FROM ".$this->tableprefix."produit, ".$this->tableprefix."devis, ".$this->tableprefix."produit_devis WHERE ".$this->tableprefix."produit.id = produit_id AND ".$this->tableprefix."devis.id = devis_id AND ".$this->tableprefix."devis.id = ? AND ".$this->tableprefix."devis.id_configuration = ? AND ".$this->tableprefix."produit.id_configuration = ? ORDER BY ".$this->tableprefix."gestion_produit_devis.order ASC";

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.

2 participants