After on Accesslevel the privilige for CustFreeInvoiceMaintain has been modified from read to delete do I receive an error while deleting a non posted free text invoice. This error is logged in the SQL Statement Trace Log.
The following Statement:
INSERT INTO tempdb."DBO".t65460_85CC21F00F884E329C00FEEA5243FF35 (CANDIDATERECID) SELECT T1.RECID FROM tempdb."DBO".t101658_EBFAB04E8AF5406594EC4C34314AB16D T1 WITH ( UPDLOCK) CROSS JOIN tempdb."DBO".t101655_64C9A24FCF7943F7956024D0C628451F T2 WHERE (((T1.DATAAREAID=N'012') AND ( IN (101655,101661) )) AND ((0=101655) OR (0=101658))) AND ((T2.DATAAREAID=N'012') AND ((T2.RECID=0) AND (T2.RECID=T1.RECID)))
The following description:
[Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'IN'.
Several attempts have been made to allow a user with the role Accounts receivable payments clerk to actually delete free text invoices but the only thing what has been succesfull is grant administrator rights and this is not an option.