create purchase order application using appaserver ©tim riley 1. create the purchase order database...

96
Create Purchase Order Application Using Appaserver ©Tim Riley 1.Create the purchase order database design. 2.Create the purchase order database tables.

Upload: devante-copley

Post on 28-Mar-2015

226 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Purchase Order Application Using Appaserver

©Tim Riley

1.Create the purchase order database design.

2.Create the purchase order database tables.

Page 2: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Database Design

©Tim Riley

From

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Vendor

vendor char 30 *

Allocate 30 characters of text for each vendor name.

Allocate 4 characters of database space for the purchase time. The format will be HH24. For example, 1310 represents 1:10 PM. The time will be automatically pre-populated in the data entry form.

It's possible that two or more purchases could occur at the same minute. So include the vendor in the primary key.

Page 3: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Inventory

©Tim Riley

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

many

many

There is a many-to-many relationship between purchase order and inventory.

Inventory are goods available for sale.

Inventory is recorded as an asset until sold. It is recorded in the books at cost.

When sold, the cost of inventory is recorded in the account called cost-of-goods-sold.

Total cost-of-goods sold is subtracted from total revenues to yield gross-margin.

Inventory

inventory char 30 *

Page 4: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Inventory

©Tim Riley

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Inventory

inventory char 30 *

Purchase_Inventory

purchase_date date *purchase_time time 4 *vendor char 30 *inventory char 30 *quantity integercost_per_item float

Convert the many-to-many relationship into two many-to-one relationships.

Record the quantity purchased and the cost per item.

The primary key of the new table are the primary keys of both tables.

The new table is usually named by combining the names of both many-to-many tables.

Page 5: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Plant and Equipment

©Tim Riley

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Plant_Equipment

plant_equipment char 30 *

Purchase_Plant_Equipmentpurchase_date date *purchase_time time 4 *vendor char 30 *plant_equipment char 30 *quantity integercost_per_item float

Record the quantity purchased and the cost per item.

Plant is the business term for buildings.

Plant and equipment are buildings, machines, furniture, and tools that are used to add value to products and services. Their costs are material enough to warrant additional book-keeping.

Plant and equipment are recorded as an asset. They are systematically expensed over time in the account called depreciation expense.

Page 6: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Supplies

©Tim Riley

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Supply

supply char 30 *

Purchase_Supply

purchase_date date *purchase_time time 4 *vendor char 30 *supply char 30 *quantity integercost_per_item float

Record the quantity purchased and the cost per item.

Supplies are products that cost less than a material amount.

Supplies are expensed when purchased into the account called supplies expense.

Page 7: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Services

©Tim Riley

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Service

service char 30 *

Purchase_Service

purchase_date date *purchase_time time 4 *vendor char 30 *service char 30 *hours integercost_per_hour float

Record the hours worked and the cost per hour.

Services are consumed upon purchase.

Services are expensed when purchased into the account called {service} expense. Replace {service} with the actual service. For example, Lawn Mowing expense.

Page 8: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Receive Inventory

©Tim Riley

Purchase_Inventory

purchase_date date *purchase_time time 4 *vendor char 30 *inventory char 30 *quantity integercost_per_item float

Receive_Inventory

received_date date *received_time time 4 *vendor char 30 *inventory char 30 *purchase_date datepurchase_time time 4quantity integer

Partial shipments are possible.

Foreign key to purchase inventory table.

}

Record the quantity received.

Page 9: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Receive Supplies

©Tim Riley

Purchase_Supply

purchase_date date *purchase_time time 4 *vendor char 30 *supply char 30 *quantity integercost_per_item float

Receive_Supply

received_date date *received_time time 4 *vendor char 30 *supply char 30 *purchase_date datepurchase_time time 4quantity integer

Partial shipments are possible.

Foreign key to purchase supply table.

}

Record the quantity received.

Page 10: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Receive Equipment

©Tim Riley

Purchase_Plant_Equipmentpurchase_date date *purchase_time time 4 *vendor char 30 *plant_equipment char 30 *quantity integercost_per_item float

Receive_Plant_Equipment

received_date date *received_time time 4 *vendor char 30 *plant_equipment char 30 *purchase_date datepurchase_time time 4quantity integer

Partial shipments are possible.

Foreign key to purchase plant equipment table.

}

Record the quantity received.

Page 11: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Make Payment

©Tim Riley

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *amount_due float

Purchase_Order_Payment

payment_date date *payment_time time 4 *vendor char 30 *purchase_date datepurchase_time time 4bank char 30account_number char 30amount_paid float Foreign key to purchase

order table.

}

Partial payments are allowed.

Cash_Account

bank char 30 *account_number char 30 *

Bank

bank char 30 *

Page 12: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Database Tables

©Tim Riley

Log in with your email address and password of “changeit”.

Page 13: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Become Administrator Role

©Tim Riley

Choose the administrator role.

Page 14: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Database Tables

©Tim Riley

From

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Vendor

vendor char 30 *

To preserve relational integrity, create all ”one” tables first.

Insert the vendor attribute very first.

Page 15: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Attribute

©Tim Riley

Choose the insert attribute menu item.

Page 16: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Attribute

©Tim Riley

The attribute name is “vendor”, the datatype is ”Text”, and the size is 30 characters. Leave everything else blank.

Page 17: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Attribute

©Tim Riley

Scroll to the bottom of the top frame.Press the <Submit> button.

Page 18: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Attribute

©Tim Riley

The new vendor attribute is inserted into the attribute table.

Page 19: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Database Tables

©Tim Riley

From

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Vendor

vendor char 30 *

Second, insert the vendor folder.

Page 20: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Folder

©Tim Riley

Choose the insert folder menu item.

Page 21: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Folder

©Tim Riley

The folder name is “vendor”, the form is “Prompt”, and the insert screen will have 5 blank rows for data entry. Leave everything else blank.

When the user chooses to lookup this folder, the Prompt form displays a query screen to select subsets. The alternative to the Prompt form is the Table form. The Table form displays all of the rows without a query screen first.

Page 22: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Folder

©Tim Riley

Scroll to the bottom of the top frame.Press the <Submit> button.

Page 23: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Folder Attribute

©Tim Riley

Upon pressing <Submit>, the bottom frame displays rows to insert the new folder's attributes.

Page 24: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Folder Attribute

©Tim Riley

Choose “Vendor” from the attribute drop-down, and enter “1” for the primary key index. Leave everything else blank.

To show Appaserver that an attribute is not participating in the primary key, enter an integer in the display order column and leave the primary key index blank.

Currently, the vendor folder only has one attribute, and it's the primary key.

The press the <Submit> button.

Page 25: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

From

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Vendor

vendor char 30 *

Insert Vendor Relationship

©Tim Riley

The next screen that appears in the bottom frame allows you to insert relations for the vendor folder. However, this folder doesn't have any many-to-one relationships.

Instead, the vendor folder has a one-to-many relationship.

This one-to-many relationship will be inserted into the relation folder when we insert the purchase order folder. When we insert the purchase order folder, the relationship will be many-to-one.

Page 26: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Relationship

©Tim Riley

The bottom frame allows you to insert relations for the vendor folder. However, this folder doesn't have any many-to-one relationships.

Press the <Submit> button without filling out this form..

Page 27: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Permissions

©Tim Riley

This screen allows you to insert permissions for the vendor folder. The permissions are insert, update, and lookup. Since the update permission has more authority than the lookup permission, the update permission assumes the user has lookup permission.

The permissions for a folder are assigned to roles.

Only a supervisor should be allowed to insert and update vendors.

The press the <Submit> button.

Page 28: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Role Operation

©Tim Riley

Allow the supervisor to be able to delete vendors.

An operation places a yes/no check-box at the beginning of each row following a query. The delete operation places a trash-can check-box on each row.

The press the <Submit> button.

Page 29: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Vendor Folder Complete

©Tim Riley

We have just inserted rows into the following tables:1) folder2) folder_attribute3) role_folder4) role_operation

The next step is to create the vendor table in the RDBMS.

Page 30: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Vendor Table

©Tim Riley

Scroll to the top of the top frame.

This will expose the menu choices. We're going to run a process.

Page 31: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Vendor Table

©Tim Riley

Choose the Create Table process.

Page 32: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Vendor Table

©Tim Riley

Choose the “Finance” application and the “Vendor” folder. This will create the vendor table in the RDBMS.

All processes that manipulate the database have a ”Really yn” safety mechanism. Choosing “No” (or leaving at “Select”) will only display the work that will take place. Choosing “Yes” will really do the work.

Choose “No” the first time.Finally press <Submit>.

Page 33: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Vendor Table

©Tim Riley

This is the create table command that will be sent to the RDBMS.

The create unique index command enforces the element uniqueness integrity constraint.

Next, set “Really yn” to “Yes”, and press <Submit>.

Page 34: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Vendor Table

©Tim Riley

The table is created.

Any error messages would have appeared in the bottom frame.

Page 35: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Populate Vendor Table

©Tim Riley

Switch to the supervisor role.

Page 36: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Populate Vendor Table

©Tim Riley

Choose the menu item of insert vendor.

Page 37: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Populate Vendor Table

©Tim Riley

Optionally, we could enter in each vendor one at a time by pressing <Submit> each time.

Remember when we set the insert rows number to 5?

This asterisk means vendor is the primary key.

Press <Submit> without entering in a vendor name.

Page 38: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Populate Vendor Table

©Tim Riley

By leaving any primary key attribute blank on the top frame, you get rows in the bottom frame to insert new data. Enter in all the new rows, then press <Submit> in the bottom frame once.

If we need to add more than 5 vendors in the bottom frame, then press <Submit> again in the top frame to get 5 more empty rows.

Page 39: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Populate Vendor Table

©Tim Riley

Type in some vendor names.

Then press <Submit>.

Page 40: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Populate Vendor Table

©Tim Riley

The insert succeeded.

Page 41: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Lookup Vendor Table

©Tim Riley

Choose the menu item lookup vendor.

The table was empty prior to our insert. However, this count won't get updated until the top frame get repainted.

Page 42: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Lookup Vendor Table

©Tim Riley

This is the prompt form. Remember when we chose this form over the table form when we inserted this folder?

Each attribute will have some mechanism to query subsets.

Page 43: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Lookup Vendor Table

©Tim Riley

Lookup all vendors that begin with “a”.

Then press <Submit>.

Page 44: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Lookup Vendor Table

©Tim Riley

All rows matching the lookup query in the top frame are displayed in the bottom frame.

Remember, we inserted the “Delete” operation to the supervisor role into the role operation folder for the vendor folder?

Page 45: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Purchase Order Table

©Tim Riley

From

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Vendor

vendor char 30 *

Insert the purchase order attributes.

Page 46: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Attributes

©Tim Riley

Choose the insert attribute menu item.

Page 47: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Attributes

©Tim Riley

The attribute datatype is current date. The only difference between datatypes of date and current date is current date will prepopulate the field with the current date.

The attribute name is purchase_date.

The attribute width is 10 characters. The standard format for date is yyyy-mm-dd. However, users can change the way dates are displayed to the American format – mm/dd/yyyy.

Page 48: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Attributes

©Tim Riley

Leave everything else blank, and scroll down to the bottom of the top frame.

Press the <Submit> button in the top frame.

Page 49: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Attributes

©Tim Riley

The bottom frame shows the results.

Press the <Reset> button in the top frame. This will clear the form so we can insert the purchase time attribute.

Press the <Top> button so we don't have to use the scroll bar to get to the top.

Page 50: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Attributes

©Tim Riley

The attribute name is purchase_time.

The attribute datatype is current time. The only difference between datatypes of time and current time is current time will prepopulate the field with the current time.

The attribute width is 4 characters. The standard format for time is HH24, which is down to the minute. However, you can have times down to the second by making the width 7. Then the format is HH24:SS. For example 1310:15 is 1:10 PM and 15 seconds.

Page 51: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Attributes

©Tim Riley

The bottom frame shows the results.

Leave everything else blank, and scroll down to the bottom of the top frame.

Press the <Submit> button in the top frame.

Page 52: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Purchase Order Table

©Tim Riley

From

Purchase_Order

purchase_date date *purchase_time time 4 *vendor char 30 *

Vendor

vendor char 30 *

Insert the purchase order folder.

Page 53: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

©Tim Riley

Insert Purchase Order Folder

Choose the insert folder menu item.

Page 54: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Folder

©Tim Riley

The folder name is purchase_order.

The form type is Prompt.

The number of rows to insert is 1. We will generate a one-to-many data entry screen. The top frame will be to insert the one purchase order. The bottom frame will be to insert many rows in each related folder:1) Purchase Inventory2) Purchase Plant Equipment3) Purchase Supply4) Purchase Service

The behavior will be just like inserting folders. The top frame inserts the folder. Then the bottom frame inserts many rows in each related folder:1) Attribute2) Relation3) Role Folder4) Role Operation

Page 55: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Folder

©Tim Riley

Scroll to the bottom of the top frame.

Press the <Submit> button.

Page 56: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Folder Attributes

©Tim Riley

Insert the purchase order's 3 primary key attributes.

Press <Submit> in the bottom frame.

Page 57: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Relation

©Tim Riley

Purchase order has a many-to-one relation to vendor.

Choose Null for the related attribute.

The related attribute is part of the relation table's primary key. So it must be populated with something. The Null string provides this placeholder.

Press <Submit> in the bottom frame.

Page 58: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Permissions

©Tim Riley

Give both insert and update permissions to supervisors and users.

Press <Submit> in the bottom frame.

Page 59: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Operations

©Tim Riley

The delete operation places a trash can next to each row following a query.

The detail operation places a magnifying glass next to each row following a query. By checking the magnifying glass, the bottom screen will then display for this purchase order the related folders:1) Purchase Inventory2) Purchase Plant Equipment3) Purchase Supply4) Purchase Service

Press <Submit> in the bottom frame.

Page 60: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Complete

©Tim Riley

We have just inserted rows into the following tables:1) folder2) relation3) folder_attribute4) role_folder5) role_operation

The next step is to create the purchase order table in the RDBMS.

Page 61: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Purchase Order Table

©Tim Riley

Page 62: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Purchase Order Table

©Tim Riley

Page 63: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Design

©Tim Riley

Purchase_Order Vendor

Inventory

Purchase_Inventory

The rest of the tutorial will create these 2 tables with only minimum callouts.

We created these 2 tables.

Each screen title will provide you with a guide.

Page 64: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Attributes

©Tim Riley

Page 65: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Attributes

©Tim Riley

Page 66: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Attributes

©Tim Riley

Page 67: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Attributes

©Tim Riley

Page 68: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Attributes

©Tim Riley

Page 69: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Folder

©Tim Riley

Page 70: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Folder

©Tim Riley

Now we're going to insert the inventory folder.

Page 71: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Folder Attribute

©Tim Riley

Page 72: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Relation

©Tim Riley

The inventory folder doesn't have any many-to-one relationships.

Page 73: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Permissions

©Tim Riley

Page 74: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Operations

©Tim Riley

Page 75: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Folder

©Tim Riley

Now we're going to insert the purchase inventory folder.

Page 76: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Attributes

©Tim Riley

Page 77: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Relations

©Tim Riley

Pair 1tom order is the feature that automatically displays each many related table in sequence when inserting into the one table.

Page 78: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Permissions

©Tim Riley

Page 79: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Operations

©Tim Riley

Page 80: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Inventory Completed

©Tim Riley

Page 81: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Inventory Table

©Tim Riley

Page 82: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Create Purchase Inventory Table

©Tim Riley

Page 83: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Item

©Tim Riley

The two new tables are created. Now populate them.

Page 84: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Item

©Tim Riley

Page 85: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Inventory Item

©Tim Riley

Page 86: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order

©Tim Riley

Page 87: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order

©Tim Riley

Page 88: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Inventory

©Tim Riley

Page 89: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Completed

©Tim Riley

Page 90: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Lookup Purchase Order

©Tim Riley

The insert screen has a lookup feature. Let's lookup the purchase order we just inserted.

Page 91: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Lookup Purchase Order

©Tim Riley

Page 92: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Detail

©Tim Riley

The detail operation allows you to view all of the rows in each one-to-many related table. Currently, we've only created the purchase inventory table.

If you were to delete this purchase order, then all of the rows in the one-to-many related tables would be deleted also. This is necessary to enforce the relational integrity constraint.

Page 93: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Detail

©Tim Riley

Page 94: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Inventory

©Tim Riley

You can insert new inventory purchases for this purchase order here.

Page 95: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Insert Purchase Order Inventory

©Tim Riley

You can insert new inventory purchases for this purchase order here. However, we only inserted one inventory item – widget. Inserting another widget for this purchase order would be rejected because it would violate the element uniqueness integrity constraint.

Page 96: Create Purchase Order Application Using Appaserver ©Tim Riley 1. Create the purchase order database design. 2. Create the purchase order database tables

Purchase Order Design

©Tim Riley

Purchase_Order Vendor

Inventory Plant Equipment Supply Service

Purchase_Inventory

Purchase_Plant Equipment

Purchase_Supply

Purchase_Service

We created these 4 tables. The other purchase tables plus the receive and payment tables still need to be created.