Sage 100

 View Only
  • 1.  Crystal Report Formula Issue

    Posted 12-14-2020 15:18
    Edited by Doug Higgs 12-14-2020 15:20
    Printing the AP Invoice Register - Trying to display a message when the module date doesn't agree to the month or year of one or more of the invoice dates.  I know the @moduledate field doesn't get passed to the work table until the report is run. How do I return the module date month?
    ​​

    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Assistant to the Traveling Secretary
    ------------------------------


  • 2.  RE: Crystal Report Formula Issue

    Posted 12-14-2020 15:28
    Edited by Doug Higgs 12-14-2020 15:28
    @JournalPostingDate is a better choice than @ModuleDate.​

    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Assistant to the Traveling Secretary
    ------------------------------



  • 3.  RE: Crystal Report Formula Issue

    Posted 12-14-2020 15:39
    Did that resolve it?

    ------------------------------
    Therese Logeais, Technology Integrators
    ------------------------------



  • 4.  RE: Crystal Report Formula Issue

    Posted 12-14-2020 15:47
    No.  This is not resolved.  I want to compare the invoice date month and year to the Journal Posting Date.  If there is a mismatch, I want to display a message warning the user not to update the AP Invoice Register.

    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Assistant to the Traveling Secretary
    ------------------------------



  • 5.  RE: Crystal Report Formula Issue

    Posted 12-14-2020 15:50
    Have you tested it? Do you get the error only in Crystal or does it work when you run an invoice register?

    ------------------------------
    Therese Logeais, Technology Integrators
    ------------------------------



  • 6.  RE: Crystal Report Formula Issue

    Posted 12-14-2020 15:55
    When I try to use the following formula I get "A date is required here" message on the month({@JournalPostingDate}) function.

    if (month({AP_InvoiceRegisterWrk.InvoiceDate})<> month({@JournalPostingDate}))
    or
    (year({AP_InvoiceRegisterWrk.InvoiceDate})<> year({@JournalPostingDate}))
    then "1" else "0"

    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Assistant to the Traveling Secretary
    ------------------------------



  • 7.  RE: Crystal Report Formula Issue

    Posted 12-14-2020 16:03
    Yes, but that's in Crystal. It should give you the option to save anyway if you close the formula editor down. Then save the form and try it through Sage.

    ------------------------------
    Therese Logeais, Technology Integrators
    ------------------------------



  • 8.  RE: Crystal Report Formula Issue

    Posted 12-14-2020 16:09
    Got it to work.  Needed to add the CDATE function to the formula.  It didn't give me the option to save the formula with the previous error.   Here's the formula that works and the printed report works great.

    if (month({AP_InvoiceRegisterWrk.InvoiceDate})<> month(cdate({@JournalPostingDate})))
    or
    (year({AP_InvoiceRegisterWrk.InvoiceDate})<> year(cdate({@JournalPostingDate})))
    then "1" else "0"

    ------------------------------
    Doug Higgs
    Midwest Commerce Solutions, Inc
    (312) 315-0960
    Assistant to the Traveling Secretary
    ------------------------------