r/talesfromtechsupport • u/DivinePrinterGod Pass me the Number 3 adjusting wrench! • May 23 '16
Long The case of the Missing Financials Data
It's Monday Morning, and no more than five minutes after the boss walks in, I am summoned to his office.
Boss: My financials report shows me £500k sat in our warehouse, but the report you wrote for the factory manager shows £750k in the warehouse. I need to know where the difference is coming from.
I make notes of the exact figures, and we contact transport and manufacturing to see if they are moving stock around. They are, but only around 50k, so we're still 200k light on valued stock sat in our warehouse. I go back to my office, wondering how someone could lose 200k in a computer system. I have my ideas.
My junior developers are all in and starting to slowly wake up as the coffee takes its effect, so I call them into my office.
Me: Office Manager software is stating that we have 500K stock in the warehouse. Stock reporting shows that we have 750k stock in the warehouse. Any Ideas?
There are a lot of troubled looks from the team. Finally, Jim (who's been with the company for the past 20 years) speaks up.
Jim: You do realize that the company have been valuing stock for tax and audit purposes using Office Manager for the past decade. It was one of the first systems that your predecessor wrote.
My predecessor, although he believes that he was gods gift to development, really wasn't. His code is big, ugly and blunt. By comparison, mine is concise and short because I'm basically lazy and don't like typing too much. He also started out as an accounts clerk, was useless at it, and moved sideways but was verbose enough to make people believe him.
Me: The Boss thinks that his figures are correct and that ours are wrong, mainly because that's what he uses. We either have to find out why we've over-valued stock, or prove that his values are wrong. Follow your own avenues and we'll re-convene at 4pm. This has all our priorities.
I concentrate on the source code of Office Manager, which is a sprawl. The author of the software, my predecessor, had been clever and re-used code to the extent that you couldn't easily identify what did what. Add to that, the fact that he used user controls (a hybrid of other controls joined together) all over the page because it was easier than properly defining the page, and an old software toolbox that is no longer produced nor are we licensed for, and you see that we have issues.
Four o'clock rolls round, and I'm no closer. We all file into my office for the meeting, the outcome of which is that we should have now, 680k in our warehouse. A visual inspection gives us a ballpark figure of 679k, which is close enough for my purposes. The Office Manager software report 550k. No-one has any suggestions as to how it has changed or why. The values do not match anything.
Tuesday, and I manage to delve deep into the source code. Jim and myself work in tandem as we run the various queries and return strange values. Late afternoon, I have a brainwave.
Me: Jim, run a query against all line items that are identified as in the warehouse. Give me the total.
Jim types a few commands in.
Jim: 522k, give or take.
Me: Now run the same query on the item detail table.
Jim: 695k. Hang on, let me try something.
Cue more furious typing from Jim, before:
Jim: Bingo. I've found something. Item Quantities.
Me: I thought so. Let's go speak to the boss.
We print our evidence, and head to the bosses office, inviting the accountant along with us.
Me: It goes like this. Ten years ago when this software was written, we offered a single quantity on items and the actual manufacturing quantity was written in the notes. When we moved the item from one area of the factory to the other, the line item updated. As we've changed the system to get a better representation of the stock held, we've put the manufacturing quantity as a number of fixed batches in the line item. We manufacture in batches of 5 thousand, so a quantity of 4 is 20 thousand units.
There were nods of agreement from around the room.
Jim: The problem is, that recently we've been making items with a line quantity of 50 or 60. As soon as the first batch hits the warehouse, it marks every other batch as in the warehouse. When the second batch is marked as in Finishing, it marks every batch as being in the same place. This has the effect of removing the entire line item, say 30k or more, from the warehouse and putting it back into Finishing. Office Manager software reads from that line table.
Boss: That means my figures have never been right.
Me: Quite possibly. There are too many variables to determine how far out it is at any given time.
Boss: You'll need to re-write that part of the software. I need these figures.
Me: That's not going to be possible. That part of the code is used in at least four other locations that feeds other reports and so on. If we change it, it's very possible that we'll cause larger errors down the line.
Accountant: What are the options?
Me: I write you a new piece of software that checks the correct data. It will take me two weeks.
Boss: But I can't see how we can't just fix the existing one?
197
u/Duckwillo3 "You broke the Google!!!" May 23 '16
Sometimes I wonder if management job interviews should be accompanied by hearing tests.
22
u/UnrealJake May 23 '16
That's why you're not the IT manager.
21
u/zyzyzyzy92 May 23 '16
"This is all your fault, you should have known about this and fixed it last week!!"
38
u/LordSyyn User cannot read on a computer May 23 '16
Well boss, it's like this.
Take a look at your car. That's the software. The engine is the bit of code you're talking about. We could re-write it to give better performance, but that would effect other things.
The fuel would be used faster, the oil becomes hotter, parts wear out faster.
That all seems 'okay', but then you realise this - the car won't run without the default settings. If anything changes, it's not going to work.
So you refit it. (Don't go any buy a new car)
11
u/liltooclinical May 23 '16
He just told you.
Beyond that though, isn't that what they pay you for, to create solutions to problems that aren't solvable through other means? Why is it so important that you just fix the existing one?
8
u/ipreferanothername May 23 '16
a, this is my boss.
i wish you worked here. there are days i am convinced our developer couldnt program her way out of an MSI install.
7
u/fizyplankton May 23 '16
Two weeks to save hundreds of thousands of pounds? Your boss should give you carte blanche
6
u/ender-_ alias vi="wine wordpad.exe"; alias vim="wine winword.exe" May 23 '16
Sure, that'll take 4-6 weeks for the initial change and 3-4 months to fix the most obvious new problems it causes.
4
u/jimmydorry Error is located between the keyboard and chair! May 23 '16
Just fix it! I want it done by close of business tomorrow.
4
u/Slipacre May 23 '16
I once had to "fix" a system like this - took a very long time - and still had to replace it in the end. Good thing I worked for government.
2
u/SentinelOfFate May 23 '16
Bad software is like a collapsed house. It's way harder to put it back together than it is to build a new house.
2
u/[deleted] May 24 '16
Ever tried fitting a Ford Fiesta engine into a Mustang? It's possible, but the amount of tweaking, fiddling and fuck-arsing around with it to get it to work properly wouldn't be worth it.
2
u/bafomdad May 23 '16
that ending made me check to see if airz wrote it
1
u/Ranger7381 May 23 '16
After reading through some of your previous posts, I thought that the issue was going to be that Beancounter from "Listen to IT..."
1
u/delbin The computer won't turn on. Is it the hackers? May 26 '16 edited May 26 '16
I feel your pain. I have similar issues, but not nearly as bad since my bosses tend to listen to me. I work with a set of Excel macros that were made by someone years ago while he was learning VBA. To be fair, he ended up with an impressive system. It offers a heads-up display for a web app, various reporting, a work queue, and a handful of other features. But the work was pretty amateur and bloated overall. The problem is in those years, the department became dependent on those reports, and everything was still Excel based. So, when I was asked to take over, it was a mess to improve anything. I had an idea to make it run faster, and had to update 8 workbooks to make it all work. I mostly succeeded in making it better. I went from 5-times daily full stops in production to maybe one minor issue a month. But being Excel based caused lots of issues that simply couldn't be fixed, and IT wouldn't give me the tools to make it anything else. I can't improve it any further, so we're stuck where we can beg IT to make a proper solution, or I can rewrite everything the macro does and hope it works off the bat, since failures in some areas could be dire. The bosses decided they'd rather wait for IT.
1
u/Nox_Stripes Screams Internally Jun 01 '16
either take 2 weeks to properly write a program or fix issues down the line for God knows how long...
It really shouldn't be too hard to decide!
1
u/Mndless Jun 10 '16
"Ever tried unburning toast? You can scrape off the black, but it still won't be good toast."
1
u/failed_novelty May 23 '16
To be fair, if you're just pulling figures from a database and presenting them, I'm not sure how it could take 2 weeks. I'm sure there's a lot more involved than that, but I can't imagine it taking 2 weeks to put together a simple data pull that outputs a report...