{"id":4036,"date":"2017-07-13T11:41:58","date_gmt":"2017-07-13T09:41:58","guid":{"rendered":"http:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/"},"modified":"2017-08-21T14:29:18","modified_gmt":"2017-08-21T12:29:18","slug":"goods-discharge-reservation","status":"publish","type":"page","link":"https:\/\/pvsservicesitalia.it\/en\/goods-discharge-reservation\/","title":{"rendered":"Goods Discharge Reservation"},"content":{"rendered":"<p><span lang=\"EN\">Dear Customer,<br \/>\nIn order to better plan our warehouse activities and give you the best logistical experience, we invite you to complete the following fields in order to obtain the Discharge Reservation Number (DRN). It\u2019s mandatory for unloading the goods; if not present the goods will be rejected.<br \/>\n<\/span><\/p>\n<p><span lang=\"EN\">Please note that the Discharge Reservation Number (DRN) must be specified on the Shipping Documents of the goods and communicated to your trusted carrier.<\/span><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p><code>\n<div class=\"rtb-booking-form\">\n\t\t<form method=\"POST\" action=\"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/\" enctype=\"multipart\/form-data\">\n\t\t<input type=\"hidden\" name=\"action\" value=\"booking_request\">\n\n\t\t\n\t\t\n\t\t\t\t<fieldset class=\"reservation\">\n\n\t\t\t\t\t\t<legend >\n\t\t\t\tGoods Discharge Reservation Informations\t\t\t<\/legend>\n\t\t\t\n\t\t\t\n\t<div class=\"rtb-text name\">\n\t\t\t\t<label for=\"rtb-name\">\n\t\t\tCompany Name\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-name\" id=\"rtb-name\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text referente\">\n\t\t\t\t<label for=\"rtb-referente\">\n\t\t\tReferent\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-referente\" id=\"rtb-referente\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text email\">\n\t\t\t\t<label for=\"rtb-email\">\n\t\t\tEmail\t\t<\/label>\n\n\t\t<input type=\"email\" name=\"rtb-email\" id=\"rtb-email\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text 2-email-destinatario-opzionale\">\n\t\t\t\t<label for=\"rtb-2-email-destinatario-opzionale\">\n\t\t\t2\u00b0 Email destinatario (opzionale)\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-2-email-destinatario-opzionale\" id=\"rtb-2-email-destinatario-opzionale\" value=\"\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text phone\">\n\t\t\t\t<label for=\"rtb-phone\">\n\t\t\tTelephone\t\t<\/label>\n\n\t\t<input type=\"tel\" name=\"rtb-phone\" id=\"rtb-phone\" value=\"\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text vettore-utilizzato\">\n\t\t\t\t<label for=\"rtb-vettore-utilizzato\">\n\t\t\tShipping courier\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-vettore-utilizzato\" id=\"rtb-vettore-utilizzato\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text origine-merce\">\n\t\t\t\t<label for=\"rtb-origine-merce\">\n\t\t\tGoods origin\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-origine-merce\" id=\"rtb-origine-merce\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-select party\">\n\t\t\t\t<label for=\"rtb-party\">\n\t\t\t\tData consegna effettiva\t\t<\/label>\n\t\t<select name=\"rtb-party\" id=\"rtb-party\" required aria-required=\"true\">\n\t\t\t\t\t\t<option value=\"1\" >1<\/option>\n\t\t\t\t\t\t<option value=\"2\" >2<\/option>\n\t\t\t\t\t\t<option value=\"3\" >3<\/option>\n\t\t\t\t\t\t<option value=\"4\" >4<\/option>\n\t\t\t\t\t\t<option value=\"5\" >5<\/option>\n\t\t\t\t\t\t<option value=\"6\" >6<\/option>\n\t\t\t\t\t\t<option value=\"7\" >7<\/option>\n\t\t\t\t\t\t<option value=\"8\" >8<\/option>\n\t\t\t\t\t\t<option value=\"9\" >9<\/option>\n\t\t\t\t\t\t<option value=\"10\" >10<\/option>\n\t\t\t\t\t\t<option value=\"11\" >11<\/option>\n\t\t\t\t\t\t<option value=\"12\" >12<\/option>\n\t\t\t\t\t\t<option value=\"13\" >13<\/option>\n\t\t\t\t\t\t<option value=\"14\" >14<\/option>\n\t\t\t\t\t\t<option value=\"15\" >15<\/option>\n\t\t\t\t\t\t<option value=\"16\" >16<\/option>\n\t\t\t\t\t\t<option value=\"17\" >17<\/option>\n\t\t\t\t\t\t<option value=\"18\" >18<\/option>\n\t\t\t\t\t\t<option value=\"19\" >19<\/option>\n\t\t\t\t\t\t<option value=\"20\" >20<\/option>\n\t\t\t\t\t\t<option value=\"21\" >21<\/option>\n\t\t\t\t\t\t<option value=\"22\" >22<\/option>\n\t\t\t\t\t\t<option value=\"23\" >23<\/option>\n\t\t\t\t\t\t<option value=\"24\" >24<\/option>\n\t\t\t\t\t\t<option value=\"25\" >25<\/option>\n\t\t\t\t\t\t<option value=\"26\" >26<\/option>\n\t\t\t\t\t\t<option value=\"27\" >27<\/option>\n\t\t\t\t\t\t<option value=\"28\" >28<\/option>\n\t\t\t\t\t\t<option value=\"29\" >29<\/option>\n\t\t\t\t\t\t<option value=\"30\" >30<\/option>\n\t\t\t\t\t\t<option value=\"31\" >31<\/option>\n\t\t\t\t\t\t<option value=\"32\" >32<\/option>\n\t\t\t\t\t\t<option value=\"33\" >33<\/option>\n\t\t\t\t\t\t<option value=\"34\" >34<\/option>\n\t\t\t\t\t\t<option value=\"35\" >35<\/option>\n\t\t\t\t\t\t<option value=\"36\" >36<\/option>\n\t\t\t\t\t\t<option value=\"37\" >37<\/option>\n\t\t\t\t\t\t<option value=\"38\" >38<\/option>\n\t\t\t\t\t\t<option value=\"39\" >39<\/option>\n\t\t\t\t\t\t<option value=\"40\" >40<\/option>\n\t\t\t\t\t\t<option value=\"41\" >41<\/option>\n\t\t\t\t\t\t<option value=\"42\" >42<\/option>\n\t\t\t\t\t\t<option value=\"43\" >43<\/option>\n\t\t\t\t\t\t<option value=\"44\" >44<\/option>\n\t\t\t\t\t\t<option value=\"45\" >45<\/option>\n\t\t\t\t\t\t<option value=\"46\" >46<\/option>\n\t\t\t\t\t\t<option value=\"47\" >47<\/option>\n\t\t\t\t\t\t<option value=\"48\" >48<\/option>\n\t\t\t\t\t\t<option value=\"49\" >49<\/option>\n\t\t\t\t\t\t<option value=\"50\" >50<\/option>\n\t\t\t\t\t\t<option value=\"51\" >51<\/option>\n\t\t\t\t\t\t<option value=\"52\" >52<\/option>\n\t\t\t\t\t\t<option value=\"53\" >53<\/option>\n\t\t\t\t\t\t<option value=\"54\" >54<\/option>\n\t\t\t\t\t\t<option value=\"55\" >55<\/option>\n\t\t\t\t\t\t<option value=\"56\" >56<\/option>\n\t\t\t\t\t\t<option value=\"57\" >57<\/option>\n\t\t\t\t\t\t<option value=\"58\" >58<\/option>\n\t\t\t\t\t\t<option value=\"59\" >59<\/option>\n\t\t\t\t\t\t<option value=\"60\" >60<\/option>\n\t\t\t\t\t\t<option value=\"61\" >61<\/option>\n\t\t\t\t\t\t<option value=\"62\" >62<\/option>\n\t\t\t\t\t\t<option value=\"63\" >63<\/option>\n\t\t\t\t\t\t<option value=\"64\" >64<\/option>\n\t\t\t\t\t\t<option value=\"65\" >65<\/option>\n\t\t\t\t\t\t<option value=\"66\" >66<\/option>\n\t\t\t\t\t\t<option value=\"67\" >67<\/option>\n\t\t\t\t\t\t<option value=\"68\" >68<\/option>\n\t\t\t\t\t\t<option value=\"69\" >69<\/option>\n\t\t\t\t\t\t<option value=\"70\" >70<\/option>\n\t\t\t\t\t\t<option value=\"71\" >71<\/option>\n\t\t\t\t\t\t<option value=\"72\" >72<\/option>\n\t\t\t\t\t\t<option value=\"73\" >73<\/option>\n\t\t\t\t\t\t<option value=\"74\" >74<\/option>\n\t\t\t\t\t\t<option value=\"75\" >75<\/option>\n\t\t\t\t\t\t<option value=\"76\" >76<\/option>\n\t\t\t\t\t\t<option value=\"77\" >77<\/option>\n\t\t\t\t\t\t<option value=\"78\" >78<\/option>\n\t\t\t\t\t\t<option value=\"79\" >79<\/option>\n\t\t\t\t\t\t<option value=\"80\" >80<\/option>\n\t\t\t\t\t\t<option value=\"81\" >81<\/option>\n\t\t\t\t\t\t<option value=\"82\" >82<\/option>\n\t\t\t\t\t\t<option value=\"83\" >83<\/option>\n\t\t\t\t\t\t<option value=\"84\" >84<\/option>\n\t\t\t\t\t\t<option value=\"85\" >85<\/option>\n\t\t\t\t\t\t<option value=\"86\" >86<\/option>\n\t\t\t\t\t\t<option value=\"87\" >87<\/option>\n\t\t\t\t\t\t<option value=\"88\" >88<\/option>\n\t\t\t\t\t\t<option value=\"89\" >89<\/option>\n\t\t\t\t\t\t<option value=\"90\" >90<\/option>\n\t\t\t\t\t\t<option value=\"91\" >91<\/option>\n\t\t\t\t\t\t<option value=\"92\" >92<\/option>\n\t\t\t\t\t\t<option value=\"93\" >93<\/option>\n\t\t\t\t\t\t<option value=\"94\" >94<\/option>\n\t\t\t\t\t\t<option value=\"95\" >95<\/option>\n\t\t\t\t\t\t<option value=\"96\" >96<\/option>\n\t\t\t\t\t\t<option value=\"97\" >97<\/option>\n\t\t\t\t\t\t<option value=\"98\" >98<\/option>\n\t\t\t\t\t\t<option value=\"99\" >99<\/option>\n\t\t\t\t\t\t<option value=\"100\" >100<\/option>\n\t\t\t\t\t<\/select>\n\t<\/div>\n\n\t\t\t<\/fieldset>\n\t\t\t\t<fieldset class=\"contact\">\n\n\t\t\t\t\t\t<legend >\n\t\t\t\tDischarge Details\t\t\t<\/legend>\n\t\t\t\n\t\t\t\n\t<div class=\"rtb-select magazzino\">\n\t\t\t\t<label for=\"rtb-magazzino\">\n\t\t\t\tWarehouse\t\t<\/label>\n\t\t<select name=\"rtb-magazzino\" id=\"rtb-magazzino\">\n\t\t\t\t\t\t<option value=\"2\" ><\/option>\n\t\t\t\t\t\t<option value=\"0\" >Magazzino Gainago<\/option>\n\t\t\t\t\t\t<option value=\"1\" >Magazzino San Polo di Torrile - Non Argenta<\/option>\n\t\t\t\t\t\t<option value=\"3\" >Magazzino Selecta<\/option>\n\t\t\t\t\t<\/select>\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text pezzi\">\n\t\t\t\t<label for=\"rtb-pezzi\">\n\t\t\tPezzi\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-pezzi\" id=\"rtb-pezzi\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text di-cui-bancali\">\n\t\t\t\t<label for=\"rtb-di-cui-bancali\">\n\t\t\tn\u00b0 pallet\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-di-cui-bancali\" id=\"rtb-di-cui-bancali\" value=\"\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text colli\">\n\t\t\t\t<label for=\"rtb-colli\">\n\t\t\tn\u00b0 bulk box\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-colli\" id=\"rtb-colli\" value=\"\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text date\">\n\t\t\t\t<label for=\"rtb-date\">\n\t\t\tDelivery date\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-date\" id=\"rtb-date\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text time\">\n\t\t\t\t<label for=\"rtb-time\">\n\t\t\tDelivery time\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-time\" id=\"rtb-time\" value=\"\" required aria-required=\"true\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text note-costi-extra\">\n\t\t\t\t<label for=\"rtb-note-costi-extra\">\n\t\t\tNote per cliente\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-note-costi-extra\" id=\"rtb-note-costi-extra\" value=\"\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text note\">\n\t\t\t\t<label for=\"rtb-note\">\n\t\t\tNote\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-note\" id=\"rtb-note\" value=\"\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-confirm accetto-le-condizioni-privacy\">\n\t\t\t\t<label for=\"rtb-accetto-le-condizioni-privacy\">\n\t\t\t<input type=\"checkbox\" name=\"rtb-accetto-le-condizioni-privacy\" id=\"rtb-accetto-le-condizioni-privacy\" value=\"1\"  required aria-required=\"true\">\n\t\t\tI accept the privacy policy\t\t<\/label>\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text n-matricola\">\n\t\t\t\t<label for=\"rtb-n-matricola\">\n\t\t\tN\u00b0 Scarico\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-n-matricola\" id=\"rtb-n-matricola\" value=\"A20260408235042PS\">\n\t<\/div>\n\n\t\n\t<div class=\"rtb-text doce\">\n\t\t\t\t<label for=\"rtb-doce\">\n\t\t\tDoce\t\t<\/label>\n\n\t\t<input type=\"text\" name=\"rtb-doce\" id=\"rtb-doce\" value=\"\">\n\t<\/div>\n\n\t\t\t<\/fieldset>\n\t\t\t\t\n\t\t<button id=\"invia_pren\" style=\"margin: 0px auto;display: block;\" type=\"submit\">Request Booking<\/button>  <\/form>\n\t<\/div>\n\n\n<script type=\"text\/javascript\">\njQuery(document).ready(function() {\n\tvar pezzi;\n\tvar primo = true;\n    function disabilitati_gainago(date) {\n\t\t\/\/ console.log(date.getDate() + \"\/\" + (date.getMonth() + 1) + \"\/\" + date.getFullYear(), contatore);\n\t\tif(primo){\n\t\t\tprimo = false;\n\t\t\tvar postForm = { \/\/Fetch form data\n\t\t\t\t'get_pezzi' \t: true,\n\t\t\t\t'pezzi_scelto' \t: jQuery(\"#rtb-pezzi\").val(),\n\t\t\t\t'data'     \t\t: date.getDate() + \".\" + (date.getMonth() + 1) + \".\" + date.getFullYear(),\n\t\t\t\t'magazzino' \t: jQuery(\"#rtb-magazzino\").val(),\n\t\t\t\t'azienda'\t\t: jQuery(\"#rtb-name\").val(),\n\t\t\t\t'email'\t\t\t: jQuery(\"#rtb-email\").val(),\n\t\t\t};\n\t\t\tpezzi = JSON.parse(jQuery.ajax({\n\t\t\t\ttype     : 'post',\n\t\t\t\tcrossDomain: false,\n\t\t\t\tdataType: 'json',\n\t\t\t\tcache: false,\n\t\t\t\tasync: false,\n\t\t\t\turl       : '\/wp-content\/plugins\/restaurant-reservations\/assets\/js\/process.php', \/\/Your form processing file URL\n\t\t\t\theaders: {'X-Requested-With': 'XMLHttpRequest'},\n\t\t\t\tdata     : postForm,\n\t\t\t}).responseText)['v_pezzi'];\n\n\t\t\t\/\/ console.log(pezzi);\n\t\t}\n\t\t\n\t\twindow.unavailableHours = {\"24-5-2023\":[{\"ora\":\"14:00\"}],\"26-5-2023\":[{\"ora\":\"16:00\"}],\"25-1-2024\":[{\"ora\":\"13:00\"},{\"ora\":\"14:00\"},{\"ora\":\"15:00\"}],\"26-7-2024\":[{\"ora\":\"14:00\"},{\"ora\":\"15:00\"},{\"ora\":\"16:00\"}]};\n\t\tconsole.log(window.unavailableHours);\n\n\t\tvar unavailableDates = [\"13-1-2022\",\"14-1-2022\",\"17-1-2022\",\"18-1-2022\",\"19-1-2022\",\"4-3-2022\",\"13-7-2022\",\"14-7-2022\",\"24-11-2022\",\"25-11-2022\",\"26-11-2022\",\"29-11-2022\",\"14-2-2023\",\"15-2-2023\",\"21-2-2023\",\"22-2-2023\",\"1-3-2023\",\"22-3-2023\",\"28-3-2023\",\"7-4-2023\",\"3-5-2023\",\"16-5-2023\",\"26-7-2023\",\"28-7-2023\",\"4-8-2023\",\"23-11-2023\",\"24-11-2023\",\"28-11-2023\",\"26-1-2024\",\"7-2-2024\",\"9-2-2024\",\"14-2-2024\",\"28-2-2024\",\"27-6-2024\",\"11-7-2024\",\"12-7-2024\",\"16-7-2024\",\"18-7-2024\",\"25-7-2024\",\"15-8-2024\",\"16-8-2024\",\"7-11-2024\",\"14-11-2024\",\"27-11-2024\",\"28-11-2024\",\"29-11-2024\",\"21-11-2024\",\"22-11-2024\",\"24-12-2024\",\"31-12-2024\",\"26-12-2024\",\"25-12-2024\",\"1-1-2025\",\"13-12-2024\",\"18-12-2024\",\"20-12-2024\",\"27-12-2024\",\"30-12-2024\",\"24-1-2025\",\"28-1-2025\",\"29-1-2025\",\"14-2-2025\",\"27-2-2025\",\"28-2-2025\",\"2-5-2025\",\"26-6-2025\",\"27-6-2025\",\"3-7-2025\",\"24-7-2025\",\"25-7-2025\",\"31-7-2025\",\"1-8-2025\",\"8-8-2025\",\"14-8-2025\",\"15-8-2025\",\"29-10-2025\",\"31-10-2025\",\"7-11-2025\",\"26-11-2025\",\"27-11-2025\",\"28-11-2025\",\"2-12-2025\",\"3-12-2025\",\"24-12-2025\",\"31-12-2025\",\"26-12-2025\",\"25-12-2025\",\"1-12-2026\",\"20-1-2026\",\"23-1-2026\",\"30-1-2026\",\"29-1-2026\",\"6-2-2026\",\"10-2-2026\",\"11-2-2026\",\"13-2-2026\",\"18-2-2026\",\"20-2-2026\",\"26-2-2026\",\"27-2-2026\",\"6-3-2026\",\"11-3-2026\",\"13-3-2026\"];\n\t\tvar day = date.getDay();\n\n        if (day == 1 || day == 6 || day == 0) return [false, \"\"];\n\n        dmy = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\n\t\tymd = date.getFullYear() + \"-\" + String(date.getMonth() + 1).padStart(2, '0') + \"-\" + String(date.getDate()).padStart(2, '0');\n\t\t\/\/ console.log(ymd in pezzi);\n\n\t\tif (jQuery.inArray(dmy, unavailableDates) == -1) {\n\t\t\tif(ymd in pezzi) return [true, \"\"];\n            return [false, \"\"];\n        } else {\n            return [false, \"\"];\n        }\n    }\n\n\tfunction disabilita_sanpolo(date) {\n\t\tif(primo){\n\t\t\tprimo = false;\n\t\t\tvar postForm = { \/\/Fetch form data\n\t\t\t\t'get_pezzi' \t: true,\n\t\t\t\t'pezzi_scelto' \t: jQuery(\"#rtb-pezzi\").val(),\n\t\t\t\t'data'     \t\t: date.getDate() + \".\" + (date.getMonth() + 1) + \".\" + date.getFullYear(),\n\t\t\t\t'magazzino' \t: jQuery(\"#rtb-magazzino\").val(),\n\t\t\t\t'azienda'\t\t: jQuery(\"#rtb-name\").val(),\n\t\t\t\t'email'\t\t\t: jQuery(\"#rtb-email\").val()\n\t\t\t};\n\t\t\tpezzi = JSON.parse(jQuery.ajax({\n\t\t\t\ttype     : 'post',\n\t\t\t\tcrossDomain: false,\n\t\t\t\tdataType: 'json',\n\t\t\t\tcache: false,\n\t\t\t\tasync: false,\n\t\t\t\turl       : '\/wp-content\/plugins\/restaurant-reservations\/assets\/js\/process.php', \/\/Your form processing file URL\n\t\t\t\theaders: {'X-Requested-With': 'XMLHttpRequest'},\n\t\t\t\tdata     : postForm,\n\t\t\t}).responseText)['v_pezzi'];\n\n\t\t\t\/\/ console.log(pezzi);\n\t\t}\n\t\t\/\/Attenzione giorno e mese data senza 0 davanti\n\n\t\twindow.unavailableHours = {\"7-6-2023\":[{\"ora\":\"10:00\"},{\"ora\":\"16:00\"},{\"ora\":\"14:00\"}],\"11-2-2025\":[{\"ora\":\"08:00\"},{\"ora\":\"09:00\"},{\"ora\":\"\"}],\"14-2-2025\":[{\"ora\":\"10:00\"},{\"ora\":\"11:00\"},{\"ora\":\"15:00\"}],\"19-2-2025\":[{\"ora\":\"10:00\"},{\"ora\":\"11:00\"},{\"ora\":\"15:00\"},{\"ora\":\"\"}],\"21-2-2025\":[{\"ora\":\"10:00\"},{\"ora\":\"00:11\"},{\"ora\":\"15:00\"}]};\n\n\t\tvar unavailableDates = [\"2-6-2021\",\"1-11-2021\",\"8-12-2021\",\"24-11-2022\",\"25-11-2022\",\"26-11-2022\",\"29-11-2022\",\"25-7-2024\",\"15-8-2024\",\"16-8-2024\",\"24-12-2024\",\"31-12-2024\",\"25-12-2024\",\"26-12-2024\",\"1-1-2025\",\"2-5-2025\",\"15-8-2025\",\"24-12-2025\",\"31-12-2025\"];\n\t\tvar day = date.getDay();\n\n        if (day == 1 || day == 6 || day == 0) return [false, \"\"];\n\n        dmy = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\n\t\tymd = date.getFullYear() + \"-\" + String(date.getMonth() + 1).padStart(2, '0') + \"-\" + String(date.getDate()).padStart(2, '0');\n\n        if (jQuery.inArray(dmy, unavailableDates) == -1) {\n            if(ymd in pezzi) return [true, \"\"];\n            return [false, \"\"];\n        } else {\n            return [false, \"\"];\n        }\n    }\n    \n    function disabilita_selecta(date) {\n\t\tif(primo){\n\t\t\tprimo = false;\n\t\t\tvar postForm = { \/\/Fetch form data\n\t\t\t\t'get_pezzi' \t: true,\n\t\t\t\t'pezzi_scelto' \t: jQuery(\"#rtb-pezzi\").val(),\n\t\t\t\t'data'     \t\t: date.getDate() + \".\" + (date.getMonth() + 1) + \".\" + date.getFullYear(),\n\t\t\t\t'magazzino' \t: jQuery(\"#rtb-magazzino\").val(),\n\t\t\t\t'azienda'\t\t: jQuery(\"#rtb-name\").val(),\n\t\t\t\t'email'\t\t\t: jQuery(\"#rtb-email\").val()\n\t\t\t};\n\t\t\tpezzi = JSON.parse(jQuery.ajax({\n\t\t\t\ttype     : 'post',\n\t\t\t\tcrossDomain: false,\n\t\t\t\tdataType: 'json',\n\t\t\t\tcache: false,\n\t\t\t\tasync: false,\n\t\t\t\turl       : '\/wp-content\/plugins\/restaurant-reservations\/assets\/js\/process.php', \/\/Your form processing file URL\n\t\t\t\theaders: {'X-Requested-With': 'XMLHttpRequest'},\n\t\t\t\tdata     : postForm,\n\t\t\t}).responseText)['v_pezzi'];\n\n\t\t\t\/\/ console.log(pezzi);\n\t\t}\n\t\t\/\/Attenzione giorno e mese data senza 0 davanti\n\n\t\twindow.unavailableHours = {\"11-2-2025\":[{\"ora\":\"08:00\"},{\"ora\":\"09:00\"},{\"ora\":\"\"}]};\n\n\t\tvar unavailableDates = [\"15-8-2024\",\"16-8-2024\",\"24-12-2024\",\"31-12-2024\",\"25-12-2024\",\"26-12-2024\",\"1-1-2025\",\"15-8-2025\",\"24-12-2025\",\"31-12-2025\"];\n\t\tvar day = date.getDay();\n\n        if (day == 6 || day == 0) return [false, \"\"];\n\n        dmy = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\n\t\tymd = date.getFullYear() + \"-\" + String(date.getMonth() + 1).padStart(2, '0') + \"-\" + String(date.getDate()).padStart(2, '0');\n\n        if (jQuery.inArray(dmy, unavailableDates) == -1) {\n            if(ymd in pezzi) return [true, \"\"];\n            return [false, \"\"];\n        } else {\n            return [false, \"\"];\n        }\n    }\n\n\t\t\/\/ function disabilita_spip(date) {\n\t\t\/\/ \t\/\/Attenzione giorno e mese data senza 0 davanti\n\n\t\t\/\/ \tvar unavailableDates = null;\n\t\t\/\/ \tvar day = date.getDay();\n\n\t\t\/\/ \tif (day == 1 || day == 6 || day == 0) return [false, \"\"];\n\n\t\t\/\/ \tdmy = date.getDate() + \"-\" + (date.getMonth() + 1) + \"-\" + date.getFullYear();\n\t\t\/\/ \tif (jQuery.inArray(dmy, unavailableDates) == -1) {\n\t\t\/\/ \t\t\treturn [true, \"\"];\n\t\t\/\/ \t} else {\n\t\t\/\/ \t\t\treturn [false, \"\"];\n\t\t\/\/ \t}\n\t\t\/\/ }\n\n\t\tvar today = new Date();\n\n\t\tjQuery('<input type=\"hidden\" name=\"rtb-date\" value=\"\">').insertAfter( \"#rtb-date\" );\n\n\t\tjQuery(document).on(\"focus\",\".gainago\", function(){\n\t\t\tvar $pezzi_scelto = jQuery(\"#rtb-pezzi\").val();\n\t\t\tif($pezzi_scelto == \"\"){\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci il numero di pezzi prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (jQuery('#rtb-email').val() == '') {\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci l\\'indirizzo email prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (jQuery('#rtb-name').val() == ''){\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci il nome dell\\'azienda prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tjQuery(\"#rtb-pezzi\").addClass('disabilitato');\n\t\t\tjQuery(\"#rtb-date\").datepicker({\n\t\t\t\tdateFormat: 'dd\/mm\/yy',\n\t\t\t\tminDate: today.getHours() >= 12 ? 2 : 1 ,\n\t\t\t\tdayNamesMin: [ \"Dom\", \"Lun\", \"Mar\", \"Mer\", \"Gio\", \"Ven\", \"Sab\" ],\n\t\t\t\tshowAnim: \"drop\",\n\t\t\t\tbeforeShowDay: disabilitati_gainago\n\t\t\t});\n\t\t});\n\n\t\tjQuery(document).on(\"focus\",\".sanpolo\", function(){\n\t\t\tvar $pezzi_scelto = jQuery(\"#rtb-pezzi\").val();\n\t\t\tif($pezzi_scelto == \"\"){\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci il numero di pezzi prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (jQuery('#rtb-email').val() == '') {\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci l\\'indirizzo email prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (jQuery('#rtb-name').val() == ''){\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci il nome dell\\'azienda prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tjQuery(\"#rtb-pezzi\").addClass('disabilitato');\n\t\t\tjQuery(\"#rtb-date\").datepicker({\n\t\t\t\tdateFormat: 'dd\/mm\/yy',\n\t\t\t\tminDate: today.getHours() >= 12 ? 2 : 1 ,\n\t\t\t\tdayNamesMin: [ \"Dom\", \"Lun\", \"Mar\", \"Mer\", \"Gio\", \"Ven\", \"Sab\" ],\n\t\t\t\tshowAnim: \"drop\",\n\t\t\t\tbeforeShowDay: disabilita_sanpolo\n\t\t\t});\n\t\t});\n\t\t\n\t\t\n\t\tjQuery(document).on(\"focus\",\".selecta\", function(){\n\t\t\tvar $pezzi_scelto = jQuery(\"#rtb-pezzi\").val();\n\t\t\tif($pezzi_scelto == \"\"){\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci il numero di pezzi prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (jQuery('#rtb-email').val() == '') {\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci l\\'indirizzo email prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif (jQuery('#rtb-name').val() == ''){\n\t\t\t\tSwal.fire({\n\t\t\t\t\ttitle: 'Attenzione!',\n\t\t\t\t\ttext: 'Inserisci il nome dell\\'azienda prima di verificare le date disponibili',\n\t\t\t\t\ticon: 'error',\n\t\t\t\t\tconfirmButtonText: 'Ok',\n\t\t\t\t\treturnFocus: false\n\t\t\t\t})\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tjQuery(\"#rtb-pezzi\").addClass('disabilitato');\n\t\t\tjQuery(\"#rtb-date\").datepicker({\n\t\t\t\tdateFormat: 'dd\/mm\/yy',\n\t\t\t\tminDate: today.getHours() >= 12 ? 2 : 1 ,\n\t\t\t\tdayNamesMin: [ \"Dom\", \"Lun\", \"Mar\", \"Mer\", \"Gio\", \"Ven\", \"Sab\" ],\n\t\t\t\tshowAnim: \"drop\",\n\t\t\t\tbeforeShowDay: disabilita_selecta\n\t\t\t});\n\t\t});\n\n\t\t\/\/ jQuery(document).on(\"focus\",\".spip\", function(){\n\t\t\/\/ \tjQuery(\"#rtb-date\").datepicker({\n\t\t\/\/ \t\tdateFormat: 'dd\/mm\/yy',\n\t\t\/\/ \t\tminDate: today.getHours() >= 12 ? 2 : 1 ,\n\t\t\/\/ \t\tdayNamesMin: [ \"Dom\", \"Lun\", \"Mar\", \"Mer\", \"Gio\", \"Ven\", \"Sab\" ],\n\t\t\/\/ \t\tshowAnim: \"drop\",\n\t\t\/\/ \t\tbeforeShowDay: disabilita_spip\n\t\t\/\/ \t});\n\t\t\/\/ });\n\n\t\tjQuery('#rtb-date').change(function(){\n\t\t\tjQuery('input[type=\"hidden\"][name=\"rtb-date\"]').attr('value', reverse(jQuery('#rtb-date').val()));\n\t\t});\n\n\t\tfunction reverse (s) {\n\t\t\treturn s.split(\"\/\").reverse().join(\"\/\");\n\t\t}\n\t\n\t\tjQuery('#rtb-magazzino').on('change', function(){\n\t\t\tprimo = true;\n\t\t});\n\n});\n<\/script>\n\t<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dear Customer, In order to better plan our warehouse activities and give you the best logistical experience, we invite you to complete the following fields in order to obtain the Discharge Reservation Number (DRN). It\u2019s mandatory for unloading the goods; if not present the goods will be rejected. Please note that the Discharge Reservation Number [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-4036","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Goods Discharge Reservation | Pvs<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pvsservicesitalia.it\/en\/prenotazioni-scarichi-merce\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Goods Discharge Reservation | Pvs\" \/>\n<meta property=\"og:description\" content=\"Dear Customer, In order to better plan our warehouse activities and give you the best logistical experience, we invite you to complete the following fields in order to obtain the Discharge Reservation Number (DRN). It\u2019s mandatory for unloading the goods; if not present the goods will be rejected. Please note that the Discharge Reservation Number [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/\" \/>\n<meta property=\"og:site_name\" content=\"Pvs\" \/>\n<meta property=\"article:modified_time\" content=\"2017-08-21T12:29:18+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/\",\"url\":\"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/\",\"name\":\"Goods Discharge Reservation | Pvs\",\"isPartOf\":{\"@id\":\"https:\/\/pvsservicesitalia.it\/#website\"},\"datePublished\":\"2017-07-13T09:41:58+00:00\",\"dateModified\":\"2017-08-21T12:29:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pvsservicesitalia.it\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Goods Discharge Reservation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pvsservicesitalia.it\/#website\",\"url\":\"https:\/\/pvsservicesitalia.it\/\",\"name\":\"Pvs\",\"description\":\"Fullfillment Service\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pvsservicesitalia.it\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Goods Discharge Reservation | Pvs","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pvsservicesitalia.it\/en\/prenotazioni-scarichi-merce\/","og_locale":"en_GB","og_type":"article","og_title":"Goods Discharge Reservation | Pvs","og_description":"Dear Customer, In order to better plan our warehouse activities and give you the best logistical experience, we invite you to complete the following fields in order to obtain the Discharge Reservation Number (DRN). It\u2019s mandatory for unloading the goods; if not present the goods will be rejected. Please note that the Discharge Reservation Number [&hellip;]","og_url":"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/","og_site_name":"Pvs","article_modified_time":"2017-08-21T12:29:18+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/","url":"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/","name":"Goods Discharge Reservation | Pvs","isPartOf":{"@id":"https:\/\/pvsservicesitalia.it\/#website"},"datePublished":"2017-07-13T09:41:58+00:00","dateModified":"2017-08-21T12:29:18+00:00","breadcrumb":{"@id":"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pvsservicesitalia.it\/prenotazioni-scarichi-merce\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pvsservicesitalia.it\/en\/"},{"@type":"ListItem","position":2,"name":"Goods Discharge Reservation"}]},{"@type":"WebSite","@id":"https:\/\/pvsservicesitalia.it\/#website","url":"https:\/\/pvsservicesitalia.it\/","name":"Pvs","description":"Fullfillment Service","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pvsservicesitalia.it\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"}]}},"_links":{"self":[{"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/pages\/4036\/"}],"collection":[{"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/pages\/"}],"about":[{"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/types\/page\/"}],"author":[{"embeddable":true,"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/users\/1\/"}],"replies":[{"embeddable":true,"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/comments\/?post=4036"}],"version-history":[{"count":5,"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/pages\/4036\/revisions\/"}],"predecessor-version":[{"id":4110,"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/pages\/4036\/revisions\/4110\/"}],"wp:attachment":[{"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/media\/?parent=4036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/categories\/?post=4036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pvsservicesitalia.it\/en\/wp-json\/wp\/v2\/tags\/?post=4036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}