Sage 100

 View Only
Expand all | Collapse all

AP Check Template Wording

Brett Zimmerman

Brett Zimmerman02-08-2019 16:36

  • 1.  AP Check Template Wording

    Posted 02-08-2019 09:30
    This just in from client.

    When we print an AP check with zero cents, it is printing out the words "One Hundred and XX/100".      How do I edit the formula to get it to read 00/100 instead of printing XX's?

    I have looked at formula there is no apparent to to change the "XX".  Can anyone confirm?

    TIA

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------


  • 2.  RE: AP Check Template Wording

    Posted 02-08-2019 09:59
    Jeff - This is what my my ap check formula says....
    formula = "*" + Uppercase(ToWords({AP_CheckWrk.CheckAmt},2))

    Is yours different?

    ------------------------------
    Randy Marion
    ------------------------------



  • 3.  RE: AP Check Template Wording

    Posted 02-08-2019 11:35
    Yep, that is it.  where do you swap out the "XX" for "00".

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------



  • 4.  RE: AP Check Template Wording

    Posted 02-08-2019 11:48
    Edited by Kevin Moyes 02-08-2019 11:48
    The only thing I can think of would be text manipulation of that formula result.  If it ends in XX/100 then grab everything up to that point, and replace the remaining characters with 00/100.
    Of course, even better would be to tell them this is a programmed function, and a known standard format.  Changing it is not easy, nor recommended.

    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 5.  RE: AP Check Template Wording

    Posted 02-08-2019 11:59
    Edited by Michelle Forsey 02-08-2019 12:02
    IT probably because it is a whole number, and not actually using decimals? Maybe doublecheck in DFDM, you can mod the formula to replace the xx with 00:

    (replace(towords(...),"xx/","00/"))

    formula = "*" + Uppercase(Replace(ToWords({AP_CheckWrk.CheckAmt},2)"xx/","00/")

    I haven't tested that, so you might need to swap the replace and the towords.

    *edit, I copied in the original formula from a oneNote from a while back, the second formula is my best guess as to the replacement.
    ------------------------------
    Michelle Forsey
    Eide Bailly, Inc.
    801-456-5470
    ------------------------------



  • 6.  RE: AP Check Template Wording

    Posted 02-08-2019 12:13
    I like Michelle's replace syntax too.
    (If you're not aware, ToWords is a Crystal Reports function, based on a number input... with the xx/100 output being automatic with no options).


    ------------------------------
    Kevin Moyes
    Technical Systems Analyst
    Munjal White Consulting Co.
    Toronto ON
    ------------------------------



  • 7.  RE: AP Check Template Wording

    Posted 02-08-2019 12:02
    You could use a conditional.   For example, if the amount is $100.00;

    If right({AP_CheckWrk.CheckAmt},2)=0
    then
    ( Uppercase(ToWords({AP_CheckWrk.CheckAmt},0)) + "and 00/100"
    else
    ( Uppercase(ToWords({AP_CheckWrk.CheckAmt},2))

    ------------------------------
    Doug Higgs
    Assistant Technical Support / Building Maintenance Specialist
    Midwest Commerce Solutions, Inc
    ------------------------------



  • 8.  RE: AP Check Template Wording

    Posted 02-08-2019 12:08
    Actually, Michelle's solution looks better than mine and not sure mine will work.

    ------------------------------
    Doug Higgs
    Assistant Technical Support / Building Maintenance Specialist
    Midwest Commerce Solutions, Inc
    ------------------------------



  • 9.  RE: AP Check Template Wording

    Posted 02-08-2019 16:36
    Edited by Brett Zimmerman 02-08-2019 16:36


  • 10.  RE: AP Check Template Wording

    Posted 02-08-2019 16:37
    Edited by Brett Zimmerman 02-08-2019 16:38
    Wow, I thought I was anal-retentive.

    ------------------------------
    - Brett
    ------------------------------



  • 11.  RE: AP Check Template Wording

    Posted 02-08-2019 19:43
    Kinda my thought.  This is the first in 20 years for me.  These are the same folks that were hand writing checks for over a year (most vendors paid via bank's DD portal) and took five months after I recommended they start printing checks in house......

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------



  • 12.  RE: AP Check Template Wording

    Posted 02-10-2019 17:05
    I managed to get the formula not to error out but the below attempt did not result in any bell ringing or eureka moments.  "xx/" still appeared.

    formula = "*" + Uppercase(Replace(ToWords({AP_CheckWrk.CheckAmt},2),"xx/","00/"))

    Any other thoughts out there?

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------



  • 13.  RE: AP Check Template Wording

    Posted 02-10-2019 18:19
    I just tested the following and it works:

    new formula @LengthOfSpelledOutAmount
    length({@SpelledOutCheckAmount})

    new formula  @TEST1
    left({@SpelledOutCheckAmount},{@LengthOfSpelledOutAmount}-8)

    new formula @newSpelledOutCheckAmount
    {@TEST1} + " " + right(totext({AP_CheckWrk.CheckAmt}),2) + " / 100"

    Of course you can use different formula names and combine the formulas if you wish.  I did this quick and dirty a piece at a time to get it working.
    ​​​

    ------------------------------
    Doug Higgs
    Assistant Technical Support / Building Maintenance Specialist
    Midwest Commerce Solutions, Inc
    ------------------------------



  • 14.  RE: AP Check Template Wording

    Posted 02-10-2019 18:21
      |   view attached
    see attached sample.

    ------------------------------
    Doug Higgs
    Assistant Technical Support / Building Maintenance Specialist
    Midwest Commerce Solutions, Inc
    ------------------------------

    Attachment(s)

    rpt
    AP_Check2.rpt   63 KB 1 version


  • 15.  RE: AP Check Template Wording

    Posted 02-10-2019 21:28
    Interesting.  Thanks.  Client will be happy.  Now back to the Grammies​.  Sad that Dollie is the only one I know so far....

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------



  • 16.  RE: AP Check Template Wording

    Posted 02-10-2019 21:38
    You better start getting some ideas for Karaoke night.

    ------------------------------
    Doug Higgs
    Assistant Technical Support / Building Maintenance Specialist
    Midwest Commerce Solutions, Inc
    ------------------------------



  • 17.  RE: AP Check Template Wording

    Posted 02-11-2019 10:30
    I am thinking a medley of Queen's greatest hits.

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------



  • 18.  RE: AP Check Template Wording

    Posted 02-11-2019 10:59
    Don't tease me with that....

    ------------------------------
    Beth Bowers
    Mom to Samson, Peanut, ChiChi, Canton, and Cagney
    Beth Bowers
    269-445-1625
    ------------------------------



  • 19.  RE: AP Check Template Wording

    Posted 02-11-2019 11:20
    Will there be a cover charge to hear you perform the Queen songs?

    ------------------------------
    Doug Higgs
    Assistant Technical Support / Building Maintenance Specialist
    Midwest Commerce Solutions, Inc
    ------------------------------



  • 20.  RE: AP Check Template Wording

    Posted 02-11-2019 13:30
    @Doug Higgs - Yes, it is called shots of Patron!  I hope your remember the drill from two years ago.  @Beth Bowers - We Will ROCK You!!!! ​​

    ------------------------------
    Jeff Schwenk
    Bottomline Software, Inc.
    Waynesboro VA
    540-221-4444
    ------------------------------



  • 21.  RE: AP Check Template Wording

    Posted 02-11-2019 13:34
    You got it!  Whatever it takes to keep you on the "stage".

    ------------------------------
    Doug Higgs
    Assistant Technical Support / Building Maintenance Specialist
    Midwest Commerce Solutions, Inc
    ------------------------------