feat: add client id to getLastBookings
This commit is contained in:
parent
fe96863703
commit
5e608db644
1 changed files with 2 additions and 2 deletions
|
@ -30,9 +30,9 @@ BEGIN
|
|||
return finalclerkid;
|
||||
END;
|
||||
|
||||
CREATE OR REPLACE PROCEDURE getLastBookings(months IN NUMBER)
|
||||
CREATE OR REPLACE PROCEDURE getLastBookings(months IN NUMBER, clientz in NUMBER)
|
||||
IS
|
||||
CURSOR bookingsCursor IS SELECT BOOKINGID FROM BOOKING WHERE ARRIVALDATE >= ADD_MONTHS(SYSDATE,-months);
|
||||
CURSOR bookingsCursor IS SELECT BOOKINGID FROM BOOKING WHERE ARRIVALDATE >= ADD_MONTHS(SYSDATE,-months) AND clientId = clientz;
|
||||
|
||||
BEGIN
|
||||
FOR booking IN bookingsCursor
|
||||
|
|
Loading…
Reference in a new issue