Prevent deletion of Product Price Templates linked to products

Description

Product Price Templates linked to products can be deleted.
These should be marked inactive instead.

The link between products and price templates is currently modelled using an entityRelationship.productLink.
If it was entityLink.productLink (i.e an EntityLink), deletion would automatically be prevented.
This would also improve load times for templates linked to a lot of products.

This would affect:

  • product.medication

  • product.merchandise

  • product.service

  • Product List Report

  • Product Price Structure Report

  • Product Price List Report

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tony De Keizer

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure