Sale linked to a cancelled blanked agreement

Hi,

We noticed that a user could cancel a sale blanked agreement linked to existing sales. Should I open an issue to prevent such behavior (warning ? error ?) or should I empty the field blanked agreement on concerned sales ?

Also in case of cancelled blanket agreement, when user duplicate the linked sale, he receives an error message about the domain of the agreement. Probably, we should set to default the blanket agreement field when copying sale line ?

Normally the draft sale could no more be validated as the domain for the blanket agreement on the line will no more be valid.
But any way I think it will be good to have a warning.

I guess if the blanket agreement is no more running, it should be cleared.

1 Like

I’ve a sale in “Quotation” state linked to a cancelled blanked agreement, when I go back to draft and then return to quotation state, there’s no domain error about the state of the blanket agreement.
Domain check is done only if i update/save sale_line. In our case, user has cancelled the agreement and the sale is already in quotation.

Indeed if any linked fields on the line are modified, it does not trigger a domain validation.
So we should probably have a validation when confirming such sale.

1 Like