Click here to Skip to main content
14,539,823 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: South Africa VAT increase Pin
CPallini27-Mar-18 22:28
mveCPallini27-Mar-18 22:28 
GeneralRe: South Africa VAT increase Pin
Mycroft Holmes27-Mar-18 22:08
professionalMycroft Holmes27-Mar-18 22:08 
GeneralRe: South Africa VAT increase Pin
PeejayAdams27-Mar-18 22:13
MemberPeejayAdams27-Mar-18 22:13 
GeneralRe: South Africa VAT increase Pin
Tomaž Štih27-Mar-18 22:39
MemberTomaž Štih27-Mar-18 22:39 
GeneralRe: South Africa VAT increase Pin
S Douglas28-Mar-18 4:35
professionalS Douglas28-Mar-18 4:35 
GeneralRe: South Africa VAT increase Pin
PIEBALDconsult28-Mar-18 8:24
professionalPIEBALDconsult28-Mar-18 8:24 
GeneralRe: South Africa VAT increase Pin
S Douglas28-Mar-18 9:04
professionalS Douglas28-Mar-18 9:04 
GeneralRe: South Africa VAT increase Pin
Chris Quinn27-Mar-18 22:52
MemberChris Quinn27-Mar-18 22:52 
I had to virtually rewrite an order processing system about 10 years ago when the VAT rate in the UK changed. As well as handling the possibility of rates changing, it also had to handle variable/intermediate rates depending on the product. Some products get the full rate, some are zero rated and some have intermediate rates applied.

The company handled gift vouchers for many high street brands. VAT was charged on each at a rate calculated by HMRC depending on the type of goods sold by the retailer. If it was a clothes retailer it was charged the full rate, unless it was a children's clothes retailer when it was zero rated. Shops that sold adult and child ranges had an intermediate rate calculated based on their ratio of sales. Shops that stocked food were also affected, as most food is zero rated, except luxury foods, which attract the top rate.

On the whole, the change in rate was a fairly minor problem!

I also had to deal with the fact that the numpty who had writtedn the original system calculated the prices including VAT and excluding VAT and the VAT amount by using calculations prone to rounding errors. I fixed this by calculating just one value, then adding or subtracting this as necessary.
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================

GeneralRe: South Africa VAT increase Pin
NoNotThatBob28-Mar-18 3:52
MemberNoNotThatBob28-Mar-18 3:52 
GeneralI was sent this and... Pin
Mycroft Holmes27-Mar-18 20:35
professionalMycroft Holmes27-Mar-18 20:35 
GeneralRe: I was sent this and... Pin
HobbyProggy27-Mar-18 20:38
professionalHobbyProggy27-Mar-18 20:38 
GeneralRe: I was sent this and... Pin
CodeWraith27-Mar-18 20:39
MemberCodeWraith27-Mar-18 20:39 
GeneralRe: I was sent this and... Pin
GuyThiebaut27-Mar-18 20:41
professionalGuyThiebaut27-Mar-18 20:41 
JokeRe: I was sent this and... Pin
den2k8827-Mar-18 20:57
professionalden2k8827-Mar-18 20:57 
GeneralRe: I was sent this and... Pin
Rick York28-Mar-18 4:17
mveRick York28-Mar-18 4:17 
GeneralI was sent this, and... Pin
OriginalGriff27-Mar-18 11:27
mveOriginalGriff27-Mar-18 11:27 
GeneralRe: I was sent this, and... Pin
DRHuff27-Mar-18 11:55
MemberDRHuff27-Mar-18 11:55 
GeneralRe: I was sent this, and... Pin
W Balboos, GHB28-Mar-18 6:40
mveW Balboos, GHB28-Mar-18 6:40 
GeneralRe: I was sent this, and... Pin
DRHuff28-Mar-18 7:44
MemberDRHuff28-Mar-18 7:44 
GeneralRe: I was sent this, and... Pin
W Balboos, GHB28-Mar-18 7:45
mveW Balboos, GHB28-Mar-18 7:45 
GeneralRe: I was sent this, and... Pin
DRHuff28-Mar-18 8:40
MemberDRHuff28-Mar-18 8:40 
GeneralRe: I was sent this, and... Pin
PIEBALDconsult27-Mar-18 12:43
professionalPIEBALDconsult27-Mar-18 12:43 
AnswerRe: I was sent this, and... Pin
"mega"-in-a-fake-beard28-Mar-18 3:24
professional"mega"-in-a-fake-beard28-Mar-18 3:24 
GeneralRe: I was sent this, and... Pin
PIEBALDconsult28-Mar-18 10:59
professionalPIEBALDconsult28-Mar-18 10:59 
GeneralRe: I was sent this, and... Pin
"mega"-in-a-fake-beard28-Mar-18 13:16
professional"mega"-in-a-fake-beard28-Mar-18 13:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.