How to avoid the warning message "Could not find DateAcct for myTable"

55 views
Skip to first unread message

Nicolas Micoud

unread,
Jul 5, 2017, 3:04:03 AM7/5/17
to iDempiere
Hi,

I have a specific document which implements DocAction and when i complete it, i can read in log

juil
. 05, 2017 8:49:58 AM org.compiere.model.MPeriod isOpen
AVERTISSEMENT
: Could not find DateAcct for myTable



as myTable doesn't have a DateAcct column.
I don't need to check if the period is opened as this document doesn't generate posting.

The message is thrown by org.compiere.model.MPeriod.isOpen(Properties, int, int, String) - log level is set to warning.

What would be the best solution :
#1 : set log level to a lower level
#2 : find a way to say "there is no DateAcct on this table and that's ok !"
#3 : ???

Any idea ?

Regards,

Nicolas

Carlos Antonio Ruiz Gomez

unread,
Jul 6, 2017, 8:00:36 AM7/6/17
to idem...@googlegroups.com
Hi Nicolas,
please see
https://bitbucket.org/idempiere/idempiere/commits/14a7ff1

Regards,

Carlos Ruiz

Nicolas Micoud

unread,
Jul 6, 2017, 10:58:03 AM7/6/17
to iDempiere
Perfect !

Regards,

Nicolas
Reply all
Reply to author
Forward
0 new messages