Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4) Create database package pointOfSal which contain the following I. procedure to remove item from customer invoice removeInvoiceItem ( invoiceNo , itemName ) where this

4) Create database package pointOfSal which contain the following
I. procedure to remove item from customer invoice removeInvoiceItem(invoiceNo, itemName) where this method will firstly call getItemNo(itemNAme) method which it will return item no if exists else it will return -1 if not exists . After that the procedure will call function

checkExistingInvoiceItem(invoiceNo,itemNo) which will return exists if this item was sell in this invoice or not exists if not was sell. After that the procedure will call getitemInvoiceQuantity(invoiceNo,itemNo) ,getitemInvoicepaidprice(invoiceNo,itemNo) for existingitem in this invoice , then this function it will return the quantity for this item was sell to customer in this invoicethen the procedure will increase the total_quantity for this item in items table ,then it will decrease the total price related to this invoice by this formula {total price =total price (quantity*price)}

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

Students also viewed these Databases questions