Logo
Explore Help
Sign In
tandem/campingmontagut
tandem/campingmontagut
2
0
Fork 0
You've already forked campingmontagut
Code Issues Pull Requests Packages Projects Releases Wiki Activity
campingmontagut/revert/edit_booking.sql

10 lines
212 B
MySQL
Raw Normal View History

“Finish” the new booking form Had to bring the same fields that i have for a payment to booking, except that some of those should be nullable, because it is unreasonable to ask front desk to gather all customer data when they have a booking via phone, for instance. Therefore, i can not take advantage of the validation for customer data that i use in the public-facing form, but, fortunately, most of the validations where in separated functions, thus only had to rewrite that one for this case. I already have to create a booking from a payment, when receiving a payment from the public instance, thus i made that function and reused it here. Then i “overwrite” the newly created pre-booking with the customer data from the form, and set is as confirmed, as we do not see any point of allowing pre-bookings from employees.
2024-04-24 20:12:29 +02:00
-- Revert camper:edit_booking from pg
begin;
set search_path to camper, public;
drop function if exists camper.edit_booking(integer, text, text, text, text, text, email, text, text, text, integer[]);
commit;
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 60ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API