diff --git a/src/Samples/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo/Graph/BQL Parameters Count Mismatch Test/APInvoiceEntryExt.cs b/src/Samples/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo/Graph/BQL Parameters Count Mismatch Test/APInvoiceEntryExt.cs new file mode 100644 index 000000000..d1b95e3a7 --- /dev/null +++ b/src/Samples/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo/Graph/BQL Parameters Count Mismatch Test/APInvoiceEntryExt.cs @@ -0,0 +1,56 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using PX.Data; +using PX.Objects.AP; + +namespace PX.Objects.HackathonDemo.BqlParamsMismatch +{ + // Acuminator disable once PX1016 ExtensionDoesNotDeclareIsActiveMethod extension should be constantly active + public class APInvoiceEntryExt : PXGraphExtension + { + protected virtual void __(Events.RowSelecting e) + { + if (e.Row != null) + { + PXSelectBase cmd = + new PXSelectReadonly>, + And>, + //Accidentally left this And here when WhereAnd was written. + And>>>>>(Base); + + + if (cmd is PXSelectReadonly>, + And>, + //Accidentally left this And here when WhereAnd was written. + And>>>>> s) + { + + } + + + + using (new PXConnectionScope()) + { + bool b = false; + + //Warning doesn't show in either case. + if (b) + { + cmd.WhereAnd>>>(); + + cmd.Select(e.Row, e.Row.DocType); + } + else if (false) + cmd.Select(e.Row.DocType, e.Row.RefNbr); + } + } + } + } +} diff --git a/src/Samples/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo.csproj b/src/Samples/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo.csproj index aec6210e1..36d40f6d8 100644 --- a/src/Samples/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo.csproj +++ b/src/Samples/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo/PX.Objects.HackathonDemo.csproj @@ -99,6 +99,7 @@ +