Topic Options
#60669 - 04/22/19 09:30 AM Conditional reporting in Invoices module?
Samuel Kopstick Offline
Adagio Virtuoso

Registered: 06/15/07
Posts: 893
Loc: GTA & North America (Remote Su...
Is there any way to display a value on an Invoice Spec from a field based on a condition?

e.g. If (Report Group=”States”, “USD”, “”)

We would like to display the text “USD” when the Report Group has “States”, otherwise leave the display blank.
(No, we are not using multi-currency.)
_________________________
Samuel Kopstick
S Kopstick & Associates Inc
Toronto, ON

Top
#60670 - 04/22/19 10:43 AM Re: Conditional reporting in Invoices module? [Re: Samuel Kopstick]
Steve Schwartz Offline
Adagio God

Registered: 03/10/02
Posts: 4446
Loc: Wynnewood, PA
Hi Samuel

No. Version 9.3A of Invoices is the first module to allow for calculated fields on a spec:

(from the Release notes)
Added calculated numeric fields on invoices using formulas in the Specification Designer to do math (add, subtract, multiply, divide) on specification codes and constants. Added new Formulas, Numeric section to Specification Designer with new codes: X001..X005 Calculated Amount 1..5

But no module has if/then/else functionality.

Someone will certainly chime in and say that this can be done using PrintBoss.

Steve

Top
#60671 - 04/22/19 11:15 AM Re: Conditional reporting in Invoices module? [Re: Steve Schwartz]
Bruce Gardner Offline
Adagio Wizard

Registered: 06/15/04
Posts: 3501
Loc: Toronto ON, Canada
Hi Samuel:

In the absence of If/Else logic, three approaches come to mind (you may have already considered these):

1) Have 2 versions of the invoice spec file, one for USD and one for CAD, then assign the USD spec to the USD Customers.

2) Print an Optional field on the spec file and enter "USD Dollars" on the Customer profile but leave it blank for CAD Customers.

3) Since the Customers are likely in 2 different Control Account Sets, make the Description of the USD Account Set = "USD Dollars" and print it on the invoice (spec code = E052). The Description of the CAD Account Set would either have to be blank or say "CAD Dollars".

The third option only requires one spec file and probably comes as close as you can get to the simplicity of the If/Else option.
_________________________
Bruce Gardner
ARX Business Solutions Inc.

Top
#60676 - 04/23/19 08:51 AM Re: Conditional reporting in Invoices module? [Re: Bruce Gardner]
Samuel Kopstick Offline
Adagio Virtuoso

Registered: 06/15/07
Posts: 893
Loc: GTA & North America (Remote Su...
Thanks Steve & Bruce,

Steve – yes, I am familiar with the new code for calculated numeric values in Invoice.
I was just wondering if anyone may have come up with some work around that I have not thought of.
But as you state, there is no logic fields (yet) in the specs.

Bruce – your third option is the way that we are going. We will either use the Control Account, or an optional string field that we will call “Currency”. This way, we will be able to still manage with just the one spec file.
_________________________
Samuel Kopstick
S Kopstick & Associates Inc
Toronto, ON

Top


Moderator:  Christa_Meissner 
Who's Online
0 registered (), 32 Guests and 0 Spiders online.
Key: Admin, Global Mod, Mod
Forum Stats
1847 Members
5 Forums
14239 Topics
69728 Posts

Max Online: 359 @ 11/18/19 09:08 PM
May
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31