-
Notifications
You must be signed in to change notification settings - Fork 0
/
task5.php
65 lines (41 loc) · 1.21 KB
/
task5.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html>
<body>
<h1>Task 5</h1>
<h2>Database Tables</h2>
<ul>
<li>vendors - Suppliers of the products that the company sells</li>
<li>invoices - Invoice header records, contains the dates, payment terms and supplier id (purchase orders)</li>
<li>InvoiceLineItems - Invoice detail records, links to the products accounts, and descriptions</li>
<li>terms - Describes payment terms for suppliers and invoices.</li>
<li>generalLedgerAccounts - Accounting records for the suppliers (accounts payable)</li>
</ul>
<h3>vendors</h3>
<ul>
<li>vendorID - Primary key</li>
<li>defaultTermsID - Foreign key for terms</li>
<li>defaultAccountNo - Foreign key for generalLedgerAccounts</li>
</ul>
<h3>invoices</h3>
<ul>
<li>invoiceID - Primary key</li>
<li>vendorID - Foreign key for vendors</li>
<li>termsID - Foreign key for terms</li>
</ul>
<h3>invoiceLineItems</h3>
<ul>
<li>invoiceID, InvoiceSequence - Composite primary key</li>
<li>accountNo - foreign key for generalLedgerAccounts</li>
</ul>
<h3>terms</h3>
<ul>
<li>termsID - primary key</li>
</ul>
<h4>generalLedgerAccounts</h4>
<ul>
<li>accountNo - primary key</li>
</ul>
<br>
<br>
</body>
</html>