Previous Thread
Next Thread
Print Thread
Joined: Jun 2007
Posts: 964
S
Adagio Maestro
Adagio Maestro
S Online: Content
Joined: Jun 2007
Posts: 964
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
Joined: Mar 2002
Posts: 4,571
Adagio God
Adagio God
Joined: Mar 2002
Posts: 4,571
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

Joined: Jun 2004
Posts: 3,692
B
Adagio Wizard
Adagio Wizard
B Offline
Joined: Jun 2004
Posts: 3,692
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.

Joined: Jun 2007
Posts: 964
S
Adagio Maestro
Adagio Maestro
S Online: Content
Joined: Jun 2007
Posts: 964
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

Moderated by  Softrak Support 

Link Copied to Clipboard
Who's Online Now
4 members (Softrak Support, Samuel Kopstick, Warren Karges, Lauren Stief), 68 guests, and 3 robots.
Key: Admin, Global Mod, Mod
Forum Statistics
Forums5
Topics14,679
Posts71,628
Members1,874
Most Online1,408
Dec 9th, 2025
November
S M T W T F S
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
Powered by UBB.threads™ PHP Forum Software 8.0.0