-
Notifications
You must be signed in to change notification settings - Fork 23.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] account: invoice analysis product quantity
This rev. is related to 6641c61 During the above revision, a new jointure has been added with product_uom, on product template uom_id The join link was wrong, it was: - LEFT JOIN product_uom u2 ON u.id = pt.uom_id and it must be: - LEFT JOIN product_uom u2 ON u2.id = pt.uom_id as the alias 'u' is the previous jointure, not this new one. Besides, the uom_name is now the name of the product uom of this second jointure As the uom is now the product default uom instead of the category reference uom The groupby clause has been adapted, as the selection was slightly altered Besides, grouping by u.uom_type, u.category_id was pointless
- Loading branch information
1 parent
b36908b
commit c331e96
Showing
1 changed file
with
7 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters