Product Version 2015
When posting Sales Invoice i get this error "posting date is not with in your range".
*User posting date set 08/01/16..08/31/16
*G/L Setup date set 09/01/16..09/30/16
*Invoice Posting date 08/20/16
Please i tried to look into this issue and no solution. and i noticed this issue mostly surfacing at the end of the month after adjust cost batch job run.
Hello everybody I followed your suggestion and the debugger traced the error on Code unit 21 CheckAllowedPostingDate(ItemJnlLine : Record "Item Journal Line") WITH ItemJnlLine DO BEGIN IF (AllowPostingFrom = 0D) AND (AllowPostingTo = 0D) THEN BEGIN InvtSetup.GET; GLSetup.GET; IF USERID <> '' THEN IF UserSetup.GET(USERID) THEN BEGIN AllowPostingFrom := UserSetup."Allow Posting From"; AllowPostingTo := UserSetup."Allow Posting To"; END; IF (AllowPostingFrom = 0D) AND (AllowPostingTo = 0D) THEN BEGIN AllowPostingFrom := GLSetup."Allow Posting From"; AllowPostingTo := GLSetup."Allow Posting To"; END; IF AllowPostingTo = 0D THEN AllowPostingTo := 31129999D; END; IF ("Posting Date" < AllowPostingFrom) OR ("Posting Date" > AllowPostingTo) THEN FIELDERROR("Posting Date",Text001)//Right here END;
What would be the case since my Posting date on the invoice falls between the date range given for the user??