Need more, need help now? we offer pay-as-you-go support, no contract, tenth of an hour billing, expert help, fast service, no call queue
We can offer lower cost Sage50cloud subscriptions for customer using pay-as-you-go support or who are self-supporting.
Need integration, your shipping system, your website, your invoicing system, your crm.
Need a bespoke solution, Mini Manufacturing, Spreadsheet order import, Back to back orders.
Want web hosting, email, your own domain name, a shop, we do it all!

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: 4475
Joined: 28 Feb 2006, 09:56
Sage Version: v2017 23 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 1 guest