PRJ – 13

Thursday 20/08: 8AM – 3PM

As per usual we had a developer meeting in the morning. A lot of the day was spent trying to get some applications running on my machine which I will be working on. Since alot of the applications rely on other services it’s actually a bit tricky to get them running, since I don’t have access to certain things and don’t know how things tie together, then when you do get something working you run into another problem with something not being able to access something else.

I also nearly completed another PR with the help of one of the other devs. It was to do with a quote generation app. The app lets you specify what kind of product you want including the width and height dimensions of said product and then you can put in your email and receive a quote. Some of these products are in stock at MLC most of the time with a corresponding stock code, however when the user requests a product which is not in stock it should get a predefined product code depending on it’s cubic metres.

In order to achieve this functionality I first calculated the cubic metres of the possible products we are dealing with. (width * height * length) Next I check if the item being requested matches an item that is in stock, if it does give it the product code of said item in stock. If it doesn’t I check the cubic metres against the provided values and see where the product fits in and then give it that corresponding product code. Then I pass this new data through to the PDF template service which generates a PDF which gets sent to the specified email.

Leave a comment

Design a site like this with WordPress.com
Get started