Need more, need help now?
- - - - - - - - - - - - - - - - - - pay-as-you-go support - no contract - tenth of an hour billing - expert help - fast service - no call queues
Need integration?
- - - - - - - - - - - - - - - - - - with your shipping system - website - invoicing system - crm - cms - manufacturing - order import - back to back orders..
Need a report?
- - - - - - - - - - - - - - - - - - Excel reporting that pulls data from Sage - custom layouts - layouts that change adapt to your brands and/or for drop shipping.
Want web hosting?
- - - - - - - - - - - - - - - - - - Your own domain name - email - a shop - wordpress - woo commerce - ticket systems - help desks - forums - portals

Expressions & operators

Report design issues and solutions.
Post Reply
labman
User
User
Posts: 2
Joined: 22 May 2022, 20:04
Sage Version: Other

Expressions & operators

Post by labman » 22 May 2022, 20:09

Hi,

I am using Sage 50c in the UK. I have created a commercial invoice which pulls in all the fields required inc. the different currencies. The problem I need to solve is to have the correct bank details displayed depending on the currency used in the invoice. I have a sterling bank account & a euro bank account. I am having a hard time getting information to show examples on this.

I want to implement the logic of: if currency = GBP then show Sterling account number, else show euro account number. Does anyone out know how to write this in the expressions?

User avatar
brucedenney
Site Admin
Site Admin
Posts: 4619
Joined: 28 Feb 2006, 09:56
Sage Version: v28 UK/Europe/Africa

Re: Expressions & operators

Post by brucedenney » 23 May 2022, 09:54

The expression construction is

LogicalTest?TrueAction: FalseAction

I would not do it that way though. It is fine for two currencies but if it is more or it there is a lot of text it just gets hard to see what it does.

Instead what I do is make multiple text boxes, set suppress print on them, then have a conditional format based on currency to undo the suppress print.

Stack them all on top of each other. Only the one matching the currency will print, you can include CHAPS SEPA BACS SWIFT details etc and be a bit more verbose.
For just about anything Sage :- Discount subscriptions, pay-as-you-go support, application integration, reports, layouts, linked excel spreadsheets, analysis or any other help making life with sage easier/less time consuming Contact me.

labman
User
User
Posts: 2
Joined: 22 May 2022, 20:04
Sage Version: Other

Re: Expressions & operators

Post by labman » 24 May 2022, 06:24

That worked. Thanks.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests