Trying to delete a Poste Sales Invoice results in the following error:
Allow Document Deletion Before must have a value in Sales & Receivables Setup: Primary Key=. It cannot be zero or empty.
I am not too sure if the error stems from my code, and if it is I am not sure where to find the file that causes this.
Thanks for getting back to me. I am just messing around in my sandbox. I am testing a report based on posted sales invoices and I forgot to input some necessary data in the certain fields. Thank you for the warning also
Hi,
In your Sales & Receivable Setup.
Add the date that you want to delete the record. It is standard error.
if the posting date of PSI was 15th March 2022 then added 16th March 2022 date in allow document deletion before field.
But why do you want to delete the posted documents. since it has affected the GL entry already this can cause issue when auditing.
If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156