When trying to repost a document on a period closed (can be made by mistake by the user) - the posted status is set to "posting error" and then the accounting for the document cannot be seen from the posted button.
Steps to reproduce:
accounting schema set to manual period control
post a document in an open accounting period
close the accounting period
push the posted button on the document (the posting are shown)
push repost (error is shown)
now the posted button of the document shows "posting error" or "period closed" and the accounting cannot be seen
possible solutions are to check the period openness on the repost button - or to avoid setting the value "posting error" or "period closed" if the document is already posted
note the fact_acct records still exist and shown in reports, but they are not accesible from the posted button
I think (Updated 21c5292) is more better add MInvoice.Table_ID.
Because of C_Invocice has C_DocTypeTarget_ID column and this mothod is called When click the button of DocAction.
When I push the button of DocAction, Warning is shown.
MPeriod.isOpen() method: Line-349
if (doctypeID == 0 && (tableID == MOrder.Table_ID
tableID == MInvoice.Table_ID |
---|
)) {
idxdoctype = po.get_ColumnIndex("C_DocTypeTarget_ID");
objint = po.get_Value(idxdoctype);
if (objint != null && objint instanceof Integer) {
doctypeID = (Integer) objint;
}
}
It is I that should say thank you for the swift correspondence and to commit my name!