Coder Social home page Coder Social logo

ordermanagement's Introduction

Order management system for Toy Block Factory

This is our order management system for our toy block factory.

Our factory makes toy blocks in three different shapes (square, circle and triangle) and in three different colours (red, blue and yellow)

We do not keep any stock of blocks, instead blocks are produced per order. For example let's say the factory gets 3 orders in a day, the factory would make each order on it's own.

An order consists of a combination of shapes and colors. Below is an example of what an order would look like:

Red Blue Yellow
Square 1 - 1
Triangle - 2 -
Circle - 1 2

Requirements

You should be able to enter a single order details, the application will generate

  • Taking orders
  • Generating an Invoice Report
  • Generating a Cutting List Report per order
  • Generating a Painting Report per order

Everything will be done via the console.

Example input

Welcome to the Toy Block Factory!

Please input your Name: Mark Pearl  
Please input your Address: 1 Bob Avenue, Auckland
Please input your Due Date: 19 Jan 2019

Please input the number of Red Squares: 1
Please input the number of Blue Squares: 
Please input the number of Yellow Squares: 1

Please input the number of Red Triangle:
Please input the number of Blue Triangle: 2
Please input the number of Yellow Triangle:

Please input the number of Red Circle:
Please input the number of Blue Circle: 1
Please input the number of Yellow Circle: 2

Pricing of blocks

Blocks have a fixed price which is determine by the shape. We have the following pricing list:

  • Square blocks cost $1
  • Triangle blocks cost $2
  • Circle blocks cost $3

There is no additional charge for the colour unless the shape is in red, in which case we charge an additional $1 per shape in red.

Order details

An order has a

  • Customer Name
  • Address
  • Due Date
  • Order Number
  • List of the blocks in an order with their respective colors

Cutting & Painting Department Needs

The factory cutting department and a painting department

Your cutting department has 3 groups, one that cuts squares, one that cuts circles and one that cuts triangles

You have a single painting department that paints all shapes but wants to have shapes grouped by color

Invoice Report

Name: Mark Pearl Address: 1 Bob Avenue, Auckland Due Date: 19 Jan 2019 Order #: 0001

Red Blue Yellow
Square 1 - 1
Triangle - 2 -
Circle - 1 2

Squares 2 @ $1 ppi = $2
Triangles 2 @ $2 ppi = $4
Circles 3 @ $3 ppi = $9
Red color surcharge 1 @ $1 ppi = $1

Total : $16

Example

Your invoice report has been generated:

Name: Mark Pearl Address: 1 Bob Avenue, Auckland Due Date: 19 Jan 2019 Order #: 0001

|          | Red | Blue | Yellow |
|----------|-----|------|--------|
| Square   | 1   | -    | 1      |
| Triangle | -   | 2    | -      |
| Circle   | -   | 1    | 2      |

Squares 		2 @ $1 ppi = $2  
Triangles		2 @ $2 ppi = $4  
Circles			3 @ $3 ppi = $9  
Red color surcharge	1 @ $1 ppi = $1  

Cutting List Report

Name: Mark Pearl Address: 1 Bob Avenue, Auckland Due Date: 19 Jan 2019 Order #: 0001

Qty
Square 2
Triangle 2
Circle 3

Example

Your cutting list has been generated:

Name: Mark Pearl Address: 1 Bob Avenue, Auckland Due Date: 19 Jan 2019 Order #: 0001

|          | Qty |
|----------|-----|
| Square   | 2   |
| Triangle | 2   |
| Circle   | 3   |


Painting Report

Name: Mark Pearl Address: 1 Bob Avenue, Auckland Due Date: 19 Jan 2019 Order #: 0001

Red Blue Yellow
Square 1 - 1
Triangle - 2 -
Circle - 1 2

Example

Your painting report has been generated:

Name: Mark Pearl Address: 1 Bob Avenue, Auckland Due Date: 19 Jan 2019 Order #: 0001

|          | Red | Blue | Yellow |
|----------|-----|------|--------|
| Square   | 1   | -    | 1      |
| Triangle | -   | 2    | -      |
| Circle   | -   | 1    | 2      |

ordermanagement's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.