Roger Anderson Posted December 1, 2008 Posted December 1, 2008 Hi. I am trying to use an If command to change VAT (Tax) from 17.5% to 15%. I have at the moment: If(Order Date > 01/12/2008,Line Totals*15/100,Line Totals*17.5/100) I want to say: If the date is after 01/12/2008 then use 15% as the VAT addition; if not use 17.5%. Could somebody help me please. Many thanks. Roger
Raybaudi Posted December 1, 2008 Posted December 1, 2008 If( Order Date > Date ( 12 , 1 , 2008 ) , Line Totals * 15/100 , Line Totals * 17.5/100 ) Note that this calc is for 6 !
Roger Anderson Posted December 1, 2008 Author Posted December 1, 2008 Thanks very much, Daniele. I will try that. Best wishes. Roger.
comment Posted December 1, 2008 Posted December 1, 2008 This is not a good approach overall. Tax rate is data, not part of the schema; it should be looked up from a preference, not hard-coded into a calculation.
Simon K Posted December 1, 2008 Posted December 1, 2008 For what its worth - minor point - in UK VAT is rounded down to nearest whole penny too... Hope this helps Simon
Roger Anderson Posted December 1, 2008 Author Posted December 1, 2008 Hi. "from a preference". I'm not an expert. Do you mean to put the VAT values in a separate table and look them up and select at the time of writing the invoice? Would appreciate any advice as is for a Charity. Thanks. Roger.
comment Posted December 1, 2008 Posted December 1, 2008 Yes, more or less. For a single user, this could be in a global field, but for a hosted solution a separate Preferences table with a single record is preferable.
Roger Anderson Posted December 1, 2008 Author Posted December 1, 2008 Hi again. I'm afraid tha I cannot get your formula to work. Can I use 12/01/2008 as the date format? Or need to put ,. Is If( on the first line alone? Any help really appreciated. Thanks. Roger
Recommended Posts
This topic is 5889 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now