Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is an "order line"?

I listen a number of podcasts. Often I hear the expression "Order line" in the context of database or business object modelling. It seems to be the canonical example of something. I just don't know what.

So what is an "order line"? What concept does it represent in a canonical example?

like image 505
steenhulthin Avatar asked Apr 28 '12 20:04

steenhulthin


People also ask

What does order line meaning?

An order line represents a part of an order on a bill. An order line can be made up of one item or multiples of an item. The number displayed next to the order line is the total price for that order line. It includes all customizations, discounts, and other price modifications made to the order line.

What is order line and it example?

Examples of Order Line in a sentence Payment will be authorized following receipt of a valid invoice which must include the Purchase Order Number, Purchase Order Line Item Number(s), Contract number (if provided by the City) Description of Goods and Services, Unit Prices, Total Price).

What is a customer order line?

The customer order line/release is a detailed listing associated with the customer order header record, which describes any item sold to a customer.

What is difference between order and order line item?

Order – An order is a list of products with a status. In our case, a shopping cart is simply an order with a status of "Shopping Cart." Line Item – Every product on the order is referenced by a record that includes quantity and a reference to which order it belongs.


2 Answers

It refers to a "Purchase Order" which typically consists of one or more lines, called "Order Lines".

As almost every business on earth has some similar record of it's orders, purchases and/or sales, it has been the canonical real-world data example of a Parent-Child (or Master-Detail) relationship for as long as databases have existed (well over forty years).

It might look like this:

May Weller,    14-FEB-2011

    qty    Product          Price

      1    Hose, 50ft       $21.99
      4    Sprinkler        $33.78
      1    Gum              $ 1.10

Total                       $56.87

This would typically be stored as one row in an [ORDERS] table and three additional rows in an [Order-Lines] table, that all point back to the parent row in [ORDERS]. Which could look something like this:

[ORDERS] Table:

OrderID:        14028
Customer:       May Weller
OrderDate:      14-FEB-2011

[OrderLines] Table:

OrderLineID:    223011      223012      223013
OrderID:        14028       14028       14028
quantity:       1           4           1
Product:        Hose, 50ft  Sprinkler   Gum
Price:          21.99       33.78       1.10

(NOTE: yes, I know that this is not fully normalized yet).

like image 197
RBarryYoung Avatar answered Oct 16 '22 13:10

RBarryYoung


In simpler terms, link defines it as the part of a sales order or purchase order that specifies the detailed information about a requested item.

the table with the detailed information would typically look like RBarry's OrderLines table.

like image 2
Gloire Avatar answered Oct 16 '22 11:10

Gloire