dolibarr icon indicating copy to clipboard operation
dolibarr copied to clipboard

Variant prices do not apply to subsequent

Open julbroa opened this issue 1 year ago • 1 comments

Bug

when creating the variant of a product, in the case of the first variant if the percentage variation assigned to it is applied but already in the following variants even if a percentage variation is assigned, the price of this (and the other variants) appears in 0s

Environment Version

18.0.0

Environment OS

Linux us-imm-web1062.main-hosting.eu 4.18.0-477.10.1.lve.el8.x86_64 #1 SMP Wed May 17 07:12:55 EDT 2023 x86_64

Environment Web server

LiteSpeed

Environment PHP

8.1.18

Environment Database

MySQL or MariaDB 10.6.14-MariaDB-cll-lve

Environment URL(s)

htdocs/variants/combinations.php

Expected and actual behavior

Expected: When generating subsequent variants, these should be able to show the price that was assigned to them and thus, when used in invoices or point of sale, show the value of the price. Current: When generating the first variant, it correctly shows the assigned sales price, but subsequent variants appear in sales price in 0s

Steps to reproduce the behavior

create a product Create a variant and assign it a percentage price change relative to the parent product. This will appear with the sale price calculated by the percentage Create a second variant and assign it a percentage price variance relative to the parent product. This appears in 0 in terms of sale price

Attached files

image image image

julbroa avatar Aug 26 '23 19:08 julbroa