Skip to main content
Skip table of contents

Purchase Orders

Column

Format

Unique value

Contents

Status

Varchar(10)

Order status

  • 0 = No rows

  • Kirjattu = 1 = Registered (new order)

  • 2 = Backorder

  • Toimitettu = 3 = Delivered

  • 4 = Transferred to purchase ledger

OrderId

Varchar(13)

(info) Unique combination OrderId + VendorId

Order number.

VendorId

Smallint

(info) Unique combination OrderId + VendorId

Vendor number.

StoreId

Smallint

Store number.

LocationId

Smallint

Warehouse ID (if different than Store ID).

EstimatedDeliveryDate

Varchar(10) yyyy-mm-dd

Day when vendor is going to deliver the product. End date.

OrderDate

Varchar(10) yyyy-mm-dd

Ordered date.

Example Data

Query

SQL
SELECT TOP 10 *
  FROM dbo.PurchaseOrders

Result

Status

OrderId

VendorId

StoreId

LocationId

EstimatedDeliveryDate

OrderDate

Toimitettu

1022022

1

1

1

2022-02-01

2022-02-01

Toimitettu

01022022/1

1

1

1

2022-02-01

2022-02-01

Toimitettu

01022022/2

1

1

1

2022-02-01

2022-02-01

Toimitettu

4384

1

1

1

2010-03-03

2010-03-03

Toimitettu

84

1

1

1

2010-04-27

2010-04-27

Kirjattu

1

1

1

1

2012-12-31

2012-10-02

Kirjattu

1

18

1

1

2009-11-17

2009-11-17

Kirjattu

1

89

1

1

2008-06-16

2008-06-16

Kirjattu

37257

1

1

1

2009-08-11

2009-08-11

Toimitettu

10

1

1

1

2009-12-31

2009-10-28

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.