Create new error message for posting deactivated document
Description
Environment
Activity
Muhammad Bilal November 15, 2015 at 12:10 PM
Dear All,
I am facing following problem , please someone can help me
Given Scenario
1- Create PO amount (1000 USD )
2- Advance Payment to Vendor (1000 USD)
3-Material Receipt ( 700 USD)
4-Create Invoice (700 USD)
5- Allocation - Payment And Invoice
Till this its ok
Now Vendor Returns remaining amount (300 USD) , Please now tell me how I will handle this entry into System and how I will change 300 USD unallocated payment
Carlos Ruiz June 11, 2012 at 9:34 PM
You're right - seems like rv_unposted and rv_unprocessed have the filter actually.
Regards,
Carlos Ruiz
Nicolas Micoud June 7, 2012 at 3:52 PM
Hi Carlos,
I was about to create migration script for this ticket but I could not see inactive allocations in "Unposted Documents" or "Unprocessed Documents" windows.
Could you please give steps to reproduce ? Or close ticket ?
Thanks & regards,
Nicolas
Carlos Ruiz April 18, 2012 at 10:24 PM
Nicolas Micoud April 18, 2012 at 8:47 PM
Hi,
I've made the modification in doc.
Not sure it has been done using best practices...
Can you please review ?
For exclude those docs from Unposted and Unprocessed documents, we can do it :
1 - through sql (modifying view)
2 - within dictionnary (adding IsActive='Y' in SQL Where fields of tabs)
What do you prefer ?
Regards,
Nicolas
Steps to reproduce :
Create an allocation
Post it
Void it (posting is deleted and document is deactivated)
Now, try to post it again : you got this message "Posting Error - Cannot Lock - ReSubmit or RePost with Force"
But if you try to resbumit or post with Force, it can't be posted, because the document is deactivated.
IMHO opinion, the message could be more explicit.
It should be handled in org.compiere.acct.Doc.post(boolean, boolean) ; if a document is deactivated, the message should be something like "This document is deactivated, it cannot be posted again".
WDYT ?
Regards,
Nicolas