'remove a check on a duplication of the tarif
Solution 1:[1]
This validation is executed in CheckForDuplicateDetails
method.
You can override the method.
Make sure there is no bad side effects down the line if you remove this validation.
namespace PX.Objects.AP
{
public class APPriceWorksheetMaint_Extension : PXGraphExtension<APPriceWorksheetMaint>
{
public delegate void CheckForDuplicateDetailsDelegate();
[PXOverride]
public void CheckForDuplicateDetails(CheckForDuplicateDetailsDelegate baseMethod)
{
// To skip validation, don't call base method
// baseMethod();
}
}
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Hugues Beauséjour |