Skip to content

[19.0] account_invoice_fixed_discount: discount_fixed getting set to 0 #2317

@evanomnisoft

Description

@evanomnisoft

When I set fixed discount the first time on a invoice line, everything goes well other than the fact that the fixed discount field gets set back to 0.

It seems the initial intent is to "disable" the fixed discount field if discount% field is used by setting it to 0 but that leads inconsistency in data since the 2 discount fields will not tally. Would it be better to just reverse compute the field as such?

self.discount_fixed = self.price_unit * (self.discount / 100.0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions