(115,'donna.senese@niagaraltc.ca','','Shipping Confirmation For Order #:RES-10021','<html>\n    <body>\n        <div style=\"font-family:Ubuntu,\'Lucida Grande\',Helvetica,Arial,sans-serif; font-size:11px; line-height:1.3; margin: 20px auto; padding: 20px; width:700px; min-height:900px; border-width:1px; border-style:solid; border-color:rgb(221,221,221);\">\n\n            <h3>\n                A shipment has been created for order number : RES-10021\n            </h3>\n            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"70%\" bgcolor=\"#ffffff\">\n\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Shipping Information\n                            </h4>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipment Date:\n                            </h5>\n                            2025-04-11 18:30:45\n                            <br />\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Ship Method\n                            </h5>\n                            Canpar Ground\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Tracking Number\n                            </h5>\n                            D57600225 000 004 263 4001\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipping Contact:\n                            </h5>\n                            Donna  Senese\n                            <br>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n			</td>\n		    </tr>\n		</tbody>\n	    </table>\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence (#niagara)\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Email:\n                            </h5>\n                            donna.senese@niagaraltc.ca\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n			</td>\n                        <td valign=\"top\" align=\"left\" width=\"4%\" bgcolor=\"#ffffff\">\n                        </td>\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Billing Information\n                            </h4>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        </td>\n\n                        <td valign=\"top\" align=\"left\" width=\"10px\" bgcolor=\"#ffffff\">\n                        </td>\n                    </tr>\n                </tbody>\n            </table>\n\n            <table cellpadding=\"5\" cellspacing=\"1\" width=\"100%\" style=\"margin-top:10px;margin-right:0px;margin-bottom:10px;margin-left:0px;background-color:rgb(255,255,255);border-top-width:2px;border-top-style:solid;border-top-color:rgb(221,221,221);border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-collapse:collapse\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                        <td align=\"left\" width=\"140px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Item Code\n                            </h4>\n                        </td>\n\n                        <td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Description\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"100px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Ship Qty\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"130px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Remaining To Be Shipped\n                            </h4>\n                        </td>\n                    </tr>\n            <tr>\n    <td>204</td>\n    <td>Niagara Business Card Template (English)  (Rebecca (Bekki))</td>\n    <td align=\"center\">500</td>\n    <td align=\"center\">0</td>\n</tr>\n<tr>\n    <td>203</td>\n    <td>Niagara Business Card Template (English)  (Linda Ready)</td>\n    <td align=\"center\">500</td>\n    <td align=\"center\">0</td>\n</tr>\n<tr>\n    <td>Niagara_LH</td>\n    <td>Letterhead</td>\n    <td align=\"center\">1000</td>\n    <td align=\"center\">0</td>\n</tr>\n\n        </tbody>\n    </table>\n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Special Instructions:\n    </h4>\n    \n    <br/>\n    \n    \n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Note To Receiver:\n    </h4>\n    \n</div>\n\n\n\n    </body>\n</html>\n','a:0:{}','SENT','SENT','2025-04-11 18:30:45'),(116,'erics@creativepath.com','','Shipping Confirmation For Order #:RES-10021','<html>\n    <body>\n        <div style=\"font-family:Ubuntu,\'Lucida Grande\',Helvetica,Arial,sans-serif; font-size:11px; line-height:1.3; margin: 20px auto; padding: 20px; width:700px; min-height:900px; border-width:1px; border-style:solid; border-color:rgb(221,221,221);\">\n\n            <h3>\n                A shipment has been created for order number : RES-10021\n            </h3>\n            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"70%\" bgcolor=\"#ffffff\">\n\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Shipping Information\n                            </h4>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipment Date:\n                            </h5>\n                            2025-04-11 18:30:45\n                            <br />\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Ship Method\n                            </h5>\n                            Canpar Ground\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Tracking Number\n                            </h5>\n                            D57600225 000 004 263 4001\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipping Contact:\n                            </h5>\n                            Donna  Senese\n                            <br>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n			</td>\n		    </tr>\n		</tbody>\n	    </table>\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence (#niagara)\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Email:\n                            </h5>\n                            donna.senese@niagaraltc.ca\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n			</td>\n                        <td valign=\"top\" align=\"left\" width=\"4%\" bgcolor=\"#ffffff\">\n                        </td>\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Billing Information\n                            </h4>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        </td>\n\n                        <td valign=\"top\" align=\"left\" width=\"10px\" bgcolor=\"#ffffff\">\n                        </td>\n                    </tr>\n                </tbody>\n            </table>\n\n            <table cellpadding=\"5\" cellspacing=\"1\" width=\"100%\" style=\"margin-top:10px;margin-right:0px;margin-bottom:10px;margin-left:0px;background-color:rgb(255,255,255);border-top-width:2px;border-top-style:solid;border-top-color:rgb(221,221,221);border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-collapse:collapse\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                        <td align=\"left\" width=\"140px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Item Code\n                            </h4>\n                        </td>\n\n                        <td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Description\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"100px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Ship Qty\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"130px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Remaining To Be Shipped\n                            </h4>\n                        </td>\n                    </tr>\n            <tr>\n    <td>204</td>\n    <td>Niagara Business Card Template (English)  (Rebecca (Bekki))</td>\n    <td align=\"center\">500</td>\n    <td align=\"center\">0</td>\n</tr>\n<tr>\n    <td>203</td>\n    <td>Niagara Business Card Template (English)  (Linda Ready)</td>\n    <td align=\"center\">500</td>\n    <td align=\"center\">0</td>\n</tr>\n<tr>\n    <td>Niagara_LH</td>\n    <td>Letterhead</td>\n    <td align=\"center\">1000</td>\n    <td align=\"center\">0</td>\n</tr>\n\n        </tbody>\n    </table>\n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Special Instructions:\n    </h4>\n    \n    <br/>\n    \n    \n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Note To Receiver:\n    </h4>\n    \n</div>\n\n\n\n    </body>\n</html>\n','a:0:{}','SENT','SENT','2025-04-11 18:30:45'),(117,'orders@cpfulfillment.com','','ORDER CONFIRMATION NOTICE - Order#: RES-10022','<html>\n\n<body>\n    <div\n        style=\"font-family:Ubuntu,\'Lucida Grande\',Helvetica,Arial,sans-serif; font-size:11px; line-height:1.3; margin: 20px auto; padding: 20px; width:700px; min-height:900px; border-width:1px; border-style:solid; border-color:rgb(221,221,221);\">\n\n        <h5\n            style=\"font-size:22px;line-height:1.2;margin: 0px 0px 20px 0px;padding:15px 15px 15px 5px;color:rgb(0,0,0);font-weight:normal;text-align:left\">\n            Thank you for your order\n        </h5>\n\n        <h3>\n            \n            Order RES-10022 has been received and is now being processed.<br />\n            Once your order ships, you will receive a shipping confirmation email with tracking detail. <br />If you have any questions, feel free to contact us at orders@cpfulfillment.com.\n        </h3>\n        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n        <h3>  </h3>\n\n        <table width=\"100%\"\n            style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n            <tbody>\n                <tr style=\"background-color:rgb(241,241,241)\">\n                    <td valign=\"top\" align=\"left\" width=\"100%\" bgcolor=\"#ffffff\">\n\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                            Order details:\n                        </h4>\n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br /> </div>\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Order Number:\n                        </h5>\n                        RES-10022\n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Order Date:\n                        </h5>\n                        2025-08-01\n                        \n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Order Placed By:\n                        </h5>\n                        Donna  Senese\n                        \n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Email:\n                        </h5>\n                        donna.senese@niagaraltc.ca\n                        \n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Payment Reference:\n                        </h5>\n                        BHO\n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Banner:\n                        </h5>\n                        DEFAULT\n                        <br>\n\n                        \n\n                        \n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n                    </td>\n                </tr>\n            </tbody>\n        </table>\n        <table width=\"100%\"\n            style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n            <tbody>\n                <tr style=\"background-color:rgb(241,241,241)\">\n                    <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                            Ship-to Information:\n                        </h4>\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Company:\n                        </h5>\n                        Niagara Long Term Care Residence  (#niagara)\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Address:\n                        </h5>\n                        120 Wellington Street, Box 985\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            City:\n                        </h5>\n                        Niagara-on-the-Lake\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Province:\n                        </h5>\n                        ON\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Country:\n                        </h5>\n                        Canada\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Postal:\n                        </h5>\n                        L0S 1J0\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Phone:\n                        </h5>\n                        (905) 468-2111\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Fax:\n                        </h5>\n                        (905) 468-4463\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Shipping Contact:\n                        </h5>\n                        Donna  Senese\n                        <br />\n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                    </td>\n                    <td valign=\"top\" align=\"left\" width=\"4%\" bgcolor=\"#ffffff\">\n                    </td>\n                    <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                            Bill-To Information:\n                        </h4>\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Company:\n                        </h5>\n                        Niagara Long Term Care Residence\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Address:\n                        </h5>\n                        120 Wellington Street, Box 985\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            City:\n                        </h5>\n                        Niagara-on-the-Lake\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Province:\n                        </h5>\n                        ON\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Country:\n                        </h5>\n                        Canada\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Postal:\n                        </h5>\n                        L0S 1J0\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Phone:\n                        </h5>\n                        (905) 468-2111\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Fax:\n                        </h5>\n                        (905) 468-4463\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Billing Contact:\n                        </h5>\n                        Chris Poos\n                        <br />\n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                    </td>\n\n                    <td valign=\"top\" align=\"left\" width=\"10px\" bgcolor=\"#ffffff\">\n                    </td>\n\n                    <td valign=\"top\" align=\"left\" bgcolor=\"#ffffff\">\n                        <div style=\"display:none;\">\n                            <h4\n                                style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px 10px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                                ETA:\n                            </h4>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n                            <h5\n                                style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                <b>Seven Working Days</b>\n                            </h5>\n\n                            <br><br><br>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        </div>\n                    </td>\n                </tr>\n            </tbody>\n        </table>\n\n        <table cellpadding=\"5\" cellspacing=\"1\" width=\"100%\"\n            style=\"margin-top:10px;margin-right:0px;margin-bottom:10px;margin-left:0px;background-color:rgb(255,255,255);border-top-width:2px;border-top-style:solid;border-top-color:rgb(221,221,221);border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-collapse:collapse\">\n            <tbody>\n                <tr\n                    style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                    <td align=\"left\" width=\"140px\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Item Code\n                        </h4>\n                    </td>\n\n                    <td align=\"left\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Description\n                        </h4>\n                    </td>\n\n                    <td align=\"right\" width=\"100px\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Qty\n                        </h4>\n                    </td>\n\n                    <td align=\"right\" width=\"130px\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Ext. Price\n                        </h4>\n                    </td>\n                </tr>\n                <tr style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\r\n<td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">205</td>\r\n<td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">Niagara Business Card Template (English)  (Mackenzie Pellerin)</td>\r\n<td align=\"right\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">500</td>\r\n<td style=\"text-align:right; background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">$ 55.00</td>\r\n </tr>\r\n\n                <tr><td colspan=\"3\" style=\"text-align:right;\">Sub Total:</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 55.00</td><td colspan=\"1\"></td></tr><tr><td colspan=\"3\" style=\"text-align:right;\">Canpar Ground shipping :</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 22.16</td><td colspan=\"1\"></td></tr><tr><td colspan=\"3\" style=\"text-align:right;\">HST :</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 10.03</td><td colspan=\"1\"></td></tr><tr><td colspan=\"3\" style=\"text-align:right;\">Grand Total:</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 87.19</td><td colspan=\"1\"></td></tr>\n\n            </tbody>\n        </table>\n\n        <h4\n            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n            Special Instructions:\n        </h4>\n        \n\n\n        <h4\n            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n            Note To Receiver:\n        </h4>\n        \n    </div>\n\n\n\n</body>\n\n</html><a href=\"http://arch.cpfulfillment.com/downloadOrderWorksheetRedirector.php?name=RES-10022.xlsx&path=/home/cpfulfillment/public_html/printOSv1/companyResources/RESPONSIVE/generatedFiles/GEN688cc82b2a26f7.56831325.xlsx\" style=\"text-decoration:none; padding:8px 16px; width:124px; height:43px; background-color:rgb(225,225,225); color:black; border: 1px solid rgb(173,173,173);\">RES-10022.xlsx</a>&nbsp;&nbsp;&nbsp;&nbsp;','a:1:{i:0;a:2:{s:4:\"path\";s:116:\"/home/cpfulfillment/public_html/printOSv1/companyResources/RESPONSIVE/generatedFiles/GEN688cc82b2a26f7.56831325.xlsx\";s:4:\"name\";s:14:\"RES-10022.xlsx\";}}','SENT','SENT','2025-08-01 13:59:07'),(118,'donna.senese@niagaraltc.ca','','ORDER CONFIRMATION NOTICE - Order#: RES-10022','<html>\n\n<body>\n    <div\n        style=\"font-family:Ubuntu,\'Lucida Grande\',Helvetica,Arial,sans-serif; font-size:11px; line-height:1.3; margin: 20px auto; padding: 20px; width:700px; min-height:900px; border-width:1px; border-style:solid; border-color:rgb(221,221,221);\">\n\n        <h5\n            style=\"font-size:22px;line-height:1.2;margin: 0px 0px 20px 0px;padding:15px 15px 15px 5px;color:rgb(0,0,0);font-weight:normal;text-align:left\">\n            Thank you for your order\n        </h5>\n\n        <h3>\n            \n            Order RES-10022 has been received and is now being processed.<br />\n            Once your order ships, you will receive a shipping confirmation email with tracking detail. <br />If you have any questions, feel free to contact us at orders@cpfulfillment.com.\n        </h3>\n        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n        <h3>  </h3>\n\n        <table width=\"100%\"\n            style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n            <tbody>\n                <tr style=\"background-color:rgb(241,241,241)\">\n                    <td valign=\"top\" align=\"left\" width=\"100%\" bgcolor=\"#ffffff\">\n\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                            Order details:\n                        </h4>\n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br /> </div>\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Order Number:\n                        </h5>\n                        RES-10022\n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Order Date:\n                        </h5>\n                        2025-08-01\n                        \n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Order Placed By:\n                        </h5>\n                        Donna  Senese\n                        \n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Email:\n                        </h5>\n                        donna.senese@niagaraltc.ca\n                        \n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Payment Reference:\n                        </h5>\n                        BHO\n                        <br>\n                        \n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:150px;clear:none;display:inline-block\">\n                            Banner:\n                        </h5>\n                        DEFAULT\n                        <br>\n\n                        \n\n                        \n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n                    </td>\n                </tr>\n            </tbody>\n        </table>\n        <table width=\"100%\"\n            style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n            <tbody>\n                <tr style=\"background-color:rgb(241,241,241)\">\n                    <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                            Ship-to Information:\n                        </h4>\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Company:\n                        </h5>\n                        Niagara Long Term Care Residence  (#niagara)\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Address:\n                        </h5>\n                        120 Wellington Street, Box 985\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            City:\n                        </h5>\n                        Niagara-on-the-Lake\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Province:\n                        </h5>\n                        ON\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Country:\n                        </h5>\n                        Canada\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Postal:\n                        </h5>\n                        L0S 1J0\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Phone:\n                        </h5>\n                        (905) 468-2111\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Fax:\n                        </h5>\n                        (905) 468-4463\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Shipping Contact:\n                        </h5>\n                        Donna  Senese\n                        <br />\n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                    </td>\n                    <td valign=\"top\" align=\"left\" width=\"4%\" bgcolor=\"#ffffff\">\n                    </td>\n                    <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                            Bill-To Information:\n                        </h4>\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Company:\n                        </h5>\n                        Niagara Long Term Care Residence\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Address:\n                        </h5>\n                        120 Wellington Street, Box 985\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            City:\n                        </h5>\n                        Niagara-on-the-Lake\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Province:\n                        </h5>\n                        ON\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Country:\n                        </h5>\n                        Canada\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Postal:\n                        </h5>\n                        L0S 1J0\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Phone:\n                        </h5>\n                        (905) 468-2111\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Fax:\n                        </h5>\n                        (905) 468-4463\n                        <br />\n\n                        <h5\n                            style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                            Billing Contact:\n                        </h5>\n                        Chris Poos\n                        <br />\n\n                        <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                    </td>\n\n                    <td valign=\"top\" align=\"left\" width=\"10px\" bgcolor=\"#ffffff\">\n                    </td>\n\n                    <td valign=\"top\" align=\"left\" bgcolor=\"#ffffff\">\n                        <div style=\"display:none;\">\n                            <h4\n                                style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px 10px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                                ETA:\n                            </h4>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n                            <h5\n                                style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                <b>Seven Working Days</b>\n                            </h5>\n\n                            <br><br><br>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        </div>\n                    </td>\n                </tr>\n            </tbody>\n        </table>\n\n        <table cellpadding=\"5\" cellspacing=\"1\" width=\"100%\"\n            style=\"margin-top:10px;margin-right:0px;margin-bottom:10px;margin-left:0px;background-color:rgb(255,255,255);border-top-width:2px;border-top-style:solid;border-top-color:rgb(221,221,221);border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-collapse:collapse\">\n            <tbody>\n                <tr\n                    style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                    <td align=\"left\" width=\"140px\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Item Code\n                        </h4>\n                    </td>\n\n                    <td align=\"left\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Description\n                        </h4>\n                    </td>\n\n                    <td align=\"right\" width=\"100px\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Qty\n                        </h4>\n                    </td>\n\n                    <td align=\"right\" width=\"130px\"\n                        style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                        <h4\n                            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                            Ext. Price\n                        </h4>\n                    </td>\n                </tr>\n                <tr style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\r\n<td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">205</td>\r\n<td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">Niagara Business Card Template (English)  (Mackenzie Pellerin)</td>\r\n<td align=\"right\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">500</td>\r\n<td style=\"text-align:right; background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">$ 55.00</td>\r\n </tr>\r\n\n                <tr><td colspan=\"3\" style=\"text-align:right;\">Sub Total:</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 55.00</td><td colspan=\"1\"></td></tr><tr><td colspan=\"3\" style=\"text-align:right;\">Canpar Ground shipping :</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 22.16</td><td colspan=\"1\"></td></tr><tr><td colspan=\"3\" style=\"text-align:right;\">HST :</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 10.03</td><td colspan=\"1\"></td></tr><tr><td colspan=\"3\" style=\"text-align:right;\">Grand Total:</td><td style=\"text-align:right;\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px;>$ 87.19</td><td colspan=\"1\"></td></tr>\n\n            </tbody>\n        </table>\n\n        <h4\n            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n            Special Instructions:\n        </h4>\n        \n\n\n        <h4\n            style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n            Note To Receiver:\n        </h4>\n        \n    </div>\n\n\n\n</body>\n\n</html>','a:0:{}','SENT','SENT','2025-08-01 13:59:07'),(119,'donna.senese@niagaraltc.ca','','Shipping Confirmation For Order #:RES-10022','<html>\n    <body>\n        <div style=\"font-family:Ubuntu,\'Lucida Grande\',Helvetica,Arial,sans-serif; font-size:11px; line-height:1.3; margin: 20px auto; padding: 20px; width:700px; min-height:900px; border-width:1px; border-style:solid; border-color:rgb(221,221,221);\">\n\n            <h3>\n                A shipment has been created for order number : RES-10022\n            </h3>\n            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"70%\" bgcolor=\"#ffffff\">\n\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Shipping Information\n                            </h4>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipment Date:\n                            </h5>\n                            2025-08-07 15:58:44\n                            <br />\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Ship Method\n                            </h5>\n                            Canpar Ground\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Tracking Number\n                            </h5>\n                            D57600225 000 004 350 7001\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipping Contact:\n                            </h5>\n                            Donna  Senese\n                            <br>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n			</td>\n		    </tr>\n		</tbody>\n	    </table>\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence (#niagara)\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Email:\n                            </h5>\n                            donna.senese@niagaraltc.ca\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n			</td>\n                        <td valign=\"top\" align=\"left\" width=\"4%\" bgcolor=\"#ffffff\">\n                        </td>\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Billing Information\n                            </h4>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        </td>\n\n                        <td valign=\"top\" align=\"left\" width=\"10px\" bgcolor=\"#ffffff\">\n                        </td>\n                    </tr>\n                </tbody>\n            </table>\n\n            <table cellpadding=\"5\" cellspacing=\"1\" width=\"100%\" style=\"margin-top:10px;margin-right:0px;margin-bottom:10px;margin-left:0px;background-color:rgb(255,255,255);border-top-width:2px;border-top-style:solid;border-top-color:rgb(221,221,221);border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-collapse:collapse\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                        <td align=\"left\" width=\"140px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Item Code\n                            </h4>\n                        </td>\n\n                        <td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Description\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"100px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Ship Qty\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"130px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Remaining To Be Shipped\n                            </h4>\n                        </td>\n                    </tr>\n            <tr>\n    <td>205</td>\n    <td>Niagara Business Card Template (English)  (Mackenzie Pellerin)</td>\n    <td align=\"center\">500</td>\n    <td align=\"center\">0</td>\n</tr>\n\n        </tbody>\n    </table>\n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Special Instructions:\n    </h4>\n    \n    <br/>\n    \n    \n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Note To Receiver:\n    </h4>\n    \n</div>\n\n\n\n    </body>\n</html>\n','a:0:{}','SENT','SENT','2025-08-07 15:58:44'),(120,'erics@creativepath.com','','Shipping Confirmation For Order #:RES-10022','<html>\n    <body>\n        <div style=\"font-family:Ubuntu,\'Lucida Grande\',Helvetica,Arial,sans-serif; font-size:11px; line-height:1.3; margin: 20px auto; padding: 20px; width:700px; min-height:900px; border-width:1px; border-style:solid; border-color:rgb(221,221,221);\">\n\n            <h3>\n                A shipment has been created for order number : RES-10022\n            </h3>\n            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"70%\" bgcolor=\"#ffffff\">\n\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Shipping Information\n                            </h4>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipment Date:\n                            </h5>\n                            2025-08-07 15:58:44\n                            <br />\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Ship Method\n                            </h5>\n                            Canpar Ground\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Tracking Number\n                            </h5>\n                            D57600225 000 004 350 7001\n                            <br>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Shipping Contact:\n                            </h5>\n                            Donna  Senese\n                            <br>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n			</td>\n		    </tr>\n		</tbody>\n	    </table>\n            <table width=\"100%\" style=\"margin:10px 0px;background-color:rgb(255,255,255);padding:0px 0px;border-collapse:collapse;border-width:0px;\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241)\">\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence (#niagara)\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Email:\n                            </h5>\n                            donna.senese@niagaraltc.ca\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n                            <div style=\"font-size:11px;line-height:1.3\"> <br/> </div>\n			</td>\n                        <td valign=\"top\" align=\"left\" width=\"4%\" bgcolor=\"#ffffff\">\n                        </td>\n                        <td valign=\"top\" align=\"left\" width=\"48%\" bgcolor=\"#ffffff\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin: 0px; padding:10px 0px; border-top-width:2pt;border-top-style:solid;border-top-color:rgb(221,221,221)\"> \n                                Billing Information\n                            </h4>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Company:\n                            </h5>\n                            Niagara Long Term Care Residence\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Address:\n                            </h5>\n                            120 Wellington Street, Box 985\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                City:\n                            </h5>\n                            Niagara-on-the-Lake\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Province:\n                            </h5>\n                            ON\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Country:\n                            </h5>\n                            Canada\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Postal:\n                            </h5>\n                            L0S 1J0\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Phone:\n                            </h5>\n                            (905) 468-2111\n                            <br/>\n\n                            <h5 style=\"font-size:12px;line-height:1.3;margin:0px; padding:0px; color:#000;font-weight:normal;text-align:left;width:120px;clear:none;display:inline-block\">\n                                Fax:\n                            </h5>\n                            (905) 468-4463\n                            <br/>\n\n                            <div style=\"font-size:11px;line-height:1.3\"> <br> </div>\n                        </td>\n\n                        <td valign=\"top\" align=\"left\" width=\"10px\" bgcolor=\"#ffffff\">\n                        </td>\n                    </tr>\n                </tbody>\n            </table>\n\n            <table cellpadding=\"5\" cellspacing=\"1\" width=\"100%\" style=\"margin-top:10px;margin-right:0px;margin-bottom:10px;margin-left:0px;background-color:rgb(255,255,255);border-top-width:2px;border-top-style:solid;border-top-color:rgb(221,221,221);border-bottom-width:2px;border-bottom-style:solid;border-bottom-color:rgb(221,221,221);border-collapse:collapse\">\n                <tbody>\n                    <tr style=\"background-color:rgb(241,241,241);border-top-width:1px;border-top-style:solid;border-top-color:rgb(221,221,221)\">\n                        <td align=\"left\" width=\"140px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Item Code\n                            </h4>\n                        </td>\n\n                        <td align=\"left\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Description\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"100px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Ship Qty\n                            </h4>\n                        </td>\n\n                        <td align=\"center\" width=\"130px\" style=\"background-color:rgb(255,255,255);padding-top:3px;padding-right:0px;padding-bottom:3px;padding-left:0px\">\n                            <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n                                Remaining To Be Shipped\n                            </h4>\n                        </td>\n                    </tr>\n            <tr>\n    <td>205</td>\n    <td>Niagara Business Card Template (English)  (Mackenzie Pellerin)</td>\n    <td align=\"center\">500</td>\n    <td align=\"center\">0</td>\n</tr>\n\n        </tbody>\n    </table>\n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Special Instructions:\n    </h4>\n    \n    <br/>\n    \n    \n\n    <h4 style=\"font-size:13px;line-height:1.2;font-weight:bold;color:rgb(51,51,51);margin-top:0px;margin-right:0px;margin-bottom:10px;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px\">\n        Note To Receiver:\n    </h4>\n    \n</div>\n\n\n\n    </body>\n</html>\n','a:0:{}','SENT','SENT','2025-08-07 15:58:44');

--
-- Table structure for table `faq`
--

CREATE TABLE `faq` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `MAINCATEGORY` int NOT NULL DEFAULT '0',
  `NAMEEN` varchar(100) NOT NULL DEFAULT '',
  `NAMEFR` varchar(100) NOT NULL DEFAULT '',
  `CONTENTEN` varchar(2000) NOT NULL DEFAULT '',
  `CONTENTFR` varchar(2000) NOT NULL DEFAULT '',
  `LINKS` varchar(100) NOT NULL DEFAULT '',
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `faq`
--


--
-- Table structure for table `itemPricing`
--

CREATE TABLE `itemPricing` (
  `ITEMID` int NOT NULL,
  `QTY` int NOT NULL,
  `PRICE` decimal(19,4) NOT NULL,
  `LENGTH` decimal(19,4) NOT NULL,
  `WIDTH` decimal(19,4) NOT NULL,
  `HEIGHT` decimal(19,4) NOT NULL,
  `WEIGHT` decimal(19,6) NOT NULL,
  `PIECES` int NOT NULL,
  `ITEMOPTION` varchar(30) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  PRIMARY KEY (`ITEMID`,`QTY`,`ITEMOPTION`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `itemPricing`
--

INSERT INTO `itemPricing` VALUES (147,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(147,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(148,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(148,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(149,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(149,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(150,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(150,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(151,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(151,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(152,500,273.0000,10.0000,13.0000,10.0000,17.000000,1,''),(152,1000,388.0000,10.0000,13.0000,10.0000,34.000000,2,''),(153,500,273.0000,10.0000,13.0000,10.0000,17.000000,1,''),(153,1000,388.0000,10.0000,13.0000,10.0000,34.000000,2,''),(154,500,273.0000,10.0000,13.0000,10.0000,17.000000,1,''),(154,1000,388.0000,10.0000,13.0000,10.0000,34.000000,2,''),(155,500,273.0000,10.0000,13.0000,10.0000,17.000000,1,''),(155,1000,388.0000,10.0000,13.0000,10.0000,34.000000,2,''),(156,500,195.0000,11.0000,10.0000,6.0000,6.000000,1,''),(156,1000,247.0000,11.0000,10.0000,6.0000,12.000000,2,''),(157,500,208.0000,11.0000,10.0000,6.0000,6.000000,1,''),(157,1000,271.0000,11.0000,10.0000,6.0000,12.000000,2,''),(158,500,195.0000,11.0000,10.0000,6.0000,6.000000,1,''),(158,1000,247.0000,11.0000,10.0000,6.0000,12.000000,2,''),(159,500,208.0000,11.0000,10.0000,6.0000,6.000000,1,''),(159,1000,271.0000,11.0000,10.0000,6.0000,12.000000,2,''),(160,500,195.0000,11.0000,10.0000,6.0000,6.000000,1,''),(160,1000,247.0000,11.0000,10.0000,6.0000,12.000000,2,''),(161,500,208.0000,11.0000,10.0000,6.0000,6.000000,1,''),(161,1000,271.0000,11.0000,10.0000,6.0000,12.000000,2,''),(162,500,195.0000,11.0000,10.0000,6.0000,6.000000,1,''),(162,1000,247.0000,11.0000,10.0000,6.0000,12.000000,2,''),(163,500,208.0000,11.0000,10.0000,6.0000,6.000000,1,''),(163,1000,271.0000,11.0000,10.0000,6.0000,12.000000,2,''),(164,1000,186.0000,12.0000,9.0000,6.0000,16.000000,1,''),(165,1000,186.0000,12.0000,9.0000,6.0000,16.000000,1,''),(166,1000,186.0000,12.0000,9.0000,6.0000,16.000000,1,''),(167,1000,186.0000,12.0000,9.0000,6.0000,16.000000,1,''),(168,500,1446.0000,18.0000,12.0000,9.0000,100.000000,3,''),(168,1000,1664.0000,18.0000,12.0000,9.0000,200.000000,5,''),(169,500,1446.0000,18.0000,12.0000,9.0000,100.000000,3,''),(169,1000,1664.0000,18.0000,12.0000,9.0000,200.000000,5,''),(170,500,1446.0000,18.0000,12.0000,9.0000,100.000000,3,''),(170,1000,1664.0000,18.0000,12.0000,9.0000,200.000000,5,''),(171,500,1446.0000,18.0000,12.0000,9.0000,100.000000,3,''),(171,1000,1664.0000,18.0000,12.0000,9.0000,200.000000,5,''),(172,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(172,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(173,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(173,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(174,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(174,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(175,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(175,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(177,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(177,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(178,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(178,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(179,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(179,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(180,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(180,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(181,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(181,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(183,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(183,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(184,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(184,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(185,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(185,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(186,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(186,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(187,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(187,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(188,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(188,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(189,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(189,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(190,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(190,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(192,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(192,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(195,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(195,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(196,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(196,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(197,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(197,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(198,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(198,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(199,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(199,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(200,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(200,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(201,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(201,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(202,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(202,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(203,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(203,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(204,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(204,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,''),(205,250,45.0000,9.0000,6.0000,3.0000,2.000000,1,''),(205,500,55.0000,9.0000,6.0000,3.0000,3.000000,1,'');

--
-- Table structure for table `items`
--

CREATE TABLE `items` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `TYPE` int NOT NULL DEFAULT '0',
  `CODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `DESCRIPTION` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SIZE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `NUMPAGES` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `STATUS` int NOT NULL DEFAULT '1',
  `MINLEVEL` int NOT NULL DEFAULT '0',
  `LEADTIME` int NOT NULL DEFAULT '0',
  `DISPLAYIMAGENAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `DISPLAYIMAGEPATH` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PROOFPDFNAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PROOFPDFPATH` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PREVIEWIMAGENAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PREVIEWIMAGEPATH` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PARENTITEM` int DEFAULT '0',
  `ARCHIVED` int DEFAULT '0',
  `GENERATEDBY` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ASSETAPPROVED` int DEFAULT '1',
  `PARAMETERSFILENAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PARAMETERSFILEPATH` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `APPROVALLINK` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PRODUCEDETAIL` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPBOXINSLEEVE` int NOT NULL DEFAULT '0',
  `SKIPPDFPERMISSIONCHECK` int NOT NULL DEFAULT '0',
  `DLSUGGESTIONS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `CREATED` datetime DEFAULT CURRENT_TIMESTAMP,
  `MODIFIED` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `PRINTINGTYPE` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `STOCK` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=206 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `items`
--

INSERT INTO `items` VALUES (147,2,'BCard_BonAir_EN','Bon Air Business Card Template (English)','3.5\" x 2\"','2',1,0,0,'BonAir_BC_temp.png','/companyResources/RESPONSIVE/uploadFiles/BonAir_BC_temp.png','BonAir_BC_temp.pdf','/companyResources/RESPONSIVE/uploadFiles/BonAir_BC_temp.pdf','','',0,0,NULL,1,'147_genfile.txt','/companyResources/RESPONSIVE/uploadFiles/147_genfile.txt',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(148,2,'BCard_Champlain_BIL','Champlain Business Card Template (Bilingual)','3.5\" x 2\"','2',1,0,0,'Champlain_BC_BIL_temp.png','/companyResources/RESPONSIVE/uploadFiles/Champlain_BC_BIL_temp.png','Champlain_BC_BIL_temp.pdf','/companyResources/RESPONSIVE/uploadFiles/Champlain_BC_BIL_temp.pdf','','',0,0,NULL,1,'148_genfile.txt','/companyResources/RESPONSIVE/uploadFiles/148_genfile.txt',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(149,2,'BCard_Lancaster_1EN','Lancaster Business Card Template (English)','3.5\" x 2\"','2',1,0,0,'Lancaster_BC_temp.png','/companyResources/RESPONSIVE/uploadFiles/Lancaster_BC_temp.png','Lancaster_BC_EN_temp.pdf','/companyResources/RESPONSIVE/uploadFiles/Lancaster_BC_EN_temp.pdf','','',0,0,NULL,1,'149_genfile.txt','/companyResources/RESPONSIVE/uploadFiles/149_genfile.txt',NULL,'',0,0,'','2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(150,2,'BCard_Lancaster_BIL','Lancaster Business Card Template (Bilingual)','3.5\" x 2\"','2',1,0,0,'Lancaster_BC_temp.png','/companyResources/RESPONSIVE/uploadFiles/Lancaster_BC_temp.png','Lancaster_BC_BIL_temp.pdf','/companyResources/RESPONSIVE/uploadFiles/Lancaster_BC_BIL_temp.pdf','','',0,0,NULL,1,'150_genfile.txt','/companyResources/RESPONSIVE/uploadFiles/150_genfile.txt',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(151,2,'BCard_Niagara_EN','Niagara Business Card Template (English)','3.5\" x 2\"','2',1,0,0,'Niagara_BC_temp.png','/companyResources/RESPONSIVE/uploadFiles/Niagara_BC_temp.png','Niagara_BC_temp.pdf','/companyResources/RESPONSIVE/uploadFiles/Niagara_BC_temp.pdf','','',0,0,NULL,1,'151_genfile.txt','/companyResources/RESPONSIVE/uploadFiles/151_genfile.txt',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(152,1,'BonAir_10x13Env','10\" x 13\" Envelope','10\" x 13\"','1',1,0,0,'BonAir_10x13Env.png','/companyResources/RESPONSIVE/uploadFiles/BonAir_10x13Env.png','BonAir_10x13Env.pdf','/companyResources/RESPONSIVE/uploadFiles/BonAir_10x13Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:38:23',NULL,NULL),(153,1,'Champlain_10x13Env','10\" x 13\" Envelope','10\" x 13\"','1',1,0,0,'Champlain_10x13Env.png','/companyResources/RESPONSIVE/uploadFiles/Champlain_10x13Env.png','Champlain_10x13Env.pdf','/companyResources/RESPONSIVE/uploadFiles/Champlain_10x13Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:38:43',NULL,NULL),(154,1,'Lancaster_10x13Env','10\" x 13\" Envelope','10\" x 13\"','1',1,0,0,'Lancaster_10x13Env.png','/companyResources/RESPONSIVE/uploadFiles/Lancaster_10x13Env.png','Lancaster_10x13Env.pdf','/companyResources/RESPONSIVE/uploadFiles/Lancaster_10x13Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:39:00',NULL,NULL),(155,1,'Niagara_10x13Env','10\" x 13\" Envelope','10\" x 13\"','1',1,0,0,'Niagara_10x13Env.png','/companyResources/RESPONSIVE/uploadFiles/Niagara_10x13Env.png','Niagara_10x13Env.pdf','/companyResources/RESPONSIVE/uploadFiles/Niagara_10x13Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:39:11',NULL,NULL),(156,1,'BonAir_No10Env','No. 10 Envelope','4.13\" x 9.5\"','1',1,0,0,'BonAir_No10Env.png','/companyResources/RESPONSIVE/uploadFiles/BonAir_No10Env.png','BonAir_No10Env.pdf','/companyResources/RESPONSIVE/uploadFiles/BonAir_No10Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:39:45',NULL,NULL),(157,1,'BonAir_No10WinEnv','No. 10 Window Envelope','4.13\" x 9.5\"','1',1,0,0,'BonAir_No10WinEnv.png','/companyResources/RESPONSIVE/uploadFiles/BonAir_No10WinEnv.png','BonAir_No10WinEnv.pdf','/companyResources/RESPONSIVE/uploadFiles/BonAir_No10WinEnv.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:40:52',NULL,NULL),(158,1,'Champlain_No10Env','No. 10 Envelope','4.13\" x 9.5\"','1',1,0,0,'Champlain_No10Env.png','/companyResources/RESPONSIVE/uploadFiles/Champlain_No10Env.png','Champlain_No10Env.pdf','/companyResources/RESPONSIVE/uploadFiles/Champlain_No10Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:39:58',NULL,NULL),(159,1,'Champlain_No10WinEnv','No. 10 Window Envelope','4.13\" x 9.5\"','1',1,0,0,'Champlain_No10WinEnv.png','/companyResources/RESPONSIVE/uploadFiles/Champlain_No10WinEnv.png','Champlain_No10WinEnv.pdf','/companyResources/RESPONSIVE/uploadFiles/Champlain_No10WinEnv.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:41:02',NULL,NULL),(160,1,'Lancaster_No10Env','No. 10 Envelope','4.13\" x 9.5\"','1',1,0,0,'Lancaster_No10Env.png','/companyResources/RESPONSIVE/uploadFiles/Lancaster_No10Env.png','Lancaster_No10Env.pdf','/companyResources/RESPONSIVE/uploadFiles/Lancaster_No10Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:40:08',NULL,NULL),(161,1,'Lancaster_No10WinEnv','No. 10 Window Envelope','4.13\" x 9.5\"','1',1,0,0,'Lancaster_No10WinEnv.png','/companyResources/RESPONSIVE/uploadFiles/Lancaster_No10WinEnv.png','Lancaster_No10WinEnv.pdf','/companyResources/RESPONSIVE/uploadFiles/Lancaster_No10WinEnv.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:41:15',NULL,NULL),(162,1,'Niagara_No10Env','No. 10 Envelope','4.13\" x 9.5\"','1',1,0,0,'Niagara_No10Env.png','/companyResources/RESPONSIVE/uploadFiles/Niagara_No10Env.png','Niagara_No10Env.pdf','/companyResources/RESPONSIVE/uploadFiles/Niagara_No10Env.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:40:26',NULL,NULL),(163,1,'Niagara_No10WinEnv','No. 10 Window Envelope','4.13\" x 9.5\"','1',1,0,0,'Niagara_No10WinEnv.png','/companyResources/RESPONSIVE/uploadFiles/Niagara_No10WinEnv.png','Niagara_No10WinEnv.pdf','/companyResources/RESPONSIVE/uploadFiles/Niagara_No10WinEnv.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:41:24',NULL,NULL),(164,1,'BonAir_LH','Letterhead','8.5\" x 11\"','1',1,0,0,'BonAir_LH.png','/companyResources/RESPONSIVE/uploadFiles/BonAir_LH.png','BonAir_LH.pdf','/companyResources/RESPONSIVE/uploadFiles/BonAir_LH.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(165,1,'Champlain_LH','Letterhead','8.5\" x 11\"','1',1,0,0,'Champlain_LH.png','/companyResources/RESPONSIVE/uploadFiles/Champlain_LH.png','Champlain_LH.pdf','/companyResources/RESPONSIVE/uploadFiles/Champlain_LH.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(166,1,'Lancaster_LH','Letterhead','8.5\" x 11\"','1',1,0,0,'Lancaster_LH.png','/companyResources/RESPONSIVE/uploadFiles/Lancaster_LH.png','Lancaster_LH.pdf','/companyResources/RESPONSIVE/uploadFiles/Lancaster_LH.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(167,1,'Niagara_LH','Letterhead','8.5\" x 11\"','1',1,0,0,'Niagara_LH.png','/companyResources/RESPONSIVE/uploadFiles/Niagara_LH.png','Niagara_LH.pdf','/companyResources/RESPONSIVE/uploadFiles/Niagara_LH.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(168,1,'BonAir_Folder','Presentation Folder','18\" x 16\" to 9\" x 12\"','2',1,0,0,'BonAir_Folder.png','/companyResources/RESPONSIVE/uploadFiles/BonAir_Folder.png','BonAir_Folder.pdf','/companyResources/RESPONSIVE/uploadFiles/BonAir_Folder.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:42:25',NULL,NULL),(169,1,'Champlain_Folder','Presentation Folder','18\" x 16\" to 9\" x 12\"','2',1,0,0,'Champlain_Folder.png','/companyResources/RESPONSIVE/uploadFiles/Champlain_Folder.png','Champlain_Folder.pdf','/companyResources/RESPONSIVE/uploadFiles/Champlain_Folder.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:42:36',NULL,NULL),(170,1,'Lancaster_Folder','Presentation Folder','18\" x 16\" to 9\" x 12\"','2',1,0,0,'Lancaster_Folder.png','/companyResources/RESPONSIVE/uploadFiles/Lancaster_Folder.png','Lancaster_Folder.pdf','/companyResources/RESPONSIVE/uploadFiles/Lancaster_Folder.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:42:47',NULL,NULL),(171,1,'Niagara_Folder','Presentation Folder','18\" x 16\" to 9\" x 12\"','2',1,0,0,'Niagara_Folder.png','/companyResources/RESPONSIVE/uploadFiles/Niagara_Folder.png','Niagara_Folder.pdf','/companyResources/RESPONSIVE/uploadFiles/Niagara_Folder.pdf','','',0,0,NULL,1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-12-12 21:42:59',NULL,NULL),(172,3,'BCard_BonAir_EN-00001','Bon Air Business Card Template (English)  (Test)','3.5\" x 2\"','2',1,0,0,'RES-172-CPDI-BCard_BonAir_EN-00001.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-172-CPDI-BCard_BonAir_EN-00001.jpg','RES-172-CPDI-BCard_BonAir_EN-00001.pdf','/companyResources/RESPONSIVE/printAssets/RES-172-CPDI-BCard_BonAir_EN-00001.pdf','RES-172-CPDI-BCard_BonAir_EN-00001.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-172-CPDI-BCard_BonAir_EN-00001.pdf',147,0,'peggy',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(173,3,'BCard_BonAir_EN-00002','Bon Air Business Card Template (English)  (Liz Borges)','3.5\" x 2\"','2',1,0,0,'RES-173-rhm-BCard_BonAir_EN-00002.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-173-rhm-BCard_BonAir_EN-00002.jpg','RES-173-rhm-BCard_BonAir_EN-00002.pdf','/companyResources/RESPONSIVE/printAssets/RES-173-rhm-BCard_BonAir_EN-00002.pdf','RES-173-rhm-BCard_BonAir_EN-00002.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-173-rhm-BCard_BonAir_EN-00002.pdf',147,1,'rhm',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(174,2,'BCard_Champlain_EN','Champlain Business Card Template (English)','3.5\" x 2\"','2',1,0,0,'Champlain_BC_BIL_temp.png','/companyResources/RESPONSIVE/uploadFiles/Champlain_BC_BIL_temp.png','Champlain_BC_EN_temp.pdf','/companyResources/RESPONSIVE/uploadFiles/Champlain_BC_EN_temp.pdf','','',0,0,NULL,1,'174_genfile.txt','/companyResources/RESPONSIVE/uploadFiles/174_genfile.txt',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(175,3,'BCard_Niagara_EN-00001','Niagara Business Card Template (English)  (Chris Poos, BRLS)','3.5\" x 2\"','2',1,0,0,'RES-175-niagara-BCard_Niagara_EN-00001.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-175-niagara-BCard_Niagara_EN-00001.jpg','RES-175-niagara-BCard_Niagara_EN-00001.pdf','/companyResources/RESPONSIVE/printAssets/RES-175-niagara-BCard_Niagara_EN-00001.pdf','RES-175-niagara-BCard_Niagara_EN-00001.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-175-niagara-BCard_Niagara_EN-00001.pdf',151,0,'niagara',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(177,3,'BCard_Niagara_EN-00002','Niagara Business Card Template (English)  (Cody Cowbrough)','3.5\" x 2\"','2',1,0,0,'RES-177-niagara-BCard_Niagara_EN-00002.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-177-niagara-BCard_Niagara_EN-00002.jpg','RES-177-niagara-BCard_Niagara_EN-00002.pdf','/companyResources/RESPONSIVE/printAssets/RES-177-niagara-BCard_Niagara_EN-00002.pdf','RES-177-niagara-BCard_Niagara_EN-00002.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-177-niagara-BCard_Niagara_EN-00002.pdf',151,0,'niagara',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(178,3,'BCard_Lancaster_1EN-00001','Lancaster Business Card Template (English)  (Annie Aho)','3.5\" x 2\"','2',1,0,0,'RES-178-lancaster-BCard_Lancaster_1EN-00001.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-178-lancaster-BCard_Lancaster_1EN-00001.jpg','RES-178-lancaster-BCard_Lancaster_1EN-00001.pdf','/companyResources/RESPONSIVE/printAssets/RES-178-lancaster-BCard_Lancaster_1EN-00001.pdf','RES-178-lancaster-BCard_Lancaster_1EN-00001.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-178-lancaster-BCard_Lancaster_1EN-00001.pdf',149,0,'lancaster',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(179,3,'BCard_Lancaster_1EN-00002','Lancaster Business Card Template (English)  (Traci Carello )','3.5\" x 2\"','2',1,0,0,'RES-179-lancaster-BCard_Lancaster_1EN-00002.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-179-lancaster-BCard_Lancaster_1EN-00002.jpg','RES-179-lancaster-BCard_Lancaster_1EN-00002.pdf','/companyResources/RESPONSIVE/printAssets/RES-179-lancaster-BCard_Lancaster_1EN-00002.pdf','RES-179-lancaster-BCard_Lancaster_1EN-00002.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-179-lancaster-BCard_Lancaster_1EN-00002.pdf',149,0,'lancaster',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(180,3,'BCard_Champlain_EN-00001','Champlain Business Card Template (English)  (Stéphanie Fournier)','3.5\" x 2\"','2',1,0,0,'RES-180-champlain-BCard_Champlain_EN-00001.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-180-champlain-BCard_Champlain_EN-00001.jpg','RES-180-champlain-BCard_Champlain_EN-00001.pdf','/companyResources/RESPONSIVE/printAssets/RES-180-champlain-BCard_Champlain_EN-00001.pdf','RES-180-champlain-BCard_Champlain_EN-00001.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-180-champlain-BCard_Champlain_EN-00001.pdf',174,1,'champlain',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2025-01-29 20:23:19',NULL,NULL),(181,3,'BCard_Champlain_EN-00002','Champlain Business Card Template (English)  (Caroline Laughren)','3.5\" x 2\"','2',1,0,0,'RES-181-champlain-BCard_Champlain_EN-00002.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-181-champlain-BCard_Champlain_EN-00002.jpg','RES-181-champlain-BCard_Champlain_EN-00002.pdf','/companyResources/RESPONSIVE/printAssets/RES-181-champlain-BCard_Champlain_EN-00002.pdf','RES-181-champlain-BCard_Champlain_EN-00002.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-181-champlain-BCard_Champlain_EN-00002.pdf',174,1,'champlain',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2025-01-29 20:23:04',NULL,NULL),(183,3,'BCard_Lancaster_1EN-00003','Lancaster Business Card Template (English)  (Jennifer Dupuis)','3.5\" x 2\"','2',1,0,0,'RES-183-champlain-BCard_Lancaster_1EN-00003.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-183-champlain-BCard_Lancaster_1EN-00003.jpg','RES-183-champlain-BCard_Lancaster_1EN-00003.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-183-champlain-BCard_Lancaster_1EN-00003.pdf','RES-183-champlain-BCard_Lancaster_1EN-00003.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-183-champlain-BCard_Lancaster_1EN-00003.pdf',149,0,'champlain',1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(184,3,'BCard_Lancaster_BIL-00001','Lancaster Business Card Template (Bilingual)  (Julie Pilon)','3.5\" x 2\"','2',1,0,0,'RES-184-lancaster-BCard_Lancaster_BIL-00001.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-184-lancaster-BCard_Lancaster_BIL-00001.jpg','RES-184-lancaster-BCard_Lancaster_BIL-00001.pdf','/companyResources/RESPONSIVE/printAssets/RES-184-lancaster-BCard_Lancaster_BIL-00001.pdf','RES-184-lancaster-BCard_Lancaster_BIL-00001.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-184-lancaster-BCard_Lancaster_BIL-00001.pdf',150,0,'lancaster',1,'','',NULL,'',0,0,NULL,'2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(185,3,'BCard_Lancaster_1EN-00004','Lancaster Business Card Template (English)  (Cassie McLinton )','3.5\" x 2\"','2',1,0,0,'RES-185-lancaster-BCard_Lancaster_1EN-00004.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-185-lancaster-BCard_Lancaster_1EN-00004.jpg','RES-185-lancaster-BCard_Lancaster_1EN-00004.pdf','/companyResources/RESPONSIVE/printAssets/RES-185-lancaster-BCard_Lancaster_1EN-00004.pdf','RES-185-lancaster-BCard_Lancaster_1EN-00004.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-185-lancaster-BCard_Lancaster_1EN-00004.pdf',149,0,'lancaster',1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(186,3,'BCard_Lancaster_1EN-00005','Lancaster Business Card Template (English)  (Cindy Roberts)','3.5\" x 2\"','2',1,0,0,'RES-186-lancaster-BCard_Lancaster_1EN-00005.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-186-lancaster-BCard_Lancaster_1EN-00005.jpg','RES-186-lancaster-BCard_Lancaster_1EN-00005.pdf','/companyResources/RESPONSIVE/printAssets/RES-186-lancaster-BCard_Lancaster_1EN-00005.pdf','RES-186-lancaster-BCard_Lancaster_1EN-00005.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-186-lancaster-BCard_Lancaster_1EN-00005.pdf',149,0,'lancaster',1,'','',NULL,'',0,0,'','2022-06-03 14:37:18','2022-06-03 18:37:18',NULL,NULL),(187,3,'BCard_Niagara_EN-00003','Niagara Business Card Template (English)  (Linda Ready)','3.5\" x 2\"','2',1,0,0,'RES-187-niagara-BCard_Niagara_EN-00003.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-187-niagara-BCard_Niagara_EN-00003.jpg','RES-187-niagara-BCard_Niagara_EN-00003.pdf','/companyResources/RESPONSIVE/printAssets/RES-187-niagara-BCard_Niagara_EN-00003.pdf','RES-187-niagara-BCard_Niagara_EN-00003.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-187-niagara-BCard_Niagara_EN-00003.pdf',151,1,'niagara',1,'','',NULL,'',0,0,NULL,'2022-12-06 08:49:07','2025-04-03 12:57:56',NULL,NULL),(188,3,'BCard_Niagara_EN-00004','Niagara Business Card Template (English)  (Catherine Patterson)','3.5\" x 2\"','2',1,0,0,'RES-188-niagara-BCard_Niagara_EN-00004.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-188-niagara-BCard_Niagara_EN-00004.jpg','RES-188-niagara-BCard_Niagara_EN-00004.pdf','/companyResources/RESPONSIVE/printAssets/RES-188-niagara-BCard_Niagara_EN-00004.pdf','RES-188-niagara-BCard_Niagara_EN-00004.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-188-niagara-BCard_Niagara_EN-00004.pdf',151,1,'niagara',1,'','',NULL,'',0,0,NULL,'2023-04-05 14:29:47','2025-08-01 13:53:09',NULL,NULL),(189,3,'BCard_Niagara_EN-00005','Niagara Business Card Template (English)  (Elyse Carter)','3.5\" x 2\"','2',1,0,0,'RES-189-niagara-BCard_Niagara_EN-00005.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-189-niagara-BCard_Niagara_EN-00005.jpg','RES-189-niagara-BCard_Niagara_EN-00005.pdf','/companyResources/RESPONSIVE/printAssets/RES-189-niagara-BCard_Niagara_EN-00005.pdf','RES-189-niagara-BCard_Niagara_EN-00005.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-189-niagara-BCard_Niagara_EN-00005.pdf',151,0,'niagara',1,'','',NULL,'',0,0,NULL,'2023-04-05 15:02:12','2023-04-05 19:02:13',NULL,NULL),(190,3,'BCard_Lancaster_1EN-00006','Lancaster Business Card Template (English)  (Chantal Paradis )','3.5\" x 2\"','2',1,0,0,'RES-190-lancaster-BCard_Lancaster_1EN-00006.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-190-lancaster-BCard_Lancaster_1EN-00006.jpg','RES-190-lancaster-BCard_Lancaster_1EN-00006.pdf','/companyResources/RESPONSIVE/printAssets/RES-190-lancaster-BCard_Lancaster_1EN-00006.pdf','RES-190-lancaster-BCard_Lancaster_1EN-00006.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-190-lancaster-BCard_Lancaster_1EN-00006.pdf',149,0,'lancaster',1,'','',NULL,'',0,0,'','2023-07-13 15:40:44','2023-07-13 19:40:45',NULL,NULL),(192,3,'BCard_Lancaster_1EN-00007','Lancaster Business Card Template (English)  (Nicole Gurnsey)','3.5\" x 2\"','2',1,0,0,'RES-192-lancaster-BCard_Lancaster_1EN-00007.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-192-lancaster-BCard_Lancaster_1EN-00007.jpg','RES-192-lancaster-BCard_Lancaster_1EN-00007.pdf','/companyResources/RESPONSIVE/printAssets/RES-192-lancaster-BCard_Lancaster_1EN-00007.pdf','RES-192-lancaster-BCard_Lancaster_1EN-00007.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-192-lancaster-BCard_Lancaster_1EN-00007.pdf',149,0,'lancaster',1,'','',NULL,'',0,0,'','2023-07-18 09:58:02','2023-07-18 13:58:03',NULL,NULL),(195,3,'BCard_Lancaster_1EN-00008','Lancaster Business Card Template (English)  (Jessica Lister)','3.5\" x 2\"','2',1,0,0,'RES-195-lancaster-BCard_Lancaster_1EN-00008.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-195-lancaster-BCard_Lancaster_1EN-00008.jpg','RES-195-lancaster-BCard_Lancaster_1EN-00008.pdf','/companyResources/RESPONSIVE/printAssets/RES-195-lancaster-BCard_Lancaster_1EN-00008.pdf','RES-195-lancaster-BCard_Lancaster_1EN-00008.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-195-lancaster-BCard_Lancaster_1EN-00008.pdf',149,0,'lancaster',1,'','',NULL,'',0,0,'','2023-12-14 15:23:06','2023-12-14 20:23:07',NULL,NULL),(196,3,'BCard_Champlain_BIL-00001','Champlain Business Card Template (Bilingual)  (Stephanie Fournier )','3.5\" x 2\"','2',1,0,0,'RES-196-champlain-BCard_Champlain_BIL-00001.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-196-champlain-BCard_Champlain_BIL-00001.jpg','RES-196-champlain-BCard_Champlain_BIL-00001.pdf','/companyResources/RESPONSIVE/printAssets/RES-196-champlain-BCard_Champlain_BIL-00001.pdf','RES-196-champlain-BCard_Champlain_BIL-00001.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-196-champlain-BCard_Champlain_BIL-00001.pdf',148,1,'champlain',1,'','',NULL,'',0,0,NULL,'2024-05-08 14:18:25','2025-01-29 20:23:14',NULL,NULL),(197,3,'BCard_Champlain_EN-00003','Champlain Business Card Template (English)  (Feloreh Saremi)','3.5\" x 2\"','2',1,0,0,'RES-197-champlain-BCard_Champlain_EN-00003.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-197-champlain-BCard_Champlain_EN-00003.jpg','RES-197-champlain-BCard_Champlain_EN-00003.pdf','/companyResources/RESPONSIVE/printAssets/RES-197-champlain-BCard_Champlain_EN-00003.pdf','RES-197-champlain-BCard_Champlain_EN-00003.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-197-champlain-BCard_Champlain_EN-00003.pdf',174,1,'champlain',1,'','',NULL,'',0,0,NULL,'2024-05-08 14:19:28','2025-01-29 20:23:26',NULL,NULL),(198,3,'BCard_BonAir_EN-00003','Bon Air Business Card Template (English)  (Test)','3.5\" x 2\"','2',1,0,0,'RES-198-CPDI-BCard_BonAir_EN-00003.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-198-CPDI-BCard_BonAir_EN-00003.jpg','RES-198-CPDI-BCard_BonAir_EN-00003.pdf','/companyResources/RESPONSIVE/printAssets/RES-198-CPDI-BCard_BonAir_EN-00003.pdf','RES-198-CPDI-BCard_BonAir_EN-00003.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-198-CPDI-BCard_BonAir_EN-00003.pdf',147,1,'zoeyc',1,'','',NULL,'',0,0,NULL,'2024-12-01 16:21:41','2024-12-01 16:22:44',NULL,NULL),(199,3,'BCard_Champlain_BIL-00002','Champlain Business Card Template (Bilingual)  (Paule Juillet)','3.5\" x 2\"','2',1,0,0,'RES-199-champlain-BCard_Champlain_BIL-00002.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-199-champlain-BCard_Champlain_BIL-00002.jpg','RES-199-champlain-BCard_Champlain_BIL-00002.pdf','/companyResources/RESPONSIVE/printAssets/RES-199-champlain-BCard_Champlain_BIL-00002.pdf','RES-199-champlain-BCard_Champlain_BIL-00002.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-199-champlain-BCard_Champlain_BIL-00002.pdf',148,0,'champlain',1,'','',NULL,'',0,0,NULL,'2025-01-14 15:20:00','2025-01-14 15:20:00',NULL,NULL),(200,3,'BCard_Champlain_EN-00004','Champlain Business Card Template (English)  (Sebastian Candia)','3.5\" x 2\"','2',1,0,0,'RES-200-champlain-BCard_Champlain_EN-00004.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-200-champlain-BCard_Champlain_EN-00004.jpg','RES-200-champlain-BCard_Champlain_EN-00004.pdf','/companyResources/RESPONSIVE/printAssets/RES-200-champlain-BCard_Champlain_EN-00004.pdf','RES-200-champlain-BCard_Champlain_EN-00004.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-200-champlain-BCard_Champlain_EN-00004.pdf',174,0,'champlain',1,'','',NULL,'',0,0,NULL,'2025-01-14 15:22:05','2025-01-14 15:22:06',NULL,NULL),(201,3,'BCard_Champlain_BIL-00003','Champlain Business Card Template (Bilingual)  (Judith Richer)','3.5\" x 2\"','2',1,0,0,'RES-201-champlain-BCard_Champlain_BIL-00003.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-201-champlain-BCard_Champlain_BIL-00003.jpg','RES-201-champlain-BCard_Champlain_BIL-00003.pdf','/companyResources/RESPONSIVE/printAssets/RES-201-champlain-BCard_Champlain_BIL-00003.pdf','RES-201-champlain-BCard_Champlain_BIL-00003.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-201-champlain-BCard_Champlain_BIL-00003.pdf',148,0,'champlain',1,'','',NULL,'',0,0,NULL,'2025-01-29 14:03:28','2025-01-29 14:03:29',NULL,NULL),(202,3,'BCard_Champlain_BIL-00004','Champlain Business Card Template (Bilingual)  (Caroline Laughren)','3.5\" x 2\"','2',1,0,0,'RES-202-champlain-BCard_Champlain_BIL-00004.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-202-champlain-BCard_Champlain_BIL-00004.jpg','RES-202-champlain-BCard_Champlain_BIL-00004.pdf','/companyResources/RESPONSIVE/printAssets/RES-202-champlain-BCard_Champlain_BIL-00004.pdf','RES-202-champlain-BCard_Champlain_BIL-00004.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-202-champlain-BCard_Champlain_BIL-00004.pdf',148,0,'champlain',1,'','',NULL,'',0,0,NULL,'2025-01-29 20:51:52','2025-01-29 20:51:52',NULL,NULL),(203,3,'BCard_Niagara_EN-00006','Niagara Business Card Template (English)  (Linda Ready)','3.5\" x 2\"','2',1,0,0,'RES-203-niagara-BCard_Niagara_EN-00006.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-203-niagara-BCard_Niagara_EN-00006.jpg','RES-203-niagara-BCard_Niagara_EN-00006.pdf','/companyResources/RESPONSIVE/printAssets/RES-203-niagara-BCard_Niagara_EN-00006.pdf','RES-203-niagara-BCard_Niagara_EN-00006.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-203-niagara-BCard_Niagara_EN-00006.pdf',151,0,'niagara',1,'','',NULL,'',0,0,NULL,'2025-04-03 13:00:00','2025-04-03 13:00:00',NULL,NULL),(204,3,'BCard_Niagara_EN-00007','Niagara Business Card Template (English)  (Rebecca (Bekki))','3.5\" x 2\"','2',1,0,0,'RES-204-niagara-BCard_Niagara_EN-00007.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-204-niagara-BCard_Niagara_EN-00007.jpg','RES-204-niagara-BCard_Niagara_EN-00007.pdf','/companyResources/RESPONSIVE/printAssets/RES-204-niagara-BCard_Niagara_EN-00007.pdf','RES-204-niagara-BCard_Niagara_EN-00007.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-204-niagara-BCard_Niagara_EN-00007.pdf',151,0,'niagara',1,'','',NULL,'',0,0,NULL,'2025-04-03 13:05:23','2025-04-03 13:05:24',NULL,NULL),(205,3,'BCard_Niagara_EN-00008','Niagara Business Card Template (English)  (Mackenzie Pellerin)','3.5\" x 2\"','2',1,0,0,'RES-205-niagara-BCard_Niagara_EN-00008.jpg','/companyResources/RESPONSIVE/uploadFiles/RES-205-niagara-BCard_Niagara_EN-00008.jpg','RES-205-niagara-BCard_Niagara_EN-00008.pdf','/companyResources/RESPONSIVE/printAssets/RES-205-niagara-BCard_Niagara_EN-00008.pdf','RES-205-niagara-BCard_Niagara_EN-00008.pdf','/companyResources/RESPONSIVE/uploadFiles/RES-205-niagara-BCard_Niagara_EN-00008.pdf',151,0,'niagara',1,'','',NULL,'',0,0,NULL,'2025-08-01 13:55:48','2025-08-01 13:55:49',NULL,NULL);

--
-- Table structure for table `itemsAdjustmentLog`
--

CREATE TABLE `itemsAdjustmentLog` (
  `ADJID` int NOT NULL AUTO_INCREMENT,
  `ITEMID` int NOT NULL,
  `QTY` int NOT NULL,
  `ADJDATE` datetime NOT NULL,
  `REASON` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`ADJID`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `itemsAdjustmentLog`
--

INSERT INTO `itemsAdjustmentLog` VALUES (1,175,-500,'2020-12-04 16:20:04','Shipment for Order# 7 Ship# 1'),(2,176,-500,'2021-05-28 09:35:57','Shipment for Order# 8 Ship# 2'),(3,177,-250,'2021-06-02 13:38:27','Shipment for Order# 9 Ship# 3'),(4,178,-250,'2021-06-14 14:27:33','Shipment for Order# 10 Ship# 4'),(5,179,-250,'2021-06-14 14:27:33','Shipment for Order# 10 Ship# 4'),(6,165,-1000,'2021-10-18 16:44:32','Shipment for Order# 11 Ship# 5'),(7,180,-250,'2021-10-18 16:44:32','Shipment for Order# 11 Ship# 5'),(8,181,-250,'2021-10-18 16:44:32','Shipment for Order# 11 Ship# 5'),(9,182,-250,'2021-12-10 15:48:19','Shipment for Order# 12 Ship# 6'),(10,185,-250,'2022-03-09 17:34:02','Shipment for Order# 13 Ship# 7'),(11,184,-250,'2022-03-09 17:34:02','Shipment for Order# 13 Ship# 7'),(12,186,-250,'2022-03-09 17:34:02','Shipment for Order# 13 Ship# 7'),(13,177,-250,'2022-03-25 17:40:05','Shipment for Order# 14 Ship# 8'),(14,160,-500,'2022-05-30 11:44:02','Shipment for Order# 15 Ship# 9'),(15,161,-1000,'2022-05-30 11:44:02','Shipment for Order# 15 Ship# 9'),(16,166,-1000,'2022-05-30 11:44:02','Shipment for Order# 15 Ship# 9'),(17,169,-1000,'2022-10-31 10:45:56','Shipment for Order# 16 Ship# 10'),(18,159,-1000,'2022-10-31 10:45:56','Shipment for Order# 16 Ship# 10'),(19,165,-1000,'2022-10-31 10:45:56','Shipment for Order# 16 Ship# 10'),(20,187,-250,'2022-12-12 13:32:54','Shipment for Order# 17 Ship# 11'),(21,188,-250,'2023-04-12 12:27:09','Shipment for Order# 18 Ship# 12'),(22,189,-250,'2023-04-12 12:27:09','Shipment for Order# 18 Ship# 12'),(23,190,-500,'2023-07-24 11:31:16','Shipment for Order# 19 Ship# 13'),(24,191,-500,'2023-07-24 11:31:16','Shipment for Order# 19 Ship# 13'),(25,192,-500,'2023-07-24 11:31:16','Shipment for Order# 19 Ship# 13'),(26,197,-250,'2024-05-13 14:06:20','Shipment for Order# 22 Ship# 14'),(27,196,-250,'2024-05-13 14:06:20','Shipment for Order# 22 Ship# 14'),(28,158,-1000,'2024-05-13 14:06:20','Shipment for Order# 22 Ship# 14'),(29,159,-1000,'2024-05-13 14:06:20','Shipment for Order# 22 Ship# 14'),(30,161,-1000,'2024-07-30 10:55:09','Shipment for Order# 24 Ship# 15'),(31,166,-1000,'2024-07-30 10:55:09','Shipment for Order# 24 Ship# 15'),(32,199,-250,'2025-01-22 19:07:08','Shipment for Order# 27 Ship# 16'),(33,200,-250,'2025-01-22 19:07:08','Shipment for Order# 27 Ship# 16'),(34,201,-250,'2025-02-05 19:03:41','Shipment for Order# 28 Ship# 17'),(35,202,-250,'2025-02-05 19:03:41','Shipment for Order# 28 Ship# 17'),(36,204,-500,'2025-04-11 18:30:45','Shipment for Order# 31 Ship# 18'),(37,203,-500,'2025-04-11 18:30:45','Shipment for Order# 31 Ship# 18'),(38,167,-1000,'2025-04-11 18:30:45','Shipment for Order# 31 Ship# 18'),(39,205,-500,'2025-08-07 15:58:44','Shipment for Order# 32 Ship# 19');

--
-- Table structure for table `itemsBranchesLink`
--

CREATE TABLE `itemsBranchesLink` (
  `ITEMID` int NOT NULL,
  `BRANCHCODE` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`ITEMID`,`BRANCHCODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `itemsBranchesLink`
--

INSERT INTO `itemsBranchesLink` VALUES (147,'bonair'),(147,'CPDI'),(147,'Demo'),(147,'rhm'),(148,'champlain'),(148,'CPDI'),(148,'rhm'),(149,'CPDI'),(149,'Demo'),(149,'lancaster'),(149,'rhm'),(150,'CPDI'),(150,'Demo'),(150,'lancaster'),(150,'rhm'),(151,'CPDI'),(151,'Demo'),(151,'niagara'),(151,'rhm'),(152,'bonair'),(152,'CPDI'),(152,'Demo'),(152,'rhm'),(153,'champlain'),(153,'CPDI'),(153,'Demo'),(153,'rhm'),(154,'CPDI'),(154,'Demo'),(154,'lancaster'),(154,'rhm'),(155,'CPDI'),(155,'Demo'),(155,'niagara'),(155,'rhm'),(156,'bonair'),(156,'CPDI'),(156,'Demo'),(156,'rhm'),(157,'bonair'),(157,'CPDI'),(157,'Demo'),(157,'rhm'),(158,'champlain'),(158,'CPDI'),(158,'Demo'),(158,'rhm'),(159,'champlain'),(159,'CPDI'),(159,'Demo'),(159,'rhm'),(160,'CPDI'),(160,'Demo'),(160,'lancaster'),(160,'rhm'),(161,'CPDI'),(161,'Demo'),(161,'lancaster'),(161,'rhm'),(162,'CPDI'),(162,'Demo'),(162,'niagara'),(162,'rhm'),(163,'CPDI'),(163,'Demo'),(163,'niagara'),(163,'rhm'),(164,'bonair'),(164,'CPDI'),(164,'Demo'),(164,'rhm'),(165,'champlain'),(165,'CPDI'),(165,'Demo'),(165,'rhm'),(166,'CPDI'),(166,'Demo'),(166,'lancaster'),(166,'rhm'),(167,'CPDI'),(167,'Demo'),(167,'niagara'),(167,'rhm'),(168,'bonair'),(168,'CPDI'),(168,'Demo'),(168,'rhm'),(169,'champlain'),(169,'CPDI'),(169,'Demo'),(169,'rhm'),(170,'CPDI'),(170,'Demo'),(170,'lancaster'),(170,'rhm'),(171,'CPDI'),(171,'Demo'),(171,'niagara'),(171,'rhm'),(172,'CPDI'),(172,'rhm'),(173,'rhm'),(174,'champlain'),(174,'CPDI'),(174,'rhm'),(175,'niagara'),(177,'niagara'),(178,'lancaster'),(179,'lancaster'),(180,'champlain'),(181,'champlain'),(184,'lancaster'),(185,'lancaster'),(186,'lancaster'),(187,'niagara'),(188,'niagara'),(189,'niagara'),(190,'lancaster'),(192,'lancaster'),(195,'lancaster'),(196,'champlain'),(197,'champlain'),(198,'CPDI'),(199,'champlain'),(200,'champlain'),(201,'champlain'),(202,'champlain'),(203,'niagara'),(204,'niagara'),(205,'niagara');

--
-- Table structure for table `itemsInventory`
--

CREATE TABLE `itemsInventory` (
  `ITEMID` int NOT NULL,
  `QTYONHAND` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`ITEMID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `itemsInventory`
--


--
-- Table structure for table `itemsPrintDefinition`
--

CREATE TABLE `itemsPrintDefinition` (
  `ID` int NOT NULL,
  `PRESS` varchar(50) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `NUMPAGES` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `BLEEDS` int DEFAULT NULL,
  `COLOURS` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `FLATSIZE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `FINISHSIZE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `STOCK` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PARENTSHEETSIZE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PRESSSHEETSIZE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `NUMUP` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `LAYOUTORIENTATION` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `COATING` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `CONTOURCUT` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `LAMINATION` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `FINISHING` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ACCESSORY` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SPECIALINSTRUCTIONS` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PACKAGELOCATION` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `OUT` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `FINISHED` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `OVERS` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `GROSS` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `MEMO` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `itemsPrintDefinitioncol` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `itemsPrintDefinition`
--

INSERT INTO `itemsPrintDefinition` VALUES (147,'iGen5','2',1,'4/4','3.5\" x 2\"','3.5\" x 2\"','100lb Cougar Cover','','18\" x 12\"','20','Sheetwork','','','','Trim to size','','','','','','','','',NULL),(148,'iGen5','2',1,'4/4','3.5\" x 2\"','3.5\" x 2\"','100lb Cougar Cover','','18\" x 12\"','20','Sheetwork','','','','Trim to size','','','','','','','','',NULL),(149,'iGen5','2',1,'4/4','3.5\" x 2\"','3.5\" x 2\"','100lb Cougar Cover','','18\" x 12\"','20','Sheetwork','','','','Trim to size','','','','','','','','',NULL),(150,'iGen5','2',1,'4/4','3.5\" x 2\"','3.5\" x 2\"','100lb Cougar Cover','','18\" x 12\"','20','Sheetwork','','','','Trim to size','','','',NULL,NULL,NULL,NULL,NULL,NULL),(151,'iGen5','2',1,'4/4','3.5\" x 2\"','3.5\" x 2\"','100lb Cougar Cover','','18\" x 12\"','20','Sheetwork','','','','Trim to size','','','',NULL,NULL,NULL,NULL,NULL,NULL),(152,'QM','1',0,'PMS7462 & PMS2925','10\" x 13\"','10\" x 13\"','24lb White Wove Open Side Envelope','10\" x 13\"','10\" x 13\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(153,'QM','1',0,'PMS165 & PMS3258','10\" x 13\"','10\" x 13\"','24lb White Wove Open Side Envelope','10\" x 13\"','10\" x 13\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(154,'QM','1',0,'PMS173 & PMS648','10\" x 13\"','10\" x 13\"','24lb White Wove Open Side Envelope','10\" x 13\"','10\" x 13\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(155,'QM','1',0,'PMS2645 & PMS2755','10\" x 13\"','10\" x 13\"','24lb White Wove Open Side Envelope','10\" x 13\"','10\" x 13\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(156,'QM','1',0,'PMS7462 & PMS2925','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Non Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(157,'QM','1',0,'PMS7462 & PMS2925','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(158,'QM','1',0,'PMS165 & PMS3258','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Non Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(159,'QM','1',0,'PMS165 & PMS3258','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(160,'QM','1',0,'PMS173 & PMS648','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Non Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(161,'QM','1',0,'PMS173 & PMS648','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(162,'QM','1',0,'PMS2645 & PMS2755','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Non Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(163,'QM','1',0,'PMS2645 & PMS2755','4.13\" x 9.5\"','4.13\" x 9.5\"','24lb White Wove Window Envelope','4.13\" x 9.5\"','4.13\" x 9.5\"','1','Sheetwork','','','','Pack in Box','','','','1','500 / 1000','25 / 50','525 / 1050','',NULL),(164,'SM','1',0,'PMS7462 & PMS2925','8.5\" x 11\"','8.5\" x 11\"','70lb Uncoated Text','19\" x 25\"','19\" x 25\"','1','Sheetwork','','','','Trim to size','','','','4','250','250','500','',NULL),(165,'SM','1',0,'PMS165 & PMS3258','8.5\" x 11\"','8.5\" x 11\"','70lb Uncoated Text','19\" x 25\"','19\" x 25\"','1','Sheetwork','','','','Trim to size','','','','','','','','',NULL),(166,'SM','1',0,'PMS173 & PMS648','8.5\" x 11\"','8.5\" x 11\"','70lb Uncoated Text','19\" x 25\"','19\" x 25\"','1','Sheetwork','','','','Trim to size','','','','','','','','',NULL),(167,'SM','1',0,'PMS2645 & PMS2755','8.5\" x 11\"','8.5\" x 11\"','70lb Uncoated Text','19\" x 25\"','19\" x 25\"','1','Sheetwork','','','','Trim to size','','','','','','','','',NULL),(168,'SM','2',1,'4/4','9\" x 12\"','18\" x 16\"','13.5pt CSC Cover','','','','Sheetwork','Overall Gloss AQ','','','Send to J&P for Finishing  - Diecut, 4\" height double pockets, 2 business card slots (1 on each side) No gusset','','Need Sale order and PO to send out to J&P. ','','','','','','',NULL),(169,'SM','2',1,'4/4','9\" x 12\"','18\" x 16\"','13.5pt CSC Cover','','','','Sheetwork','Overall Gloss AQ','','','Send to J&P for Finishing  - Diecut, 4\" height double pockets, 2 business card slots (1 on each side) No gusset','','','','','','','','Need Sale order and PO to send out to J&P. ',NULL),(170,'SM','2',1,'4/4','9\" x 12\"','18\" x 16\"','13.5pt CSC Cover','','','','Sheetwork','Overall Gloss AQ','','','Send to J&P for Finishing  - Diecut, 4\" height double pockets, 2 business card slots (1 on each side) No gusset','','','','','','','','Need Sale order and PO to send out to J&P. ',NULL),(171,'SM','2',1,'4/4','9\" x 12\"','18\" x 16\"','13.5pt CSC Cover','','','','Sheetwork','Overall Gloss AQ','','','Send to J&P for Finishing  - Diecut, 4\" height double pockets, 2 business card slots (1 on each side) No gusset','','Need Sale order and PO to send out to J&P. ','','','','','','',NULL),(174,'iGen5','2',1,'4/4','3.5\" x 2\"','3.5\" x 2\"','100lb Cougar Cover','','18\" x 12\"','20','Sheetwork','','','','Trim to size','','','',NULL,NULL,NULL,NULL,NULL,NULL);

--
-- Table structure for table `itemsSubcategoryLink`
--

CREATE TABLE `itemsSubcategoryLink` (
  `ITEMID` int NOT NULL,
  `SUBCATID` int NOT NULL,
  PRIMARY KEY (`ITEMID`,`SUBCATID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `itemsSubcategoryLink`
--

INSERT INTO `itemsSubcategoryLink` VALUES (147,51),(148,51),(149,51),(150,51),(151,51),(152,53),(153,53),(154,53),(155,53),(156,53),(157,53),(158,53),(159,53),(160,53),(161,53),(162,53),(163,53),(164,55),(165,55),(166,55),(167,55),(168,54),(169,54),(170,54),(171,54),(172,51),(173,51),(174,51),(175,51),(177,51),(178,51),(179,51),(180,51),(181,51),(183,51),(184,51),(185,51),(186,51),(187,51),(188,51),(189,51),(190,51),(192,51),(195,51),(196,51),(197,51),(198,51),(199,51),(200,51),(201,51),(202,51),(203,51),(204,51),(205,51);

--
-- Table structure for table `newsItems`
--

CREATE TABLE `newsItems` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `STARTDATE` date NOT NULL,
  `ENDDATE` date NOT NULL,
  `LANGUAGE` varchar(2) COLLATE utf8mb3_unicode_ci NOT NULL,
  `TITLE` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL,
  `MESSAGE` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `newsItems`
--


--
-- Table structure for table `orderDetail`
--

CREATE TABLE `orderDetail` (
  `ITEMLINE` int NOT NULL AUTO_INCREMENT,
  `ORDERID` int NOT NULL,
  `ITEMID` int NOT NULL,
  `ITEMCODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ITEMDESC` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ITEMOPTION` varchar(30) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ORDERQTY` int NOT NULL,
  `SHIPTODATEQTY` int NOT NULL,
  `UNITPRICE` decimal(19,4) DEFAULT NULL,
  `EXTPRICE` decimal(19,4) DEFAULT NULL,
  `TAXAMT1` decimal(19,4) DEFAULT NULL,
  `TAXAMT2` decimal(19,4) DEFAULT NULL,
  `TAXAMT3` decimal(19,4) DEFAULT NULL,
  `TAXAMT4` decimal(19,4) DEFAULT NULL,
  `TAXAMT5` decimal(19,4) DEFAULT NULL,
  `ITEMLENGTH` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ITEMWIDTH` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ITEMHEIGHT` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ITEMWEIGHT` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ITEMPIECES` int DEFAULT NULL,
  `PROOFCONFIRMATION` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL,
  `DOWNLOADLINK` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ITEMLINE`,`ORDERID`)
) ENGINE=InnoDB AUTO_INCREMENT=60 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orderDetail`
--

INSERT INTO `orderDetail` VALUES (1,1,172,'BCard_BonAir_EN-00001','Bon Air Business Card Template (English)  (Test)','',0,0,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'s',NULL),(2,1,152,'BonAir_10x13Env','10\" x 13\" Envelope','',0,0,0.4200,210.0000,27.3000,0.0000,0.0000,0.0000,0.0000,'10.0000','13.0000','10.0000','17.000000',1,'x',NULL),(3,1,165,'Champlain_LH','Letterhead','',0,0,0.1860,186.0000,24.1800,0.0000,0.0000,0.0000,0.0000,'12.0000','9.0000','6.0000','16.000000',1,'s',NULL),(4,1,169,'Champlain_Folder','Presentation Folder','',0,0,2.2240,1112.0000,144.5600,0.0000,0.0000,0.0000,0.0000,'18.0000','12.0000','9.0000','100.000000',3,'s',NULL),(5,2,173,'BCard_BonAir_EN-00002','Bon Air Business Card Template (English)  (Liz Borges)','',0,0,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Liz Borges',NULL),(10,7,175,'BCard_Niagara_EN-00001','Niagara Business Card Template (English)  (Chris Poos, BRLS)','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Donna Senese',NULL),(11,8,176,'BCard_Champlain_BIL-00001','Champlain Business Card Template (Bilingual)  (Fanny van den Oetelaar)','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Fanny van den Oetelaar',NULL),(12,9,177,'BCard_Niagara_EN-00002','Niagara Business Card Template (English)  (Cody Cowbrough)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Donna Senese',NULL),(13,10,178,'BCard_Lancaster_1EN-00001','Lancaster Business Card Template (English)  (Annie Aho)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Nicole Gurnsey ',NULL),(14,10,179,'BCard_Lancaster_1EN-00002','Lancaster Business Card Template (English)  (Traci Carello )','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Nicole Gurnsey ',NULL),(15,11,165,'Champlain_LH','Letterhead','',1000,1000,0.1860,186.0000,24.1800,0.0000,0.0000,0.0000,0.0000,'12.0000','9.0000','6.0000','16.000000',1,'Fanny van den Oetelaar',NULL),(18,11,180,'BCard_Champlain_EN-00001','Champlain Business Card Template (English)  (Stéphanie Fournier)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Fanny van den Oetelaar',NULL),(19,11,181,'BCard_Champlain_EN-00002','Champlain Business Card Template (English)  (Caroline Laughren)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Fanny van den Oetelaar',NULL),(20,12,182,'BCard_Champlain_BIL-00002','Champlain & Lancaster Business Card Template (Bilingual)  (Jennifer Dupuis)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Fanny van den Oetelaar',NULL),(21,13,185,'BCard_Lancaster_1EN-00004','Lancaster Business Card Template (English)  (Cassie McLinton )','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Nicole Gurnsey - Executive Director ',NULL),(22,13,184,'BCard_Lancaster_BIL-00001','Lancaster Business Card Template (Bilingual)  (Julie Pilon)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Nicole Gurnsey - Executive Director ',NULL),(23,13,186,'BCard_Lancaster_1EN-00005','Lancaster Business Card Template (English)  (Cindy Roberts)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Nicole Gurnsey - Executive Director ',NULL),(24,14,177,'BCard_Niagara_EN-00002','Niagara Business Card Template (English)  (Cody Cowbrough)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Donna Senese',NULL),(25,15,160,'Lancaster_No10Env','No. 10 Envelope','',500,500,0.3000,150.0000,19.5000,0.0000,0.0000,0.0000,0.0000,'11.0000','10.0000','6.0000','6.000000',1,'Nicole Brodeur',NULL),(26,15,161,'Lancaster_No10WinEnv','No. 10 Window Envelope','',1000,1000,0.2080,208.0000,27.0400,0.0000,0.0000,0.0000,0.0000,'11.0000','10.0000','6.0000','12.000000',2,'Nicole Brodeur',NULL),(27,15,166,'Lancaster_LH','Letterhead','',1000,1000,0.1860,186.0000,24.1800,0.0000,0.0000,0.0000,0.0000,'12.0000','9.0000','6.0000','16.000000',1,'Nicole Brodeur',NULL),(29,16,169,'Champlain_Folder','Presentation Folder','',1000,1000,1.2800,1280.0000,166.4000,0.0000,0.0000,0.0000,0.0000,'18.0000','12.0000','9.0000','200.000000',5,'Fanny van den Oetelaar',NULL),(30,16,159,'Champlain_No10WinEnv','No. 10 Window Envelope','',1000,1000,0.2080,208.0000,27.0400,0.0000,0.0000,0.0000,0.0000,'11.0000','10.0000','6.0000','12.000000',2,'Fanny van den Oetelaar',NULL),(31,16,165,'Champlain_LH','Letterhead','',1000,1000,0.1860,186.0000,24.1800,0.0000,0.0000,0.0000,0.0000,'12.0000','9.0000','6.0000','16.000000',1,'Fanny van den Oetelaar',NULL),(32,17,187,'BCard_Niagara_EN-00003','Niagara Business Card Template (English)  (Linda Ready)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Donna Senese',NULL),(33,18,188,'BCard_Niagara_EN-00004','Niagara Business Card Template (English)  (Catherine Patterson)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Donna Senese',NULL),(34,18,189,'BCard_Niagara_EN-00005','Niagara Business Card Template (English)  (Elyse Carter)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Donna Senese',NULL),(35,19,190,'BCard_Lancaster_1EN-00006','Lancaster Business Card Template (English)  (Chantal Paradis )','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Nicole Gurnsey',NULL),(36,19,191,'BCard_Lancaster_BIL-00002','Lancaster Business Card Template (Bilingual)  (Caitlin Chabot )','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Nicole Gurnsey',NULL),(37,19,192,'BCard_Lancaster_1EN-00007','Lancaster Business Card Template (English)  (Nicole Gurnsey)','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Nicole Gurnsey',NULL),(40,22,197,'BCard_Champlain_EN-00003','Champlain Business Card Template (English)  (Feloreh Saremi)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Nicole Gurnsey',NULL),(41,22,196,'BCard_Champlain_BIL-00001','Champlain Business Card Template (Bilingual)  (Stephanie Fournier )','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Nicole Gurnsey',NULL),(42,22,158,'Champlain_No10Env','No. 10 Envelope','',1000,1000,0.2470,247.0000,32.1100,0.0000,0.0000,0.0000,0.0000,'11.0000','10.0000','6.0000','12.000000',2,'Nicole Gurnsey',NULL),(43,22,159,'Champlain_No10WinEnv','No. 10 Window Envelope','',1000,1000,0.2710,271.0000,35.2300,0.0000,0.0000,0.0000,0.0000,'11.0000','10.0000','6.0000','12.000000',2,'Nicole Gurnsey',NULL),(45,24,161,'Lancaster_No10WinEnv','No. 10 Window Envelope','',1000,1000,0.2710,271.0000,35.2300,0.0000,0.0000,0.0000,0.0000,'11.0000','10.0000','6.0000','12.000000',2,'Nicole Brodeur',NULL),(46,24,166,'Lancaster_LH','Letterhead','',1000,1000,0.1860,186.0000,24.1800,0.0000,0.0000,0.0000,0.0000,'12.0000','9.0000','6.0000','16.000000',1,'Nicole Brodeur',NULL),(47,25,183,'BCard_Lancaster_1EN-00003','Lancaster Business Card Template (English)  (Jennifer Dupuis)','',250,0,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'zoey',NULL),(48,26,172,'BCard_BonAir_EN-00001','Bon Air Business Card Template (English)  (Test)','',250,0,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'zoey',NULL),(49,27,199,'BCard_Champlain_BIL-00002','Champlain Business Card Template (Bilingual)  (Paule Juillet)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Paule Julliet',NULL),(50,27,200,'BCard_Champlain_EN-00004','Champlain Business Card Template (English)  (Sebastian Candia)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Sebastian Candia',NULL),(51,28,201,'BCard_Champlain_BIL-00003','Champlain Business Card Template (Bilingual)  (Judith Richer)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Judith Richer',NULL),(52,28,202,'BCard_Champlain_BIL-00004','Champlain Business Card Template (Bilingual)  (Caroline Laughren)','',250,250,0.1800,45.0000,5.8500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','2.000000',1,'Judith Richer',NULL),(56,31,204,'BCard_Niagara_EN-00007','Niagara Business Card Template (English)  (Rebecca (Bekki))','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Donna Senese',NULL),(57,31,203,'BCard_Niagara_EN-00006','Niagara Business Card Template (English)  (Linda Ready)','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Donna Senese',NULL),(58,31,167,'Niagara_LH','Letterhead','',1000,1000,0.1860,186.0000,24.1800,0.0000,0.0000,0.0000,0.0000,'12.0000','9.0000','6.0000','16.000000',1,'Donna Senese',NULL),(59,32,205,'BCard_Niagara_EN-00008','Niagara Business Card Template (English)  (Mackenzie Pellerin)','',500,500,0.1100,55.0000,7.1500,0.0000,0.0000,0.0000,0.0000,'9.0000','6.0000','3.0000','3.000000',1,'Donna Senese',NULL);

--
-- Table structure for table `orderHeader`
--

CREATE TABLE `orderHeader` (
  `ORDERID` int NOT NULL AUTO_INCREMENT,
  `USERNAME` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ORDERDATE` datetime NOT NULL,
  `ORDERMODIFIED` datetime NOT NULL,
  `PONUMBER` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPCONTACTFIRSTNAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPCONTACTLASTNAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPCONTACTPHONE` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPCONTACTFAX` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPCONTACTEMAIL` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPNAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPADDRESS` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPADDRESS2` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPCITY` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPPROVINCE` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPCOUNTRY` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPPOSTAL` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ORDERSTATUS` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `TAXNAME1` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `TAXNAME2` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `TAXNAME3` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `TAXNAME4` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `TAXNAME5` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `TAXRATE1` decimal(19,4) DEFAULT NULL,
  `TAXRATE2` decimal(19,4) DEFAULT NULL,
  `TAXRATE3` decimal(19,4) DEFAULT NULL,
  `TAXRATE4` decimal(19,4) DEFAULT NULL,
  `TAXRATE5` decimal(19,4) DEFAULT NULL,
  `SHIPPINGCOST` decimal(19,4) NOT NULL DEFAULT '0.0000',
  `SPECIALINSTRUCTIONS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `RECEIVERINSTRUCTIONS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `APPROVALLINK` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `EXPDATE` datetime DEFAULT NULL,
  `SHIPTAXGROUP` varchar(6) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ORDERREF` int DEFAULT NULL,
  `PAYMENTREF` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPSTOREID` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SHIPPINGCOSTTAXAMT1` decimal(19,4) DEFAULT '0.0000',
  `SHIPPINGCOSTTAXAMT2` decimal(19,4) DEFAULT '0.0000',
  `SHIPPINGCOSTTAXAMT3` decimal(19,4) DEFAULT '0.0000',
  `SHIPPINGCOSTTAXAMT4` decimal(19,4) DEFAULT '0.0000',
  `SHIPPINGCOSTTAXAMT5` decimal(19,4) DEFAULT '0.0000',
  `SHIPPINGMETHOD` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT 'N/A',
  `REQCONTACTFIRSTNAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQCONTACTLASTNAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQCONTACTPHONE` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQCONTACTFAX` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQNAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQADDRESS` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQADDRESS2` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQCITY` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQPROVINCE` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQCOUNTRY` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `REQPOSTAL` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `EXTRADATA1` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `APPROVALDATE` datetime DEFAULT NULL,
  `BILLINGCATEGORY` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ORDERID`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orderHeader`
--

INSERT INTO `orderHeader` VALUES (1,'peggy','2020-10-30 11:41:18','2020-10-30 11:41:18','','Peggy','Cheng','905-709-9609','905-709-9610','peggy@creativepath.com','Creative Path Digital Imaging Inc. ','1455-16th Avenue, Unit 1 & 2','','Richmond Hill','ON','Canada','L4B 4W5','CANCELLED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,41.3500,'20201204161811','',NULL,'2020-11-07 11:41:18','ON',10000,'','CPDI',5.3800,0.0000,0.0000,0.0000,0.0000,'Purolator Ground','Peggy','Cheng','905-709-9609','905-709-9610','Creative Path Digital Imaging Inc. ','1455-16th Avenue, Unit 1 & 2','','Richmond Hill','ON','Canada','L4B 4W5',NULL,NULL,NULL),(2,'rhm','2020-10-30 17:55:59','2020-10-30 17:55:59','','Liz','Borges','(416) 960-3445','(416) 960-3996','liz.borges@responsivehealth.ca','Responsive Health Management Inc.','429 Walmer Road','','Toronto','ON','Canada','M5P 2X9','CANCELLED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,9.7100,'20201204161847','',NULL,'2020-11-07 17:55:59','ON',10001,'','rhm',1.2600,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Liz','Borges','(416) 960-3445','(416) 960-3996','Responsive Health Management Inc.','429 Walmer Road','','Toronto','ON','Canada','M5P 2X9',NULL,NULL,NULL),(7,'niagara','2020-11-27 08:38:18','2020-11-27 08:38:18','','Donna','Senese','(905) 468-2111','(905) 468-4463','donna.senese@niagaraltc.ca','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,9.7100,'','',NULL,'2020-12-05 08:38:18','ON',10002,'','niagara',1.2600,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Chris','Poos','(905) 468-2111','(905) 468-4463','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0',NULL,NULL,NULL),(8,'champlain','2021-05-18 09:52:17','2021-05-18 09:52:17','','Fanny','van den Oetelaar','(613) 675-4617','(613) 675-1374','fanny.vandenoetelaar@champlainltc.ca','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,11.3900,'','',NULL,'2021-05-26 09:52:17','ON',10003,'','champlain',1.4800,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Dany','Roussel','(613) 675-4617','(613) 675-1374','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0',NULL,NULL,NULL),(9,'niagara','2021-05-26 11:48:27','2021-05-26 11:48:27','','Donna','Senese','(905) 468-2111','(905) 468-4463','donna.senese@niagaraltc.ca','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,10.8200,'','',NULL,'2021-06-03 11:48:27','ON',10004,'','niagara',1.4100,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Chris','Poos','(905) 468-2111','(905) 468-4463','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0',NULL,NULL,NULL),(10,'lancaster','2021-05-31 15:50:20','2021-05-31 15:50:20','','Nicole','Gurnsey','(613) 347-3016','(613) 347-1680','nicole.gurnsey@lancasterltc.ca','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,12.2700,'','',NULL,'2021-06-08 15:50:20','ON',10005,'','lancaster',1.6000,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Nicole','Gurnsey','(613) 347-3016','(613) 347-1680','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0',NULL,NULL,NULL),(11,'champlain','2021-10-07 14:59:38','2021-10-07 14:59:38','','Fanny','van den Oetelaar','(613) 675-4617','(613) 675-1374','fanny.vandenoetelaar@champlainltc.ca','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,16.2200,'','',NULL,'2021-10-15 14:59:38','ON',10006,'','champlain',2.1100,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Dany','Roussel','(613) 675-4617','(613) 675-1374','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0',NULL,NULL,NULL),(12,'champlain','2021-11-29 18:13:29','2021-11-29 18:13:29','','Fanny','van den Oetelaar','(613) 675-4617','(613) 675-1374','fanny.vandenoetelaar@champlainltc.ca','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,11.9100,'','',NULL,'2021-12-07 18:13:29','ON',10007,'','champlain',1.5500,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Dany','Roussel','(613) 675-4617','(613) 675-1374','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0',NULL,NULL,NULL),(13,'lancaster','2022-03-03 10:40:11','2022-03-03 10:40:11','','Nicole','Gurnsey','(613) 347-3016','(613) 347-1680','nicole.gurnsey@lancasterltc.ca','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,17.0700,'','',NULL,'2022-03-11 10:40:11','ON',10008,'','lancaster',2.2200,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Nicole','Gurnsey','(613) 347-3016','(613) 347-1680','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0',NULL,NULL,NULL),(14,'niagara','2022-03-22 14:47:53','2022-03-22 14:47:53','','Donna','Senese','(905) 468-2111','(905) 468-4463','donna.senese@niagaraltc.ca','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,12.2500,'','',NULL,'2022-03-30 14:47:53','ON',10009,'','niagara',1.5900,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Chris','Poos','(905) 468-2111','(905) 468-4463','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0',NULL,NULL,NULL),(15,'lancaster','2022-05-12 10:25:22','2022-05-12 10:25:22','','Nicole ','Brodeur','(613) 347-3016','(613) 347-1680','nicole.brodeur@lancasterltc.ca','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,27.0300,'','',NULL,'2022-05-20 10:25:22','ON',10010,'','lancaster',3.5100,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Nicole','Gurnsey','(613) 347-3016','(613) 347-1680','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0',NULL,NULL,NULL),(16,'champlain','2022-10-24 10:20:39','2022-10-24 10:20:39','','Fanny','van den Oetelaar','(613) 675-4617','(613) 675-1374','fanny.vandenoetelaar@champlainltc.ca','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,168.7400,'','',NULL,'2022-11-01 10:20:39','ON',10011,'','champlain',21.9400,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Dany','Roussel','(613) 675-4617','(613) 675-1374','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0',NULL,NULL,NULL),(17,'niagara','2022-12-06 08:51:34','2022-12-06 08:51:34','','Donna','Senese','(905) 468-2111','(905) 468-4463','donna.senese@niagaraltc.ca','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,20.5500,'','',NULL,'2022-12-14 08:51:34','ON',10012,'','niagara',2.6700,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Chris','Poos','(905) 468-2111','(905) 468-4463','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0',NULL,NULL,NULL),(18,'niagara','2023-04-05 15:05:06','2023-04-05 15:05:06','','Donna ','Senese','(905) 468-2111','(905) 468-4463','donna.senese@niagaraltc.ca','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,19.6200,'','',NULL,'2023-04-13 15:05:06','ON',10013,'','niagara',2.5500,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Chris','Poos','(905) 468-2111','(905) 468-4463','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0',NULL,NULL,NULL),(19,'lancaster','2023-07-18 10:00:14','2023-07-18 10:00:14','','Nicole','Gurnsey','(613) 347-3016','(613) 347-1680','nicole.gurnsey@lancasterltc.ca','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,25.0400,'','',NULL,'2023-07-26 10:00:14','ON',10014,'','lancaster',3.2600,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Nicole','Gurnsey','(613) 347-3016','(613) 347-1680','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0',NULL,NULL,NULL),(22,'champlain','2024-05-08 14:26:47','2024-05-08 14:26:47',NULL,'Nicole','Gurnsey','(613) 675-4617','(613) 675-1374','nicole.gurnsey@lancasterltc.ca','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,38.8300,'','',NULL,'2024-05-16 14:26:47','ON',10015,'BHO','champlain',5.0500,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Dany','Roussel','(613) 675-4617','(613) 675-1374','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0',NULL,NULL,NULL),(24,'lancaster','2024-07-24 19:01:33','2024-07-24 19:01:33',NULL,'Nicole ','Brodeur','(613) 347-3016','(613) 347-1680','nicole.brodeur@lancasterltc.ca','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,33.8300,'ASAP','Please process as soon as possible, we are completely out of window envelopes',NULL,'2024-08-01 19:01:33','ON',10016,'BHO','lancaster',4.4000,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Nicole','Brodeur','(613) 347-3016','(613) 347-1680','Lancaster Long Term Care Residence','105 Military Road North, Hwy 34','','Lancaster','ON','Canada','K0C 1N0',NULL,NULL,NULL),(25,'zoeyc','2024-09-07 13:53:16','2024-09-07 13:53:16',NULL,'Zoey','Cui','905-709-9609','905-709-9610','zoeyc@cpfulfillment.com','Creative Path Digital Imaging Inc. ','1455-16th Avenue, Unit 1 & 2','','Richmond Hill','ON','Canada','L4B 4W5','ACTIVE','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,15.1100,'test','',NULL,'2024-09-15 13:53:16','ON',10017,'BHO','CPDI',1.9600,0.0000,0.0000,0.0000,0.0000,'Purolator Ground','Zoey','C','905-709-9609','905-709-9610','Creative Path Digital Imaging Inc. ','1455-16th Avenue, Unit 1 & 2','','Richmond Hill','ON','Canada','L4B 4W5',NULL,NULL,NULL),(26,'zoeyc','2024-12-01 16:22:24','2024-12-01 16:22:24','','Zoey','Cui','905-709-9609','905-709-9610','zoeyc@cpfulfillment.com','Creative Path Digital Imaging Inc. ','1455-16th Avenue, Unit 1 & 2','','Richmond Hill','ON','Canada','L4B 4W5','ACTIVE','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,14.9200,'Testing. Please Ignore.','',NULL,'2024-12-09 16:22:24','ON',10018,'BHO','CPDI',1.9400,0.0000,0.0000,0.0000,0.0000,'Purolator Ground','Zoey','C','905-709-9609','905-709-9610','Creative Path Digital Imaging Inc. ','1455-16th Avenue, Unit 1 & 2','','Richmond Hill','ON','Canada','L4B 4W5',NULL,NULL,''),(27,'champlain','2025-01-14 15:24:27','2025-01-14 15:24:27','','Nicole','Gurnsey','(613) 675-4617','(613) 675-1374','nicole.gurnsey@lancasterltc.ca','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,25.3900,'','',NULL,'2025-01-22 15:24:27','ON',10019,'BHO','champlain',3.3000,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Dany','Roussel','(613) 675-4617','(613) 675-1374','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0',NULL,NULL,''),(28,'champlain','2025-01-29 20:54:51','2025-01-29 20:54:51','','Judith','Richer','(613) 675-4617','(613) 675-1374','judith.richer@champlainltc.ca','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,25.8300,'','',NULL,'2025-02-06 20:54:51','ON',10020,'BHO','champlain',3.3600,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Dany','Roussel','(613) 675-4617','(613) 675-1374','Champlain Long Term Care Residence','428 Front Road West','','L’Orignal','ON','Canada','K0B 1K0',NULL,NULL,''),(31,'niagara','2025-04-03 13:24:32','2025-04-03 13:24:32','','Donna ','Senese','(905) 468-2111','(905) 468-4463','donna.senese@niagaraltc.ca','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,29.9600,'','',NULL,'2025-04-11 13:24:32','ON',10021,'BHO','niagara',3.8900,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Chris','Poos','(905) 468-2111','(905) 468-4463','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0',NULL,NULL,''),(32,'niagara','2025-08-01 13:59:05','2025-08-01 13:59:05','','Donna ','Senese','(905) 468-2111','(905) 468-4463','donna.senese@niagaraltc.ca','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0','SHIPPED','HST','','','','',0.1300,0.0000,0.0000,0.0000,0.0000,22.1600,'','',NULL,'2025-08-09 13:59:05','ON',10022,'BHO','niagara',2.8800,0.0000,0.0000,0.0000,0.0000,'Canpar Ground','Chris','Poos','(905) 468-2111','(905) 468-4463','Niagara Long Term Care Residence','120 Wellington Street, Box 985','','Niagara-on-the-Lake','ON','Canada','L0S 1J0',NULL,NULL,'');

--
-- Table structure for table `orderPromos`
--

CREATE TABLE `orderPromos` (
  `ORDERID` int NOT NULL,
  `PROMOCODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `PROMONAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `PROMOTYPE` varchar(12) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SINGLEITEM` int NOT NULL DEFAULT '0',
  `PROMOVALUE` decimal(19,2) NOT NULL,
  `CALCDISCOUNT` decimal(19,2) NOT NULL,
  `TAXAMT1` decimal(19,2) NOT NULL,
  `TAXAMT2` decimal(19,2) NOT NULL,
  `TAXAMT3` decimal(19,2) NOT NULL,
  `TAXAMT4` decimal(19,2) NOT NULL,
  `TAXAMT5` decimal(19,2) NOT NULL,
  PRIMARY KEY (`ORDERID`,`PROMOCODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `orderPromos`
--


--
-- Table structure for table `preOrderDefinition`
--

CREATE TABLE `preOrderDefinition` (
  `CODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ITEMNAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SHORTDESC` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `FULLDESC` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `COMPONENTINPUTS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `DISPLAYIMAGEPATH` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `ACTIVE` int NOT NULL DEFAULT '1',
  `BRAND` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'ALL',
  `EMAILDESC` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `AVAILABLELANGS` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'English|Bilingual',
  PRIMARY KEY (`CODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `preOrderDefinition`
--


--
-- Table structure for table `preOrderDefinitionV2`
--

CREATE TABLE `preOrderDefinitionV2` (
  `ACTIVE` int NOT NULL DEFAULT '1',
  `CODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `BRAND` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'ALL',
  `ITEMNAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `INTRODESC` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `INTRODESC_EMAIL` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `ELIGIBLEQUESTION` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `ELIGIBLENO` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `AVAILABLELANGS` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'English|Bilingual',
  `SECTION1NAME` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION1INTRO` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION1INTRO_EMAIL` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION1COMPONENT` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION1FOOTER` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION2NAME` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION2INTRO` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION2INTRO_EMAIL` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION2COMPONENT` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION2FOOTER` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION3NAME` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION3INTRO` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION3INTRO_EMAIL` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION3COMPONENT` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SECTION3FOOTER` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `SUBMITMESSAGE` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `BANNERIMAGE` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT '',
  PRIMARY KEY (`CODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `preOrderDefinitionV2`
--


--
-- Table structure for table `preOrders`
--

CREATE TABLE `preOrders` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `CODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `USERNAME` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `BRANCH` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SKIN` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `STORENAME` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ADDRESS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ADDRESS2` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `CITY` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PROVINCE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `COUNTRY` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `POSTALCODE` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `CONTACTNAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `CONTACTEMAIL` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `BASEQTY` int NOT NULL DEFAULT '1',
  `COMPONENTS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `LANGUAGE` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `preOrders`
--


--
-- Table structure for table `preOrdersV2`
--

CREATE TABLE `preOrdersV2` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `CODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `USERNAME` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `BRANCH` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SKIN` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `STORENAME` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ADDRESS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ADDRESS2` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `CITY` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `PROVINCE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `COUNTRY` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `POSTALCODE` varchar(20) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `CONTACTNAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `CONTACTEMAIL` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `CONTACTPHONE` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `COMPONENTS1` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `COMPONENTS2` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `COMPONENTS3` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `LANGUAGE` varchar(45) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `preOrdersV2`
--


--
-- Table structure for table `promos`
--

CREATE TABLE `promos` (
  `CODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `NAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `CODETYPE` varchar(12) COLLATE utf8mb3_unicode_ci NOT NULL,
  `STARTDATE` date NOT NULL,
  `ENDDATE` date NOT NULL,
  `SINGLEUSE` int NOT NULL DEFAULT '0',
  `REDEEMED` int NOT NULL DEFAULT '0',
  `PROMOVALUE` decimal(19,2) NOT NULL DEFAULT '0.00',
  `SINGLEITEM` int NOT NULL DEFAULT '0',
  `MAXQTY` int DEFAULT '0',
  `MINQTY` int DEFAULT '0',
  `EXACTQTY` int DEFAULT '0',
  `QTYTYPE` varchar(12) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`CODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `promos`
--


--
-- Table structure for table `promosCategories`
--

CREATE TABLE `promosCategories` (
  `CODE` varchar(50) NOT NULL,
  `CATID` int NOT NULL,
  PRIMARY KEY (`CODE`,`CATID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `promosCategories`
--


--
-- Table structure for table `promosItems`
--

CREATE TABLE `promosItems` (
  `CODE` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ITEMID` int NOT NULL,
  PRIMARY KEY (`CODE`,`ITEMID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `promosItems`
--


--
-- Table structure for table `settings`
--

CREATE TABLE `settings` (
  `key` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `value` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `settings`
--

INSERT INTO `settings` VALUES ('site_maint','0');

--
-- Table structure for table `shipToAddresses`
--

CREATE TABLE `shipToAddresses` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `STOREID` varchar(10) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `NAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ADDRESS` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ADDRESS2` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `CITY` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `PROVINCE` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `COUNTRY` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `POSTAL` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `PHONE` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `FAX` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `TAXGROUP` varchar(6) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SHIPZONE` varchar(6) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shipToAddresses`
--


--
-- Table structure for table `shipToAddressesUserList`
--

CREATE TABLE `shipToAddressesUserList` (
  `ID` int NOT NULL,
  `USERNAME` varchar(50) NOT NULL,
  PRIMARY KEY (`ID`,`USERNAME`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `shipToAddressesUserList`
--


--
-- Table structure for table `shipZoneCosts`
--

CREATE TABLE `shipZoneCosts` (
  `WEIGHT` int NOT NULL,
  `None` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone1` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone2` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone3` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone4` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone5` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone6` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone7` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone8` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone9` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone10` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone11` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone12` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone13` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone14` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone15` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone16` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone17` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone18` decimal(16,2) NOT NULL DEFAULT '0.00',
  `Zone19` decimal(16,2) NOT NULL DEFAULT '0.00',
  PRIMARY KEY (`WEIGHT`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shipZoneCosts`
--

INSERT INTO `shipZoneCosts` VALUES (0,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00);

--
-- Table structure for table `shipmentCostLog`
--

CREATE TABLE `shipmentCostLog` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `CARRIER` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `METHOD` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPFROM_NAME` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPFROM_STREETNUM` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPFROM_STREET` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPFROM_CITY` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPFROM_PROVINCE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPFROM_COUNTRY` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPFROM_POSTAL` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `TOTALWEIGHT` decimal(19,4) DEFAULT NULL,
  `TOTALBOXES` int DEFAULT NULL,
  `SHIPTO_PROVINCE` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPTO_POSTAL` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `SHIPTO_CITY` varchar(100) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `TOTALPRICE` decimal(19,4) DEFAULT NULL,
  `OURMARKUP` decimal(19,4) DEFAULT NULL,
  `OURSLEEVECHARGE` decimal(19,4) DEFAULT NULL,
  `ORDERID` int DEFAULT NULL,
  `CREATEDATETIME` datetime DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=193 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shipmentCostLog`
--

INSERT INTO `shipmentCostLog` VALUES (1,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',32.5200,1.3000,0.0000,1,'2020-10-30 11:40:37'),(2,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',31.8100,1.3000,0.0000,1,'2020-10-30 11:40:37'),(3,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',48.6700,1.3000,0.0000,1,'2020-10-30 11:40:37'),(4,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',107.6100,1.3000,0.0000,1,'2020-10-30 11:40:38'),(5,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',32.5200,1.3000,0.0000,NULL,'2020-10-30 11:41:22'),(6,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',31.8100,1.3000,0.0000,NULL,'2020-10-30 11:41:23'),(7,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',48.6700,1.3000,0.0000,NULL,'2020-10-30 11:41:23'),(8,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',135.0000,6,'ON','L4B 4W5','Richmond Hill',107.6100,1.3000,0.0000,NULL,'2020-10-30 11:41:23'),(9,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','M5P 2X9','Toronto',7.4700,1.3000,0.0000,2,'2020-10-30 17:55:05'),(10,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','M5P 2X9','Toronto',26.0400,1.3000,0.0000,2,'2020-10-30 17:55:05'),(11,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','M5P 2X9','Toronto',7.4700,1.3000,0.0000,NULL,'2020-10-30 17:56:00'),(12,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','M5P 2X9','Toronto',26.0400,1.3000,0.0000,NULL,'2020-10-30 17:56:00'),(13,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.8300,1.3000,0.0000,3,'2020-10-30 17:59:05'),(14,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.2000,1.3000,0.0000,3,'2020-10-30 17:59:05'),(15,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',14.5300,1.3000,0.0000,3,'2020-10-30 17:59:06'),(16,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',58.2300,1.3000,0.0000,3,'2020-10-30 17:59:06'),(17,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.8300,1.3000,0.0000,3,'2020-10-30 17:59:12'),(18,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.2000,1.3000,0.0000,3,'2020-10-30 17:59:12'),(19,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',14.5300,1.3000,0.0000,3,'2020-10-30 17:59:12'),(20,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',58.2300,1.3000,0.0000,3,'2020-10-30 17:59:13'),(21,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.8300,1.3000,0.0000,3,'2020-10-30 17:59:17'),(22,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.2000,1.3000,0.0000,3,'2020-10-30 17:59:17'),(23,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',14.5300,1.3000,0.0000,3,'2020-10-30 17:59:17'),(24,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',58.2300,1.3000,0.0000,3,'2020-10-30 17:59:17'),(25,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.8300,1.3000,0.0000,3,'2020-10-30 17:59:23'),(26,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',28.2000,1.3000,0.0000,3,'2020-10-30 17:59:23'),(27,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',14.5300,1.3000,0.0000,3,'2020-10-30 17:59:23'),(28,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,2,'ON','L0E 1E0','Cannington',58.2300,1.3000,0.0000,3,'2020-10-30 17:59:24'),(29,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','M5P 2X9','Toronto',7.4700,1.3000,0.0000,4,'2020-11-04 11:42:59'),(30,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','M5P 2X9','Toronto',26.0400,1.3000,0.0000,4,'2020-11-04 11:43:00'),(31,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',9.7500,1.3000,0.0000,5,'2020-11-04 11:44:37'),(32,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',9.5300,1.3000,0.0000,5,'2020-11-04 11:44:37'),(33,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',9.5600,1.3000,0.0000,5,'2020-11-04 11:44:37'),(34,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',44.6400,1.3000,0.0000,5,'2020-11-04 11:44:38'),(35,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',9.7500,1.3000,0.0000,6,'2020-11-05 12:14:32'),(36,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',9.5300,1.3000,0.0000,6,'2020-11-05 12:14:32'),(37,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',9.5600,1.3000,0.0000,6,'2020-11-05 12:14:32'),(38,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',44.6400,1.3000,0.0000,6,'2020-11-05 12:14:33'),(39,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',7.4700,1.3000,0.0000,7,'2020-11-27 08:35:34'),(40,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',26.0400,1.3000,0.0000,7,'2020-11-27 08:35:35'),(41,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',7.4700,1.3000,0.0000,NULL,'2020-11-27 08:38:18'),(42,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',26.0400,1.3000,0.0000,NULL,'2020-11-27 08:38:19'),(43,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','K0B 1K0','L’Orignal',8.7600,1.3000,0.0000,8,'2021-05-18 09:51:27'),(44,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','K0B 1K0','L’Orignal',29.0100,1.3000,0.0000,8,'2021-05-18 09:51:28'),(45,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','K0B 1K0','L’Orignal',8.7600,1.3000,0.0000,8,'2021-05-18 09:52:18'),(46,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','K0B 1K0','L’Orignal',29.0100,1.3000,0.0000,8,'2021-05-18 09:52:18'),(47,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',8.3200,1.3000,0.0000,9,'2021-05-26 11:47:47'),(48,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',29.0100,1.3000,0.0000,9,'2021-05-26 11:47:47'),(49,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',8.3200,1.3000,0.0000,9,'2021-05-26 11:48:27'),(50,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',29.0100,1.3000,0.0000,9,'2021-05-26 11:48:28'),(51,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',19.7600,1.3000,0.0000,10,'2021-05-31 15:49:43'),(52,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',19.2900,1.3000,0.0000,10,'2021-05-31 15:49:43'),(53,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',9.4400,1.3000,0.0000,10,'2021-05-31 15:49:44'),(54,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',42.9900,1.3000,0.0000,10,'2021-05-31 15:49:44'),(55,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',19.7600,1.3000,0.0000,10,'2021-05-31 15:49:50'),(56,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',19.2900,1.3000,0.0000,10,'2021-05-31 15:49:50'),(57,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',9.4400,1.3000,0.0000,10,'2021-05-31 15:49:50'),(58,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',42.9900,1.3000,0.0000,10,'2021-05-31 15:49:50'),(59,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',19.7600,1.3000,0.0000,10,'2021-05-31 15:50:28'),(60,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',19.2900,1.3000,0.0000,10,'2021-05-31 15:50:28'),(61,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',9.4400,1.3000,0.0000,10,'2021-05-31 15:50:29'),(62,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0C 1N0','Lancaster',42.9900,1.3000,0.0000,10,'2021-05-31 15:50:29'),(63,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',20.0000,3,'ON','K0B 1K0','L’Orignal',12.4800,1.3000,0.0000,11,'2021-10-07 14:56:04'),(64,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',20.0000,3,'ON','K0B 1K0','L’Orignal',51.0400,1.3000,0.0000,11,'2021-10-07 14:56:04'),(65,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',20.0000,3,'ON','K0B 1K0','L’Orignal',12.4800,1.3000,0.0000,11,'2021-10-07 14:58:58'),(66,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',20.0000,3,'ON','K0B 1K0','L’Orignal',51.0400,1.3000,0.0000,11,'2021-10-07 14:58:58'),(67,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',20.0000,3,'ON','K0B 1K0','L’Orignal',12.4800,1.3000,0.0000,11,'2021-10-07 14:59:39'),(68,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',20.0000,3,'ON','K0B 1K0','L’Orignal',51.0400,1.3000,0.0000,11,'2021-10-07 14:59:39'),(69,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','K0B 1K0','L’Orignal',9.1600,1.3000,0.0000,12,'2021-11-29 18:12:44'),(70,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','K0B 1K0','L’Orignal',30.3300,1.3000,0.0000,12,'2021-11-29 18:12:44'),(71,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','K0B 1K0','L’Orignal',9.1600,1.3000,0.0000,12,'2021-11-29 18:13:30'),(72,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','K0B 1K0','L’Orignal',30.3300,1.3000,0.0000,12,'2021-11-29 18:13:30'),(73,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',22.7500,1.3000,0.0000,13,'2022-03-03 10:39:50'),(74,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',22.2000,1.3000,0.0000,13,'2022-03-03 10:39:50'),(75,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',13.1300,1.3000,0.0000,13,'2022-03-03 10:39:50'),(76,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',56.9700,1.3000,0.0000,13,'2022-03-03 10:39:50'),(77,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',22.7500,1.3000,0.0000,13,'2022-03-03 10:40:16'),(78,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',22.2000,1.3000,0.0000,13,'2022-03-03 10:40:16'),(79,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',13.1300,1.3000,0.0000,13,'2022-03-03 10:40:17'),(80,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',6.0000,3,'ON','K0C 1N0','Lancaster',56.9700,1.3000,0.0000,13,'2022-03-03 10:40:17'),(81,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',9.4200,1.3000,0.0000,14,'2022-03-22 14:42:39'),(82,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',32.8000,1.3000,0.0000,14,'2022-03-22 14:42:39'),(83,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',9.4200,1.3000,0.0000,14,'2022-03-22 14:47:53'),(84,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',32.8000,1.3000,0.0000,14,'2022-03-22 14:47:54'),(85,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',41.2600,1.3000,0.0000,15,'2022-05-12 10:24:22'),(86,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',40.3300,1.3000,0.0000,15,'2022-05-12 10:24:22'),(87,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',20.7900,1.3000,0.0000,15,'2022-05-12 10:24:22'),(88,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',79.8500,1.3000,0.0000,15,'2022-05-12 10:24:23'),(89,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',41.2600,1.3000,0.0000,15,'2022-05-12 10:25:27'),(90,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',40.3300,1.3000,0.0000,15,'2022-05-12 10:25:27'),(91,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',20.7900,1.3000,0.0000,15,'2022-05-12 10:25:27'),(92,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',34.0000,4,'ON','K0C 1N0','Lancaster',79.8500,1.3000,0.0000,15,'2022-05-12 10:25:27'),(93,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',228.0000,8,'ON','K0B 1K0','L’Orignal',129.8000,1.3000,0.0000,16,'2022-10-24 10:19:58'),(94,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',228.0000,8,'ON','K0B 1K0','L’Orignal',332.3200,1.3000,0.0000,16,'2022-10-24 10:19:58'),(95,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',228.0000,8,'ON','K0B 1K0','L’Orignal',129.8000,1.3000,0.0000,16,'2022-10-24 10:20:40'),(96,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',228.0000,8,'ON','K0B 1K0','L’Orignal',332.3200,1.3000,0.0000,16,'2022-10-24 10:20:40'),(97,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',15.8100,1.3000,0.0000,17,'2022-12-06 08:50:37'),(98,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',34.7700,1.3000,0.0000,17,'2022-12-06 08:50:37'),(99,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',15.8100,1.3000,0.0000,17,'2022-12-06 08:51:35'),(100,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',34.7700,1.3000,0.0000,17,'2022-12-06 08:51:35'),(101,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','L0S 1J0','Niagara-on-the-Lake',15.0900,1.3000,0.0000,18,'2023-04-05 15:02:47'),(102,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','L0S 1J0','Niagara-on-the-Lake',39.8900,1.3000,0.0000,18,'2023-04-05 15:02:47'),(103,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','L0S 1J0','Niagara-on-the-Lake',15.0900,1.3000,0.0000,18,'2023-04-05 15:05:07'),(104,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','L0S 1J0','Niagara-on-the-Lake',39.8900,1.3000,0.0000,18,'2023-04-05 15:05:07'),(105,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',25.9300,1.3000,0.0000,19,'2023-07-18 09:59:25'),(106,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',25.3100,1.3000,0.0000,19,'2023-07-18 09:59:25'),(107,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',19.2600,1.3000,0.0000,19,'2023-07-18 09:59:26'),(108,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',50.6900,1.3000,0.0000,19,'2023-07-18 09:59:26'),(109,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',25.9300,1.3000,0.0000,19,'2023-07-18 10:00:20'),(110,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',25.3100,1.3000,0.0000,19,'2023-07-18 10:00:20'),(111,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',19.2600,1.3000,0.0000,19,'2023-07-18 10:00:20'),(112,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',9.0000,3,'ON','K0C 1N0','Lancaster',50.6900,1.3000,0.0000,19,'2023-07-18 10:00:20'),(113,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',12.0000,2,'ON','K0C 1N0','Lancaster',30.2600,1.3000,0.0000,21,'2024-04-23 10:36:42'),(114,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',12.0000,2,'ON','K0C 1N0','Lancaster',30.9200,1.3000,0.0000,21,'2024-04-23 10:36:42'),(115,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',12.0000,2,'ON','K0C 1N0','Lancaster',19.1100,1.3000,0.0000,21,'2024-04-23 10:36:42'),(116,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',12.0000,2,'ON','K0C 1N0','Lancaster',50.6200,1.3000,0.0000,21,'2024-04-23 10:36:42'),(117,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',44.6500,1.3000,0.0000,22,'2024-05-08 14:26:20'),(118,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',43.6400,1.3000,0.0000,22,'2024-05-08 14:26:20'),(119,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',29.8700,1.3000,0.0000,22,'2024-05-08 14:26:20'),(120,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',77.4400,1.3000,0.0000,22,'2024-05-08 14:26:21'),(121,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',44.6500,1.3000,0.0000,22,'2024-05-08 14:26:48'),(122,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',43.6400,1.3000,0.0000,22,'2024-05-08 14:26:48'),(123,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',29.8700,1.3000,0.0000,22,'2024-05-08 14:26:48'),(124,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,6,'ON','K0B 1K0','L’Orignal',77.4400,1.3000,0.0000,22,'2024-05-08 14:26:48'),(125,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',13.4900,1.3000,0.0000,23,'2024-07-24 11:15:52'),(126,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',13.1700,1.3000,0.0000,23,'2024-07-24 11:15:52'),(127,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',14.2300,1.3000,0.0000,23,'2024-07-24 11:15:52'),(128,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',17.0000,1,'ON','L4B 4W5','Richmond Hill',37.4800,1.3000,0.0000,23,'2024-07-24 11:15:52'),(129,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',39.4400,1.3000,0.0000,24,'2024-07-24 18:59:40'),(130,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',40.2700,1.3000,0.0000,24,'2024-07-24 18:59:40'),(131,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',26.0200,1.3000,0.0000,24,'2024-07-24 18:59:40'),(132,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',67.5700,1.3000,0.0000,24,'2024-07-24 18:59:40'),(133,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',39.4400,1.3000,0.0000,24,'2024-07-24 19:01:34'),(134,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',40.2700,1.3000,0.0000,24,'2024-07-24 19:01:34'),(135,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',26.0200,1.3000,0.0000,24,'2024-07-24 19:01:34'),(136,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',28.0000,3,'ON','K0C 1N0','Lancaster',67.5700,1.3000,0.0000,24,'2024-07-24 19:01:34'),(137,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.6200,1.3000,0.0000,25,'2024-09-07 13:53:04'),(138,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.8800,1.3000,0.0000,25,'2024-09-07 13:53:05'),(139,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.9900,1.3000,0.0000,25,'2024-09-07 13:53:05'),(140,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',26.5400,1.3000,0.0000,25,'2024-09-07 13:53:05'),(141,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.8800,1.3000,0.0000,25,'2024-09-07 13:53:16'),(142,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.6200,1.3000,0.0000,25,'2024-09-07 13:53:16'),(143,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.9900,1.3000,0.0000,25,'2024-09-07 13:53:17'),(144,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',26.5400,1.3000,0.0000,25,'2024-09-07 13:53:17'),(145,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.4800,1.3000,0.0000,26,'2024-12-01 16:21:57'),(146,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.7400,1.3000,0.0000,26,'2024-12-01 16:21:57'),(147,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',12.5300,1.3000,0.0000,26,'2024-12-01 16:22:00'),(148,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',27.7400,1.3000,0.0000,26,'2024-12-01 16:22:00'),(149,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.4800,1.3000,0.0000,26,'2024-12-01 16:22:25'),(150,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.7400,1.3000,0.0000,26,'2024-12-01 16:22:25'),(151,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',12.5300,1.3000,0.0000,26,'2024-12-01 16:22:25'),(152,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',27.7400,1.3000,0.0000,26,'2024-12-01 16:22:25'),(153,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',30.6300,1.3000,0.0000,27,'2025-01-14 15:23:55'),(154,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',29.9000,1.3000,0.0000,27,'2025-01-14 15:23:55'),(155,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',19.5300,1.3000,0.0000,27,'2025-01-14 15:23:56'),(156,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',51.6900,1.3000,0.0000,27,'2025-01-14 15:23:57'),(157,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',29.9000,1.3000,0.0000,27,'2025-01-14 15:24:28'),(158,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',30.6300,1.3000,0.0000,27,'2025-01-14 15:24:28'),(159,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',19.5300,1.3000,0.0000,27,'2025-01-14 15:24:29'),(160,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',51.6900,1.3000,0.0000,27,'2025-01-14 15:24:29'),(161,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',19.8700,1.3000,0.0000,28,'2025-01-29 20:53:20'),(162,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',52.5900,1.3000,0.0000,28,'2025-01-29 20:53:21'),(163,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',19.8700,1.3000,0.0000,28,'2025-01-29 20:53:21'),(164,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',52.5900,1.3000,0.0000,28,'2025-01-29 20:53:21'),(165,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',19.8700,1.3000,0.0000,28,'2025-01-29 20:54:52'),(166,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',52.5900,1.3000,0.0000,28,'2025-01-29 20:54:52'),(167,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',19.8700,1.3000,0.0000,28,'2025-01-29 20:54:52'),(168,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',4.0000,2,'ON','K0B 1K0','L’Orignal',52.5900,1.3000,0.0000,28,'2025-01-29 20:54:53'),(169,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',12.7600,1.3000,0.0000,29,'2025-02-05 20:30:25'),(170,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',28.2300,1.3000,0.0000,29,'2025-02-05 20:30:25'),(171,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',12.7600,1.3000,0.0000,29,'2025-02-05 20:30:26'),(172,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',28.2300,1.3000,0.0000,29,'2025-02-05 20:30:26'),(173,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',11.9000,1.4500,0.0000,30,'2025-03-24 18:11:16'),(174,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',12.1600,1.4500,0.0000,30,'2025-03-24 18:11:16'),(175,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',12.6800,1.4500,0.0000,30,'2025-03-24 18:11:16'),(176,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',2.0000,1,'ON','L4B 4W5','Richmond Hill',28.0700,1.4500,0.0000,30,'2025-03-24 18:11:16'),(177,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',35.5000,1.4500,0.0000,31,'2025-04-03 13:16:12'),(178,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',34.7200,1.4500,0.0000,31,'2025-04-03 13:16:12'),(179,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',20.6600,1.4500,0.0000,31,'2025-04-03 13:16:13'),(180,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',54.0400,1.4500,0.0000,31,'2025-04-03 13:16:13'),(181,'PUROLATOR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',34.7200,1.4500,0.0000,31,'2025-04-03 13:24:33'),(182,'PUROLATOR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',35.5000,1.4500,0.0000,31,'2025-04-03 13:24:33'),(183,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',20.6600,1.4500,0.0000,31,'2025-04-03 13:24:33'),(184,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',22.0000,3,'ON','L0S 1J0','Niagara-on-the-Lake',54.0400,1.4500,0.0000,31,'2025-04-03 13:24:33'),(185,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',15.2800,1.4500,0.0000,32,'2025-08-01 13:57:49'),(186,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',34.4500,1.4500,0.0000,32,'2025-08-01 13:57:49'),(187,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',15.2800,1.4500,0.0000,32,'2025-08-01 13:57:50'),(188,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',34.4500,1.4500,0.0000,32,'2025-08-01 13:57:50'),(189,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',15.2800,1.4500,0.0000,32,'2025-08-01 13:59:06'),(190,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',34.4500,1.4500,0.0000,32,'2025-08-01 13:59:06'),(191,'CANPAR','Ground','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',15.2800,1.4500,0.0000,32,'2025-08-01 13:59:06'),(192,'CANPAR','Express','Creative Path','1455','16th Avenue','Richmond Hill','ON','CA','L4B4W5',3.0000,1,'ON','L0S 1J0','Niagara-on-the-Lake',34.4500,1.4500,0.0000,32,'2025-08-01 13:59:07');

--
-- Table structure for table `shipmentDetail`
--

CREATE TABLE `shipmentDetail` (
  `SHIPID` int NOT NULL,
  `SHIPLINE` int NOT NULL AUTO_INCREMENT,
  `ORDERID` int NOT NULL,
  `ORDERLINE` int NOT NULL,
  `SHIPQTY` int NOT NULL,
  PRIMARY KEY (`SHIPLINE`)
) ENGINE=InnoDB AUTO_INCREMENT=40 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shipmentDetail`
--

INSERT INTO `shipmentDetail` VALUES (1,1,7,10,500),(2,2,8,11,500),(3,3,9,12,250),(4,4,10,13,250),(4,5,10,14,250),(5,6,11,15,1000),(5,7,11,18,250),(5,8,11,19,250),(6,9,12,20,250),(7,10,13,21,250),(7,11,13,22,250),(7,12,13,23,250),(8,13,14,24,250),(9,14,15,25,500),(9,15,15,26,1000),(9,16,15,27,1000),(10,17,16,29,1000),(10,18,16,30,1000),(10,19,16,31,1000),(11,20,17,32,250),(12,21,18,33,250),(12,22,18,34,250),(13,23,19,35,500),(13,24,19,36,500),(13,25,19,37,500),(14,26,22,40,250),(14,27,22,41,250),(14,28,22,42,1000),(14,29,22,43,1000),(15,30,24,45,1000),(15,31,24,46,1000),(16,32,27,49,250),(16,33,27,50,250),(17,34,28,51,250),(17,35,28,52,250),(18,36,31,56,500),(18,37,31,57,500),(18,38,31,58,1000),(19,39,32,59,500);

--
-- Table structure for table `shipmentHeader`
--

CREATE TABLE `shipmentHeader` (
  `SHIPID` int NOT NULL AUTO_INCREMENT,
  `ORDERID` int NOT NULL,
  `TRACKNUM` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SHIPDATE` datetime NOT NULL,
  `SHIPMETHOD` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SHIPAMOUNT` decimal(16,2) NOT NULL,
  `SHIPWEIGHT` decimal(16,4) NOT NULL,
  `SHIPPIECES` int NOT NULL,
  `SHIPINSTRUCTIONS` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`SHIPID`)
) ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shipmentHeader`
--

INSERT INTO `shipmentHeader` VALUES (1,7,'D576002250000029132001','2020-12-04 16:20:03','Canpar Ground',0.00,0.0000,1,''),(2,8,'D576002250000031103001','2021-05-28 09:35:57','Canpar Ground',0.00,0.0000,1,''),(3,9,'D576002250000031176001','2021-06-02 13:38:27','Canpar Ground',0.00,0.0000,1,''),(4,10,'D576002250000031204001','2021-06-14 14:27:32','Canpar Ground',0.00,0.0000,1,''),(5,11,'D57600225 000 003 215 1001','2021-10-18 16:44:32','Ground',0.00,0.0000,1,''),(6,12,'D57600225 000 003 256 1001','2021-12-10 15:48:19','Ground',0.00,0.0000,1,''),(7,13,'D576002250000033109001','2022-03-09 17:34:02','Ground',0.00,0.0000,1,''),(8,14,'D 57600225 000 003 324 3001','2022-03-25 17:40:05','Ground',0.00,0.0000,1,''),(9,15,'D57600225 000 003 381 4001-02','2022-05-30 11:44:02','Ground',0.00,0.0000,2,'D576002250000033814001\nD576002250000033814002'),(10,16,'D57600225 000 003 502 0001-07','2022-10-31 10:45:56','Ground',0.00,0.0000,7,''),(11,17,'D57600225 000 003 535 9001','2022-12-12 13:32:54','Ground',0.00,0.0000,1,''),(12,18,'D57600225 000 003 631 2001','2023-04-12 12:27:09','Canpar Ground',0.00,0.0000,1,''),(13,19,'D57600225 000 003 712 4001','2023-07-24 11:31:15','Canpar Ground',0.00,0.0000,1,''),(14,22,'D57600225 000 003 961 1001-5','2024-05-13 14:06:20','Canpar Ground',0.00,0.0000,5,''),(15,24,'D76002250000040368001 - D76002250000040368002 - D76002250000040368003','2024-07-30 10:55:09','Canpar Ground',0.00,0.0000,3,''),(16,27,'D57600225000 004 209 6001','2025-01-22 19:07:08','Canpar Ground',0.00,0.0000,1,''),(17,28,'D57600225 000 004 221 9001','2025-02-05 19:03:41','Canpar Ground',0.00,0.0000,1,''),(18,31,'D57600225 000 004 263 4001','2025-04-11 18:30:45','Canpar Ground',0.00,0.0000,1,''),(19,32,'D57600225 000 004 350 7001','2025-08-07 15:58:44','Canpar Ground',0.00,0.0000,1,'');

--
-- Table structure for table `shippingGroup`
--

CREATE TABLE `shippingGroup` (
  `SGRPNAME` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SGRPPIECES` int NOT NULL,
  `SGRPBOXTYPE` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `SGRPWEIGHTPIECE` decimal(19,4) NOT NULL,
  PRIMARY KEY (`SGRPNAME`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shippingGroup`
--


--
-- Table structure for table `shippingGroupItems`
--

CREATE TABLE `shippingGroupItems` (
  `SGRPNAME` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `ITEMID` int NOT NULL,
  PRIMARY KEY (`ITEMID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `shippingGroupItems`
--


--
-- Table structure for table `subcategories`
--

CREATE TABLE `subcategories` (
  `SUBCATID` int NOT NULL AUTO_INCREMENT,
  `CATID` int NOT NULL,
  `NAME` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `DESCRIPTION` varchar(200) COLLATE utf8mb3_unicode_ci NOT NULL,
  `PARENTSUBCATID` int NOT NULL DEFAULT '-1',
  `ICONURL` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT '',
  `USERLEVEL` int NOT NULL DEFAULT '0',
  PRIMARY KEY (`SUBCATID`)
) ENGINE=InnoDB AUTO_INCREMENT=56 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `subcategories`
--

INSERT INTO `subcategories` VALUES (51,10,'Business Card',' ',-1,'',0),(52,11,'Stationery','Stationery',-1,'',0),(53,11,'Envelopes','Envelopes',52,'',0),(54,11,'Presentation Folder','Presentation Folder',52,'',0),(55,11,'Letterhead','Letterhead',52,'',0);

--
-- Table structure for table `taxes`
--

CREATE TABLE `taxes` (
  `TAXCODE` varchar(6) COLLATE utf8mb3_unicode_ci NOT NULL,
  `TAXGROUPNAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `TAXNAME1` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `TAXNAME2` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `TAXNAME3` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `TAXNAME4` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `TAXNAME5` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT '',
  `TAXRATE1` decimal(19,5) NOT NULL DEFAULT '0.00000',
  `TAXRATE2` decimal(19,5) NOT NULL DEFAULT '0.00000',
  `TAXRATE3` decimal(19,5) NOT NULL DEFAULT '0.00000',
  `TAXRATE4` decimal(19,5) NOT NULL DEFAULT '0.00000',
  `TAXRATE5` decimal(19,5) NOT NULL DEFAULT '0.00000',
  PRIMARY KEY (`TAXCODE`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `taxes`
--

INSERT INTO `taxes` VALUES ('AB','AB','GST','','','','',0.05000,0.00000,0.00000,0.00000,0.00000),('BC','BC','GST','PST','','','',0.05000,0.07000,0.00000,0.00000,0.00000),('MB','MB','GST','PST','','','',0.05000,0.07000,0.00000,0.00000,0.00000),('NB','NB','HST','','','','',0.15000,0.00000,0.00000,0.00000,0.00000),('NL','NL','HST','','','','',0.15000,0.00000,0.00000,0.00000,0.00000),('NOTAX','NOTAX','','','','','',0.00000,0.00000,0.00000,0.00000,0.00000),('NS','NS','HST','','','','',0.14000,0.00000,0.00000,0.00000,0.00000),('NT','NT','GST','','','','',0.05000,0.00000,0.00000,0.00000,0.00000),('NU','NU','GST','','','','',0.05000,0.00000,0.00000,0.00000,0.00000),('ON','ON','HST','','','','',0.13000,0.00000,0.00000,0.00000,0.00000),('PE','PE','HST','','','','',0.15000,0.00000,0.00000,0.00000,0.00000),('QC','QC','GST','QST','','','',0.05000,0.09975,0.00000,0.00000,0.00000),('SK','SK','GST','PST','','','',0.05000,0.06000,0.00000,0.00000,0.00000),('YT','YT','GST','','','','',0.05000,0.00000,0.00000,0.00000,0.00000);

--
-- Table structure for table `ticketAttachment`
--

CREATE TABLE `ticketAttachment` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `TICKETID` int DEFAULT NULL,
  `MESSAGEID` int DEFAULT NULL,
  `STOREFILENAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  `ORIGFILENAME` varchar(200) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `ticketAttachment`
--


--
-- Table structure for table `ticketDetail`
--

CREATE TABLE `ticketDetail` (
  `MESSAGEID` int NOT NULL AUTO_INCREMENT,
  `TICKETID` int NOT NULL,
  `DATEENTERED` datetime NOT NULL,
  `ENTEREDBY` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `CLIENTMESSAGE` int NOT NULL,
  `MESSAGE` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL,
  PRIMARY KEY (`MESSAGEID`,`TICKETID`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `ticketDetail`
--

INSERT INTO `ticketDetail` VALUES (1,1,'2021-11-29 13:10:37','champlain',1,'Hi\nI am wondering if is it possible to have a business card made for my IPAC Manager with one side French reflecting the Champlain LTC information and on the opposite side, have the Lancaster LTC information in English?\nFrench: Jennifer Dupuis, IA, Gestionnaire IPAC, jennifer.dupuis@champlainltc.ca (ChamplainLTC - 428 Front Road West, L\'Orignal On....)\nEnglish: Jennifer Dupuis, RN, IPAC Manager, jennifer.dupuis@lancasterltc.ca (Lancaster LTC - 105 Military Rd N, Lancaster, ON K0C 1N0 ....) If there are any questions, please feel free in contacting myself at 613-675-4617 ext 22\nThank you and have a great afternoon\nFanny van den Oetelaar ED/DOC at Champlain LTC in L\'Orignal On'),(2,2,'2023-04-05 11:55:16','niagara',1,'I am trying to create the artwork for our new Staff Development co-ordinator and her email address is too long.  Can the font be made smaller to accommodate this?  Her name is Catherine Patterson.  I can split her name over two lines, however I have not been  able to find a way to make her email address (which is her name) work.'),(3,2,'2023-04-05 12:28:04','peggy',0,'Hi, \r\n\r\nWe have edited the templete of the business card, can you try it and see is it fix for Catherine Patterson? Thanks'),(4,2,'2023-04-05 14:30:46','niagara',1,'Thank you. It worked just fine.'),(5,3,'2023-12-14 15:19:52','champlain',1,'When doing bilingual card email on french side showning Bonair not champlainltc '),(6,3,'2023-12-14 15:23:42','peggy',0,'Hi, Please try again. It should be the same now. Thanks');

--
-- Table structure for table `ticketHeader`
--

CREATE TABLE `ticketHeader` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `ENTEREDBY` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `DATEENTERED` datetime NOT NULL,
  `STATUS` int NOT NULL,
  `TITLE` varchar(1000) COLLATE utf8mb3_unicode_ci NOT NULL,
  `DATECLOSED` datetime DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `ticketHeader`
--

INSERT INTO `ticketHeader` VALUES (1,'champlain','2021-11-29 13:10:37',0,'Champlain LTC business card','2021-11-30 10:37:12'),(2,'niagara','2023-04-05 11:55:16',0,'SDC business card','2023-12-14 15:21:19'),(3,'champlain','2023-12-14 15:19:52',1,'Wrong email address on French card ',NULL);

--
-- Table structure for table `user`
--

CREATE TABLE `user` (
  `USERNAME` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `BRANCH` varchar(20) COLLATE utf8mb3_unicode_ci NOT NULL,
  `PASSWORD` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `PLAINPASSWORD` varchar(50) COLLATE utf8mb3_unicode_ci NOT NULL,
  `FIRSTNAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `LASTNAME` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `EMAIL` varchar(100) COLLATE utf8mb3_unicode_ci NOT NULL,
  `LANGUAGE` varchar(2) COLLATE utf8mb3_unicode_ci NOT NULL DEFAULT 'EN',
  `USERLEVEL` int NOT NULL DEFAULT '0',
  `CREATEDDATE` datetime DEFAULT NULL,
  `MODIFIEDDATE` datetime DEFAULT NULL,
  `STATUS` int NOT NULL,
  `COMMENTS` varchar(1000) COLLATE utf8mb3_unicode_ci DEFAULT NULL,
  PRIMARY KEY (`USERNAME`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;

--
-- Dumping data for table `user`
--

INSERT INTO `user` VALUES ('bonair','bonair','*2A1D48F2AEF16A15F4A05BE407E99FEFC3BDBF5D','rc2385','Angie','Rodrigues','angela.rodrigues@bonairltc.ca','EN',1,NULL,NULL,1,''),('champlain','champlain','*FEE0F99694C604DD77110F6EC7D25684172BD7B3','rc4617','Dany','Roussel','dany.roussel@champlainltc.ca','EN',1,NULL,NULL,1,''),('Demo','Demo','*E12BA429616A9EC6A279F2D578507FEDF837F403','Demo','Demo','Demo','peggy@creativepath.com','EN',0,NULL,NULL,1,''),('eric','CPDI','*C5EC559C0EA7C49430B0006B94ACD3B9DD1D4F9D','E6359S','Eric','Sin','erics@creativepath.com','EN',99,'2019-05-15 20:24:04','2021-04-15 14:07:09',1,'CPDI'),('jen','CPDI','*1B971235F80D472237329258498BAF8F1D43BE0D','Hl5982','Jen','Lor','jennifer@cpfulfillment.com','EN',81,'2022-04-22 16:59:26','2022-04-22 16:59:53',1,'CPDI'),('lancaster','lancaster','*3D981635F8F6A4A77A6FCE807021284C96CEC6FD','rc3016','Nicole','Brodeur','nicole.brodeur@lancasterltc.ca','EN',1,NULL,'2024-07-24 11:09:43',1,''),('miir','CPDI','*3B06CA329998DCF7B3AD9E850D9D3F120B0AC356','miir2280','Miranda','Lee','miranda@creativepath.com','EN',81,'2024-07-24 15:41:15','2024-07-24 15:41:33',1,'CPDI'),('niagara','niagara','*F61DC5967EC2EBB762F0BA2EE64DAD28CBE4CBF2','rc2111','Chris','Poos','chris.poos@niagaraltc.ca','EN',1,NULL,'2020-11-18 15:09:28',1,''),('patrick','CPDI','*04AE7ABE88B8C7F153AD654C1410AFFC6072339B','cpdi905711','Patrick','Sinn','patrick@creativepath.com','EN',99,'2017-01-21 20:14:11','2021-04-15 14:07:22',1,'CPDI'),('peggy','CPDI','*A45967DAC55BE870539FA0BA1B8AF799AD65EBB8','momo73449','Peggy','Cheng','peggy@creativepath.com','EN',99,'2017-01-21 20:14:11','2024-05-27 13:45:39',1,'CPDI'),('rhm','rhm','*657FDDE47C1E6AE90861884F375B7F18B5AB539B','rhm3445','Liz','Borges','liz.borges@responsivehealth.ca','EN',50,'2020-10-30 11:49:19','2020-10-30 11:50:15',1,''),('Sam','CPDI','*48910925EF9C280FA11348D3968E9F9B2E98E539','sam8500','Sam','Stratigeas','sam@samstratigeas.ca','EN',99,'2022-04-18 14:41:28','2022-04-18 14:41:43',1,'CPDI'),('Winnie','CPDI','*E6527B901E89F46E6CD0F2B56FE66B573BBF17F7','ww236','Winnie','Wu','winnie@creativepath.com','EN',1,'2020-10-30 11:57:36','2021-04-15 15:24:32',1,'CPDI'),('zoeyc','CPDI','*C7C2E49F12068D26F3FB0709B11EBB4516B3BE98','zc5689','Zoey','C','zoeyc@cpfulfillment.com','EN',99,'2023-06-26 13:28:41','2023-06-26 13:29:00',1,'CPDI');

--
-- Dumping routines for database 'cpfulfillment_PrintOS_Responsive'
--
/*!50003 DROP PROCEDURE IF EXISTS `AddDownloadLogEntry` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `AddDownloadLogEntry`(__USERNAME VARCHAR(50), __ITEMID INT)
BEGIN
	INSERT INTO 
		downloadLog
        (USERNAME,BRANCHCODE,ITEMID,LOGTIME)
	SELECT
		USERNAME,
        BRANCH,
        __ITEMID,
        CURRENT_TIMESTAMP
	FROM
		user
	WHERE
		USERNAME = __USERNAME;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `AddItemToCart` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `AddItemToCart`(__USERNAME VARCHAR(50), __ITEMID INT, __PROOF VARCHAR(200), __QTY INT, __ITEMOPTION VARCHAR(30), __ADDCOST DECIMAL)
BEGIN



SELECT @ORDERNUM := COUNT(*) FROM orderHeader WHERE USERNAME = __USERNAME AND ORDERSTATUS = 'CART';


SELECT @LOTPRICE := COUNT(*) FROM itemPricing WHERE ITEMID = __ITEMID AND QTY = __QTY AND ITEMOPTION = __ITEMOPTION;
SELECT @VARPRICE := COUNT(*) FROM itemPricing WHERE ITEMID = __ITEMID AND QTY = -1 AND ITEMOPTION = __ITEMOPTION;


IF @ORDERNUM = 0 THEN
 INSERT INTO
 orderHeader
 (USERNAME,ORDERDATE,ORDERMODIFIED,PONUMBER,SHIPCONTACTFIRSTNAME,SHIPCONTACTLASTNAME,SHIPCONTACTPHONE,SHIPCONTACTFAX,SHIPCONTACTEMAIL,
 SHIPNAME,SHIPADDRESS,SHIPADDRESS2,SHIPCITY,SHIPPROVINCE,SHIPCOUNTRY,SHIPPOSTAL,SHIPTAXGROUP,ORDERSTATUS,SHIPSTOREID,
 REQCONTACTFIRSTNAME,REQCONTACTLASTNAME,REQCONTACTPHONE,REQCONTACTFAX,
 REQNAME,REQADDRESS,REQADDRESS2,REQCITY,REQPROVINCE,REQCOUNTRY,REQPOSTAL)
 SELECT
 __USERNAME AS USERNAME ,
 CURRENT_TIMESTAMP AS ORDERDATE,
 CURRENT_TIMESTAMP AS ORDERMODIFIED,
 '' AS PONUMBER,
 USER.FIRSTNAME AS SHIPCONTACTFIRSTNAME,
 USER.LASTNAME AS SHIPCONTACTLASTNAME,
 BADDR.PHONE AS SHIPCONTACTPHONE,
 BADDR.FAX AS SHIPCONTACTFAX,
 USER.EMAIL AS SHIPCONTACTEMAIL,
 BINFO.NAME AS SHIPNAME,
 BADDR.ADDRESS AS SHIPADDRESS,
 BADDR.ADDRESS2 AS SHIPADDRESS2,
 BADDR.CITY AS SHIPCITY,
 BADDR.PROVINCE AS SHIPPROVINCE,
 BADDR.COUNTRY AS SHIPCOUNTRY,
 BADDR.POSTALCODE AS SHIPPOSTAL,
 BINFO.TAXGROUP AS SHIPTAXGROUP,
        'CART' AS ORDERSTATUS,
        BINFO.CODE AS SHIPSTOREID,
		USER.FIRSTNAME AS REQCONTACTFIRSTNAME,
        USER.LASTNAME AS REQCONTACTLASTNAME,
        BADDR.PHONE AS REQCONTACTPHONE,
        BADDR.FAX AS REQCONTACTFAX,
		BINFO.NAME AS REQNAME,
        BADDR.ADDRESS AS REQADDRESS,
        BADDR.ADDRESS2 AS REQADDRESS2,
        BADDR.CITY AS REQCITY,
        BADDR.PROVINCE AS REQPROVINCE,
        BADDR.COUNTRY AS REQCOUNTRY,
        BADDR.POSTALCODE AS REQPOSTAL        
	FROM
		user USER
	INNER JOIN
		branches BINFO ON 
			USER.BRANCH = BINFO.CODE
	INNER JOIN
		branchesAddresses BADDR ON 
			USER.BRANCH = BADDR.CODE 
	WHERE
		USER.USERNAME  = __USERNAME AND
        BADDR.ISMAIN = 1
    ;
END IF;


SELECT @ORDERID := ORDERID FROM orderHeader WHERE USERNAME = __USERNAME AND ORDERSTATUS = 'CART';


IF @LOTPRICE > 0 THEN

	INSERT INTO
		orderDetail
			(ORDERID,ITEMID,ITEMCODE,ITEMDESC,ORDERQTY,SHIPTODATEQTY,UNITPRICE,EXTPRICE,
             TAXAMT1,TAXAMT2,TAXAMT3,TAXAMT4,TAXAMT5,ITEMLENGTH,ITEMWIDTH,ITEMHEIGHT,ITEMWEIGHT,ITEMPIECES,PROOFCONFIRMATION,ITEMOPTION)
	SELECT
		@ORDERID AS ORDERID,
        ITEM.ID AS ITEMID,
        ITEM.CODE AS ITEMCODE,
        ITEM.DESCRIPTION AS ITEMDESC,
        ITEMPRICE.QTY AS ORDERQTY,
        0 AS SHIPTODATEQTY,
        (ITEMPRICE.PRICE / ITEMPRICE.QTY) + (__ADDCOST / ITEMPRICE.QTY) AS UNITPRICE,
        ITEMPRICE.PRICE + __ADDCOST AS EXTPRICE,
		0 AS TAXAMT1,
        0 AS TAXAMT2,
        0 AS TAXAMT3,
        0 AS TAXAMT4,
        0 AS TAXAMT5,
        ITEMPRICE.LENGTH AS ITEMLENGTH,
        ITEMPRICE.WIDTH AS ITEMWIDTH,
        ITEMPRICE.HEIGHT AS ITEMHEIGHT,
        ITEMPRICE.WEIGHT AS ITEMWEIGHT,
        ITEMPRICE.PIECES AS ITEMPIECES,
        __PROOF AS PROOFCONFIRMATION,
        ITEMPRICE.ITEMOPTION AS ITEMOPTION
	FROM
		items ITEM
	INNER JOIN
		itemPricing ITEMPRICE ON 
			ITEM.ID = ITEMPRICE.ITEMID
	WHERE
		ITEM.ID = __ITEMID AND
        ITEMPRICE.QTY = __QTY AND
        ITEMPRICE.ITEMOPTION = __ITEMOPTION;
        
ELSEIF @VARPRICE > 0 AND @LOTPRICE = 0 THEN

INSERT INTO
		orderDetail
			(ORDERID,ITEMID,ITEMCODE,ITEMDESC,ORDERQTY,SHIPTODATEQTY,UNITPRICE,EXTPRICE,
             TAXAMT1,TAXAMT2,TAXAMT3,TAXAMT4,TAXAMT5,ITEMLENGTH,ITEMWIDTH,ITEMHEIGHT,ITEMWEIGHT,ITEMPIECES,PROOFCONFIRMATION,ITEMOPTION)
	SELECT
		@ORDERID AS ORDERID,
        ITEM.ID AS ITEMID,
        ITEM.CODE AS ITEMCODE,
        ITEM.DESCRIPTION AS ITEMDESC,
        __QTY AS ORDERQTY,
        0 AS SHIPTODATEQTY,
        ITEMPRICE.PRICE + __ADDCOST AS UNITPRICE,
        (ITEMPRICE.PRICE + __ADDCOST) * __QTY AS EXTPRICE,
		0 AS TAXAMT1,
        0 AS TAXAMT2,
        0 AS TAXAMT3,
        0 AS TAXAMT4,
        0 AS TAXAMT5,
        ITEMPRICE.LENGTH AS ITEMLENGTH,
        ITEMPRICE.WIDTH AS ITEMWIDTH,
        ITEMPRICE.HEIGHT AS ITEMHEIGHT,
        ITEMPRICE.WEIGHT * __QTY AS ITEMWEIGHT,
        ITEMPRICE.PIECES AS ITEMPIECES,
        __PROOF AS PROOFCONFIRMATION,
        ITEMPRICE.ITEMOPTION AS ITEMOPTION
	FROM
		items ITEM
	INNER JOIN
		itemPricing ITEMPRICE ON 
			ITEM.ID = ITEMPRICE.ITEMID
	WHERE
		ITEM.ID = __ITEMID AND
        ITEMPRICE.QTY = -1 AND 
        ITEMPRICE.ITEMOPTION = __ITEMOPTION;

ELSE 
	SIGNAL SQLSTATE '45000'
		SET MESSAGE_TEXT = 'Invalid Pricing Found For Item';
END IF;  

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `AddReportingExtraData` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `AddReportingExtraData`(__USERNAME VARCHAR(20), __EXTRADATA VARCHAR(100))
BEGIN

SET SQL_SAFE_UPDATES = 0;

UPDATE
	orderHeader
SET
	EXTRADATA1 = __EXTRADATA
WHERE 
	USERNAME  = __USERNAME AND 
    ORDERSTATUS = 'CART';

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `AddShipmentCostEntry` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `AddShipmentCostEntry`(__CARRIER VARCHAR(100), __METHOD VARCHAR(100),
__SHIPFROM_NAME VARCHAR(100), __SHIPFROM_STREETNUM VARCHAR(100), __SHIPFROM_STREET VARCHAR(100),
__SHIPFROM_CITY VARCHAR(100), __SHIPFROM_PROVINCE VARCHAR(100), __SHIPFROM_COUNTRY VARCHAR(100),
__SHIPFROM_POSTAL VARCHAR(100), __TOTALWEIGHT DECIMAL(19,4), __TOTALBOXES DECIMAL(19,4),
__SHIPTO_PROVINCE VARCHAR(100), __SHIPTO_POSTAL VARCHAR(100), __SHIPTO_CITY VARCHAR(100),
__TOTALPRICE DECIMAL(19,4), __OURMARUP DECIMAL(19,4), __OURSLEEVECHARGE DECIMAL(19,4),
__ORDERID INT)
BEGIN
INSERT INTO `shipmentCostLog`
(
`CARRIER`,
`METHOD`,
`SHIPFROM_NAME`,
`SHIPFROM_STREETNUM`,
`SHIPFROM_STREET`,
`SHIPFROM_CITY`,
`SHIPFROM_PROVINCE`,
`SHIPFROM_COUNTRY`,
`SHIPFROM_POSTAL`,
`TOTALWEIGHT`,
`TOTALBOXES`,
`SHIPTO_PROVINCE`,
`SHIPTO_POSTAL`,
`SHIPTO_CITY`,
`TOTALPRICE`,
`OURMARKUP`,
`OURSLEEVECHARGE`,
`ORDERID`,
`CREATEDATETIME`)
VALUES
(
__CARRIER,
__METHOD,
__SHIPFROM_NAME,
__SHIPFROM_STREETNUM,
__SHIPFROM_STREET,
__SHIPFROM_CITY,
__SHIPFROM_PROVINCE,
__SHIPFROM_COUNTRY,
__SHIPFROM_POSTAL,
__TOTALWEIGHT,
__TOTALBOXES,
__SHIPTO_PROVINCE,
__SHIPTO_POSTAL,
__SHIPTO_CITY,
__TOTALPRICE,
__OURMARUP,
__OURSLEEVECHARGE,
__ORDERID,
CURRENT_TIMESTAMP);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `AdjustItemQty` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `AdjustItemQty`(__ITEMID INT, __QTY INT, __REASON VARCHAR(200))
BEGIN
	UPDATE 
		itemsInventory
	SET
		QTYONHAND = QTYONHAND + __QTY
	WHERE
		ITEMID = __ITEMID;
            
	INSERT INTO 
		itemsAdjustmentLog
       (ITEMID,QTY,ADJDATE,REASON)
	VALUES 
		(__ITEMID,__QTY,CURRENT_TIMESTAMP,__REASON);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ApplyPromoCode` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `ApplyPromoCode`(__USERNAME VARCHAR(50), __PROMO VARCHAR(50))
BEGIN
 SET @RESULT = '';
 
 SET @ORDERID = (SELECT ORDERID FROM orderHeader WHERE ORDERSTATUS = 'CART' AND USERNAME = __USERNAME);
 SET @PROMOTYPE= (SELECT CODETYPE FROM promos WHERE CODE = __PROMO);
 SET @CHKCOUNT= (SELECT COUNT(*) FROM promos WHERE CODE = __PROMO);
 SET @CHKREDEEMED= (SELECT COUNT(*) FROM promos WHERE CODE = __PROMO AND REDEEMED = 0);
 SET @CHKDATES= (SELECT COUNT(*) FROM promos WHERE CODE = __PROMO AND STARTDATE <= CURRENT_TIMESTAMP AND ENDDATE >= CURRENT_TIMESTAMP);
 SET @CHKPROMOCOUNT= (SELECT COUNT(*) FROM orderPromos WHERE ORDERID = @ORDERID);
 SET @CHKITEMCOUNT= (SELECT COUNT(*) 
 FROM orderDetail D 
 INNER JOIN items I ON D.ITEMID = I.ID 
 INNER JOIN promosItems PI ON (PI.ITEMID = I.ID OR PI.ITEMID = I.PARENTITEM) 
 INNER JOIN promos PIHDR ON PI.CODE = PIHDR.CODE
 WHERE 
 ORDERID = @ORDERID AND 
 PI.CODE = __PROMO AND
 ((PIHDR.QTYTYPE = '' AND (PIHDR.MAXQTY = 0 OR ORDERQTY <= PIHDR.MAXQTY)) OR PIHDR.QTYTYPE = 'NOLIMIT' OR (PIHDR.QTYTYPE = 'EXACT' AND ORDERQTY = PIHDR.EXACTQTY) OR (PIHDR.QTYTYPE = 'RANGE' AND PIHDR.MINQTY <= ORDERQTY AND ORDERQTY <= PIHDR.MAXQTY))
 ); 
SET @CHKALLCATCOUNT= (SELECT
COUNT(*)
FROM orderDetail D 
INNER JOIN items I ON D.ITEMID = I.ID 
INNER JOIN itemsSubcategoryLink ISL ON I.ID = ISL.ITEMID
INNER JOIN subcategories SUBCATS ON ISL.SUBCATID = SUBCATS.SUBCATID
CROSS JOIN (SELECT * FROM promos WHERE CODE = __PROMO) PROMO 
WHERE
D.ORDERID = @ORDERID AND 
SUBCATS.CATID NOT IN (SELECT CATID FROM promos PIHDR INNER JOIN promosCategories PC ON PC.CODE = PIHDR.CODE WHERE PC.CODE = __PROMO) AND
((PROMO.QTYTYPE = '' AND (PROMO.MAXQTY = 0 OR ORDERQTY <= PROMO.MAXQTY)) OR PROMO.QTYTYPE = 'NOLIMIT' OR (PROMO.QTYTYPE = 'EXACT' AND ORDERQTY = PROMO.EXACTQTY) OR (PROMO.QTYTYPE = 'RANGE' AND PROMO.MINQTY <= ORDERQTY AND ORDERQTY <= PROMO.MAXQTY))
);
SET @CHKNOTITEMCOUNT= (SELECT COUNT(*)
 FROM orderDetail D 
 INNER JOIN items I ON D.ITEMID = I.ID 
 INNER JOIN promos PIHDR ON PIHDR.CODE = __PROMO
 LEFT OUTER JOIN promosItems PI ON (PI.ITEMID = I.ID OR PI.ITEMID = I.PARENTITEM) 
 WHERE 
 ORDERID = @ORDERID AND 
 PI.ITEMID IS NULL AND 
 ((PIHDR.QTYTYPE = '' AND (PIHDR.MAXQTY = 0 OR ORDERQTY <= PIHDR.MAXQTY)) OR PIHDR.QTYTYPE = 'NOLIMIT' OR (PIHDR.QTYTYPE = 'EXACT' AND ORDERQTY = PIHDR.EXACTQTY) OR (PIHDR.QTYTYPE = 'RANGE' AND PIHDR.MINQTY <= ORDERQTY AND ORDERQTY <= PIHDR.MAXQTY))
 ); 

  IF @CHKCOUNT=0 THEN
    SET @RESULT = 'NOEXIST';
  ELSEIF @CHKDATES = 0 THEN 
    SET @RESULT = 'NOTACTIVEDATE';
  ELSEIF @CHKREDEEMED = 0 THEN 
    SET @RESULT = 'ALREADYREDEEMED';        
  ELSEIF @CHKPROMOCOUNT > 0 THEN 
    SET @RESULT = 'ALREADYPROMO';   
  ELSEIF @CHKITEMCOUNT = 0 AND (@PROMOTYPE = 'ITM$DISC' OR @PROMOTYPE = 'ITM%DISC') THEN
    SET @RESULT = 'NOVALIDITEMS';
  ELSEIF @CHKALLCATCOUNT = 0 AND (@PROMOTYPE = 'ALLCAT$DISC' OR @PROMOTYPE = 'ALLCAT%DISC') THEN
    SET @RESULT = 'NOVALIDITEMS'; 
  ELSEIF @CHKNOTITEMCOUNT = 0 AND (@PROMOTYPE = 'ALLITM$DISC' OR @PROMOTYPE = 'ALLITM%DISC') THEN
    SET @RESULT = 'NOVALIDITEMS';
  ELSE
    SET @RESULT = 'OK';
        INSERT INTO orderPromos
        (ORDERID,PROMOCODE,PROMONAME,SINGLEITEM,PROMOTYPE,PROMOVALUE,CALCDISCOUNT,
         TAXAMT1,TAXAMT2,TAXAMT3,TAXAMT4,TAXAMT5)
    SELECT
      @ORDERID,CODE,NAME,SINGLEITEM,CODETYPE,PROMOVALUE,0.00,0.00,0.00,0.00,0.00,0.00
    FROM
      promos
    WHERE 
      CODE = __PROMO;
        
        UPDATE promos SET REDEEMED = 1 WHERE CODE = __PROMO AND SINGLEUSE = 1;
        
  END IF;

  SELECT @RESULT AS RESULT;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ApproveItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ApproveItem`(__CODE VARCHAR(200))
BEGIN

	SELECT
		ITEM.ID AS ITEMID,
        USERS.EMAIL AS USEREMAIL,
        ITEM.DISPLAYIMAGEPATH
	FROM
		items ITEM 
	INNER JOIN
		user USERS ON 
			USERS.USERNAME = ITEM.GENERATEDBY
	WHERE 
		APPROVALLINK = __CODE;

	UPDATE
		items
	SET
		ASSETAPPROVED = 1,
        APPROVALLINK = NULL
	WHERE
		APPROVALLINK = __CODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ApproveOrder` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `ApproveOrder`(__APPROVALLINK NVARCHAR(100))
BEGIN

SET @ORDERREF = IFNULL((SELECT MAX(ORDERREF)+1 FROM orderHeader),10000);
UPDATE orderDetail
    SET 
        SHIPTODATEQTY = ORDERQTY,
        DOWNLOADLINK = CONCAT(ORDERID,'-',ITEMLINE,'-',MD5(MD5(MD5(NOW())+ORDERID)+ITEMLINE))
  WHERE
    ORDERQTY = -2 AND
        ORDERID IN (SELECT ORDERID FROM orderHeader WHERE APPROVALLINK  COLLATE utf8_unicode_ci = __APPROVALLINK AND APPROVALLINK IS NOT NULL);    

UPDATE
  orderHeader
SET
  ORDERREF = @ORDERREF
WHERE
  APPROVALLINK  COLLATE utf8_unicode_ci = __APPROVALLINK AND
    APPROVALLINK IS NOT NULL;


SELECT
  HDR.*,
    DTL.*,
    ITEM.TYPE,
    USER.FIRSTNAME AS USER_FIRSTNAME,
    USER.LASTNAME AS USER_LASTNAME,
    USER.EMAIL AS USER_EMAIL,
    USER.LANGUAGE AS USER_LANGUAGE,
    BRANCH.NAME AS BRANCH_NAME,
    BRANCH.MANAGEMENTEMAIL AS BRANCH_MANAGEMENTEMAIL,
    COALESCE(BRANCHADDRESS.LANGUAGE,'EN') AS BRANCH_LANGUAGE,
    'ACTIVE' AS REALSTATUS,
    COALESCE(ITEM.DLSUGGESTIONS,'') AS DLSUGGESTIONS
FROM
  orderHeader HDR
INNER JOIN
  orderDetail DTL ON 
    HDR.ORDERID = DTL.ORDERID
INNER JOIN
  items ITEM ON 
    DTL.ITEMID = ITEM.ID        
INNER JOIN
  user USER ON 
    HDR.USERNAME = USER.USERNAME
INNER JOIN
  branches BRANCH ON 
    USER.BRANCH = BRANCH.CODE
LEFT OUTER JOIN
  (SELECT * FROM branchesAddresses WHERE ISMAIN = 1) BRANCHADDRESS ON 
    BRANCH.CODE = BRANCHADDRESS.CODE
WHERE
  HDR.APPROVALLINK  COLLATE utf8_unicode_ci = __APPROVALLINK AND
    HDR.APPROVALLINK IS NOT NULL;
      
SELECT @SHIPLINECOUNT := COUNT(*) FROM orderDetail 
    WHERE ORDERQTY <> -2 AND
        ORDERID IN (SELECT ORDERID FROM orderHeader WHERE APPROVALLINK  COLLATE utf8_unicode_ci = __APPROVALLINK AND APPROVALLINK IS NOT NULL);
      
      
UPDATE
  orderHeader
SET
  APPROVALLINK = NULL,
    ORDERSTATUS = CASE WHEN @SHIPLINECOUNT = 0 THEN 'SHIPPED' ELSE 'ACTIVE' END,
    ORDERMODIFIED = CURRENT_TIMESTAMP,
    APPROVALDATE = CURRENT_TIMESTAMP
WHERE
  APPROVALLINK  COLLATE utf8_unicode_ci = __APPROVALLINK AND
    APPROVALLINK IS NOT NULL; 

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ArchiveItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ArchiveItem`(__ITEMID INT, __USERNAME VARCHAR(50))
BEGIN

	UPDATE
		items
	SET
		ARCHIVED = 1
	WHERE
		ID = __ITEMID AND
        ID IN (SELECT ITEMID FROM itemsBranchesLink LINK INNER JOIN user USR ON LINK.BRANCHCODE = USR.BRANCH WHERE USR.USERNAME = __USERNAME);

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CancelRemaindingOrder` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CancelRemaindingOrder`(__ORDERID INT)
BEGIN

UPDATE
	orderHeader
SET
	ORDERSTATUS = 'CANCELLED',
    SPECIALINSTRUCTIONS = 'Order Cancelled on ' + CURRENT_TIMESTAMP
    
WHERE
	ORDERID = __ORDERID;

UPDATE
	orderDetail
SET
	ORDERQTY = SHIPTODATEQTY
WHERE
	ORDERID = __ORDERID;
    
SELECT * FROM orderHeader WHERE ORDERID = __ORDERID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ChangeAccountTicketStatus` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ChangeAccountTicketStatus`(__TICKETID INT, __STATUS INT)
BEGIN

	UPDATE
		accountMgrHeader
	SET
		STATUS = __STATUS,
        DATECLOSED = CURRENT_TIMESTAMP
	WHERE
		ID = __TICKETID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ChangeOrderShipToAddress` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ChangeOrderShipToAddress`(__USERNAME VARCHAR(50), __ID VARCHAR(50))
BEGIN


SET SQL_SAFE_UPDATES = 0;

UPDATE
	orderHeader
SET
	SHIPNAME = ( SELECT NAME FROM ( SELECT 'S' AS RC, ID,NAME FROM shipToAddresses UNION ALL SELECT 'B' AS RC,B.CODE,NAME FROM branches B INNER JOIN branchesAddresses BB ON B.CODE = BB.CODE WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPADDRESS = ( SELECT ADDRESS FROM ( SELECT 'S' AS RC, ID,ADDRESS FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,ADDRESS FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPADDRESS2 = ( SELECT ADDRESS2 FROM ( SELECT 'S' AS RC, ID,ADDRESS2 FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,ADDRESS2 FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPCITY = ( SELECT CITY FROM ( SELECT 'S' AS RC, ID,CITY FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,CITY FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
	SHIPPROVINCE = ( SELECT PROVINCE FROM ( SELECT 'S' AS RC, ID,PROVINCE FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,PROVINCE FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPCOUNTRY = ( SELECT COUNTRY FROM ( SELECT 'S' AS RC, ID,COUNTRY FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,COUNTRY FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPPOSTAL = ( SELECT POSTAL FROM ( SELECT 'S' AS RC, ID,POSTAL FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,POSTALCODE FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
	SHIPCONTACTPHONE = ( SELECT PHONE FROM ( SELECT 'S' AS RC, ID,PHONE FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,PHONE FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPCONTACTFAX = ( SELECT FAX FROM ( SELECT 'S' AS RC, ID,FAX FROM shipToAddresses UNION ALL SELECT 'B' AS RC,CODE,FAX FROM branchesAddresses WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPTAXGROUP = ( SELECT TAXGROUP FROM ( SELECT 'S' AS RC, ID,TAXGROUP FROM shipToAddresses UNION ALL SELECT 'B' AS RC,B.CODE,TAXGROUP FROM branches B INNER JOIN branchesAddresses BB ON B.CODE = BB.CODE WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID ),
    SHIPSTOREID = ( SELECT STOREID FROM ( SELECT 'S' AS RC, ID,STOREID FROM shipToAddresses UNION ALL SELECT 'B' AS RC,B.CODE,B.CODE AS STOREID FROM branches B INNER JOIN branchesAddresses BB ON B.CODE = BB.CODE WHERE ISMAIN = 1) ADDR WHERE CONCAT(ADDR.RC,'-',ADDR.ID) = __ID )
WHERE 
	USERNAME  = __USERNAME AND 
    ORDERSTATUS = 'CART';


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ChangeTicketStatus` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ChangeTicketStatus`(__TICKETID INT, __STATUS INT)
BEGIN

	UPDATE
		ticketHeader
	SET
		STATUS = __STATUS,
        DATECLOSED = CURRENT_TIMESTAMP
	WHERE
		ID = __TICKETID;

	
    SELECT 
		HDR.*,
        USR.EMAIL,
        USR.LANGUAGE
	FROM 
		ticketHeader HDR 
	LEFT OUTER JOIN
		user USR ON 
			HDR.ENTEREDBY = USR.USERNAME
	WHERE 
    ID = __TICKETID; 

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckCartItemDuplicates` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckCartItemDuplicates`(__USERNAME VARCHAR(50), __ITEMID INT)
BEGIN

SET @RECCNT := (SELECT 
					COUNT(*) 
				FROM 
					orderHeader HDR 
				INNER JOIN 
					orderDetail DTL ON 
						HDR.ORDERID = DTL.ORDERID 
				WHERE 
					HDR.USERNAME = __USERNAME AND
                    HDR.ORDERSTATUS = 'CART' AND
                    DTL.ITEMID = __ITEMID
				);

IF @RECCNT > 0 THEN
	SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'Cannot add the same item to the cart.';
END IF;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckCartItemLowInventory` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckCartItemLowInventory`(__USERNAME VARCHAR(50), __ITEMID INT, __QTY INT)
BEGIN

	SELECT
		ITM.ID,
        IFNULL(ITMINV.QTYONHAND,0) AS INVQTY,
        IFNULL(ONORDER.ONORDER,0) AS ALLOCATEDQTY,
        CASE 
			WHEN 
				ITM.TYPE <> 0 THEN 1
			ELSE
				CASE WHEN __QTY <= IFNULL(ITMINV.QTYONHAND,0) - IFNULL(ONORDER.ONORDER,0) THEN 1 ELSE 0 END
		END AS ENOUGHQTY
	FROM
		items ITM
	LEFT OUTER JOIN
		itemsInventory ITMINV ON 
			ITM.ID = ITMINV.ITEMID
	LEFT OUTER JOIN
		( SELECT ITEMID,SUM(ORDERQTY-SHIPTODATEQTY) AS ONORDER FROM orderDetail
		  WHERE ORDERID IN (SELECT ORDERID FROM orderHeader WHERE ORDERSTATUS IN ('ACTIVE'))
          GROUP BY ITEMID) ONORDER ON
			ITM.ID = ONORDER.ITEMID
	WHERE
		ITM.ID = __ITEMID;


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckForLowLevelItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckForLowLevelItems`(__ORDERID INT)
BEGIN
	SELECT
		THISORDER.ORDERID,
        THISORDER.ORDERREF,
		ITEM.ID,
		ITEM.CODE,
        ITEM.DESCRIPTION,
        THISORDER.REMQTY AS ORDERQTY,
        COALESCE(OTHORDER.REMQTY,0) AS OTHQTY,
        ITEM.TYPE,
        COALESCE(ITEM.MINLEVEL,0) AS MINLEVEL,
        COALESCE(INV.QTYONHAND,0) AS QTYONHAND
	FROM
		( SELECT H.ORDERID, H.ORDERREF, ITEMID,SUM(ORDERQTY-SHIPTODATEQTY) AS REMQTY FROM orderHeader H INNER JOIN orderDetail D ON H.ORDERID = D.ORDERID WHERE  H.ORDERID = __ORDERID GROUP BY H.ORDERID, H.ORDERREF, D.ITEMID) THISORDER  
	INNER JOIN
		items ITEM ON 
			THISORDER.ITEMID = ITEM.ID
	LEFT OUTER JOIN
		itemsInventory INV ON 
			THISORDER.ITEMID = INV.ITEMID
	LEFT OUTER JOIN
		( SELECT ITEMID,SUM(ORDERQTY-SHIPTODATEQTY) AS REMQTY FROM orderHeader H INNER JOIN orderDetail D ON H.ORDERID = D.ORDERID WHERE ORDERSTATUS = 'ACTIVE' AND H.ORDERID <> __ORDERID GROUP BY D.ITEMID) OTHORDER ON 
			OTHORDER.ITEMID = THISORDER.ITEMID
	WHERE
		COALESCE(INV.QTYONHAND,0) - COALESCE(ITEM.MINLEVEL,0) - COALESCE(OTHORDER.REMQTY,0) - THISORDER.REMQTY <= 0
	ORDER BY
		ITEM.TYPE,
		ITEM.CODE;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckIfItemAppliesPromo` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckIfItemAppliesPromo`(__ORDERID INT, __PROMO VARCHAR(50), __ITEMID INT)
BEGIN

SELECT 
 PI.* 
FROM 
 orderDetail D 
INNER JOIN 
 items I ON D.ITEMID = I.ID 
INNER JOIN 
 promosItems PI ON (PI.ITEMID = I.ID OR PI.ITEMID = I.PARENTITEM)
INNER JOIN 
	promos PIHDR ON PI.CODE = PIHDR.CODE AND (PIHDR.MAXQTY = 0 OR D.ORDERQTY <= PIHDR.MAXQTY)
WHERE 
	ORDERID = __ORDERID AND PI.CODE = __PROMO AND D.ITEMID = __ITEMID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckIfItemAppliesPromoCat` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CheckIfItemAppliesPromoCat`(__ORDERID INT, __PROMO VARCHAR(50), __ITEMID INT)
BEGIN

SELECT
 D.*
FROM orderDetail D 
INNER JOIN items I ON D.ITEMID = I.ID 
INNER JOIN itemsSubcategoryLink ISL ON I.ID = ISL.ITEMID
INNER JOIN subcategories SUBCATS ON ISL.SUBCATID = SUBCATS.SUBCATID
CROSS JOIN (SELECT * FROM promos WHERE CODE = __PROMO) PROMO 
WHERE
D.ORDERID = __ORDERID AND 
D.ITEMID = __ITEMID AND
SUBCATS.CATID NOT IN (SELECT CATID FROM promos PIHDR INNER JOIN promosCategories PC ON PC.CODE = PIHDR.CODE WHERE PC.CODE = __PROMO) AND
(PROMO.MAXQTY = 0 OR ORDERQTY <= PROMO.MAXQTY);


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckIfItemAppliesPromoExceptionList` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CheckIfItemAppliesPromoExceptionList`(__ORDERID INT, __PROMO VARCHAR(50), __ITEMID INT)
BEGIN

SELECT 
 PIHDR.* 
FROM 
 orderDetail D 
INNER JOIN 
 items I ON D.ITEMID = I.ID 
INNER JOIN 
  promos PIHDR ON PIHDR.CODE = __PROMO AND (PIHDR.MAXQTY = 0 OR D.ORDERQTY <= PIHDR.MAXQTY)
LEFT OUTER JOIN 
  promosItems PI ON (PI.ITEMID = I.ID OR PI.ITEMID = I.PARENTITEM)
WHERE 
  ORDERID = __ORDERID AND D.ITEMID = __ITEMID AND PI.ITEMID IS NULL;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckUserAccount` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckUserAccount`(UNAME VARCHAR(50), PASS VARCHAR(50))
BEGIN
	SELECT 
		USERS.*,
        COALESCE(SKINDEF.STYLEFILENAME,'DEFAULT') AS SKIN,
        COALESCE(BRANCH.SKIN,'DEFAULT') AS BANNER
	FROM 
		user USERS
	LEFT OUTER JOIN
		branches BRANCH ON 
			USERS.BRANCH = BRANCH.CODE
	LEFT OUTER JOIN
		branchSkinDefinition SKINDEF ON 
			BRANCH.SKIN = SKINDEF.SKINNAME
	WHERE USERNAME=UNAME AND PASSWORD=CONCAT('*', UPPER(SHA1(UNHEX(SHA1(PASS))))) AND USERS.STATUS=1;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CheckUserAccount_ByIdBranch` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CheckUserAccount_ByIdBranch`(__USERNAME VARCHAR(50), __BRANCHNAME VARCHAR(100))
BEGIN

	SELECT 
		USERS.*,
        COALESCE(SKINDEF.STYLEFILENAME,'DEFAULT') AS SKIN,
        COALESCE(BRANCH.SKIN,'DEFAULT') AS BANNER
	FROM 
		user USERS
	LEFT OUTER JOIN
		branches BRANCH ON 
			USERS.BRANCH = BRANCH.CODE
	LEFT OUTER JOIN
		branchSkinDefinition SKINDEF ON 
			BRANCH.SKIN = SKINDEF.SKINNAME
	WHERE 
        USERNAME=__USERNAME AND 
        USERS.STATUS=1 AND 
        USERS.USERLEVEL < 90;
    
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ClearAllAdBrandLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ClearAllAdBrandLink`(__ID INT)
BEGIN
	DELETE FROM AdItemsBrand WHERE ID = __ID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ClearAllCategoryBrandLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ClearAllCategoryBrandLink`(__CATID INT)
BEGIN
	DELETE FROM categoriesBrand WHERE CATID = __CATID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateAccountTicket` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateAccountTicket`(__ENTEREDBY VARCHAR(50), __LANGUAGE VARCHAR(20), __ACCOUNT VARCHAR(20), __BANNER VARCHAR(20),
__BRANCHNUMBER VARCHAR(20), __BRANCHNAME VARCHAR(100), __ADDRESS VARCHAR(1000), __CITY VARCHAR(100), __PROVINCE VARCHAR(100),
__POSTAL VARCHAR(100), __COUNTRY VARCHAR(100), __PHONE VARCHAR(100), __FAX VARCHAR(100), __APPOINTMENTPHONE VARCHAR(100),
__CONTACTFIRST VARCHAR(100), __CONTACTLAST VARCHAR(100), __EMAIL VARCHAR(100), __NOTE VARCHAR(1000),
__BOUTIQUEFIRST VARCHAR(100), __BOUTIQUELAST VARCHAR(100), __TAGLINENAME VARCHAR(100), __AFFILIATEDNAME VARCHAR(100),
__PHARMLEGALNAME VARCHAR(100), __PHARMPHOTONAME VARCHAR(100))
BEGIN

DECLARE __TICKETID INT;

INSERT INTO accountMgrHeader
(ENTEREDBY,DATEENTERED,STATUS,TITLE,DATECLOSED,LANGUAGE,ACCOUNT,BANNER,BRANCHNUMBER,ADDRESS,CITY,PROVINCE,COUNTRY,POSTAL,
PHONE,FAX,APPOINTMENTPHONE,CONTACTFIRST,CONTACTLAST,EMAIL,NOTE,BOUTIQUEFIRST,BOUTIQUELAST,TAGLINENAME,AFFILIATEDNAME,PHARMLEGALNAME,PHARMPHOTONAME)
VALUES
(__ENTEREDBY,CURRENT_TIMESTAMP,1,__BRANCHNAME,NULL,__LANGUAGE,__ACCOUNT,__BANNER,__BRANCHNUMBER,
__ADDRESS,__CITY,__PROVINCE,__COUNTRY,__POSTAL,__PHONE,__FAX,__APPOINTMENTPHONE,__CONTACTFIRST,__CONTACTLAST,__EMAIL,__NOTE,
__BOUTIQUEFIRST,__BOUTIQUELAST,__TAGLINENAME,__AFFILIATEDNAME, __PHARMLEGALNAME, __PHARMPHOTONAME);

SET __TICKETID = LAST_INSERT_ID();

SELECT *,UNIX_TIMESTAMP(DATEENTERED) AS UNIX_DATEENTERED FROM accountMgrHeader WHERE ID = __TICKETID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateAccountTicketReply` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateAccountTicketReply`(__TICKETID INT, __MESSAGE VARCHAR(1000), __ENTEREDBY VARCHAR(50))
BEGIN

 DECLARE __TICCHECK INT;
 SELECT COUNT(*) INTO __TICCHECK FROM accountMgrHeader WHERE ( ENTEREDBY = __ENTEREDBY OR __ENTEREDBY IN (SELECT USERNAME FROM user WHERE USERLEVEL >= 99)) AND ID = __TICKETID;
 
 IF __TICCHECK > 0 THEN

 INSERT INTO
 accountMgrMessages
 (TICKETID,DATEENTERED,ENTEREDBY,CLIENTMESSAGE,MESSAGE)
 VALUES
 (
 __TICKETID,
 CURRENT_TIMESTAMP,
 __ENTEREDBY,
 CASE WHEN __ENTEREDBY IN (SELECT USERNAME FROM user WHERE USERLEVEL >= 99) THEN 0 ELSE 1 END,
 __MESSAGE
 );
 
 SELECT 
 HDR.*,
 DTL.MESSAGE,
 DTL.DATEENTERED AS RDATEENTERED,
 USR.FIRSTNAME,
 USR.LASTNAME,
 USR.EMAIL,
 USR.LANGUAGE,
 USR2.FIRSTNAME AS RFIRSTNAME, 
 USR2.LASTNAME AS RLASTNAME,
 USR2.EMAIL AS REMAIL 
 FROM 
 accountMgrHeader HDR 
 LEFT OUTER JOIN
 accountMgrMessages DTL ON 
 HDR.ID = DTL.TICKETID
 LEFT OUTER JOIN
 user USR ON 
 HDR.ENTEREDBY = USR.USERNAME
 LEFT OUTER JOIN
 user USR2 ON 
 DTL.ENTEREDBY = USR2.USERNAME                
		WHERE 
		ID = __TICKETID AND
        DTL.MESSAGEID = LAST_INSERT_ID();
        
	END IF;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateAdBrandLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateAdBrandLink`(__ADID INT, __BRANDNAME VARCHAR(20))
BEGIN
	INSERT INTO AdItemsBrand (ID,BRANDNAME)
    VALUES (__ADID,__BRANDNAME);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateCategoryBrandLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateCategoryBrandLink`(__CATID INT, __BRANDNAME VARCHAR(20))
BEGIN
	INSERT INTO categoriesBrand (CATID,BRANDNAME)
    VALUES (__CATID,__BRANDNAME);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateItemBranchLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateItemBranchLink`(__ITEMID INT, __BRANCHCODE VARCHAR(20))
BEGIN
	INSERT INTO
		itemsBranchesLink
		(ITEMID,BRANCHCODE)
	VALUES
		(__ITEMID,__BRANCHCODE);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateItemCategoryLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateItemCategoryLink`(__ITEMID INT, __SUBCATID INT)
BEGIN
	INSERT INTO 
		itemsSubcategoryLink
		(ITEMID,SUBCATID)
	VALUES
		(__ITEMID,__SUBCATID);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateItemPricing` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateItemPricing`(__ITEMID INT, __QTY INT, __ITEMOPTION VARCHAR(30), __PRICE DECIMAL(19,4), __LENGTH DECIMAL(19,4), __WIDTH DECIMAL(19,4), __HEIGHT DECIMAL(19,4), __WEIGHT DECIMAL(19,4), __PIECES INT)
BEGIN
	INSERT INTO
		itemPricing
		(ITEMID,QTY,PRICE,LENGTH,WIDTH,HEIGHT,WEIGHT,PIECES,ITEMOPTION)
	VALUES
		(__ITEMID,__QTY,__PRICE,__LENGTH,__WIDTH,__HEIGHT,__WEIGHT,__PIECES,__ITEMOPTION);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewAd` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateNewAd`(__NAME VARCHAR(1000), __STARTDATE DATE, __ENDDATE DATE, __LANGUAGE VARCHAR(2), __SORTORDER INT, __URL VARCHAR(500), __ADPATH VARCHAR(200))
BEGIN

	INSERT INTO 
		AdItems
        (`NAME`,STARTDATE,ENDDATE,`LANGUAGE`,SORTORDER,IMAGEPATH,URL)
	VALUES
		(__NAME,__STARTDATE,__ENDDATE,__LANGUAGE,__SORTORDER,__ADPATH,__URL);

	SELECT LAST_INSERT_ID() AS ADID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewBranch` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateNewBranch`(__CODE VARCHAR(20), __NAME VARCHAR(100), __MGREMAIL VARCHAR(100), __TREEMAIL VARCHAR(100), __TAXGROUP VARCHAR(6), __SKIN VARCHAR(20), __STATUS INTEGER, __COMMENTS VARCHAR(1000), __SHIPZONE VARCHAR(20))
BEGIN
INSERT INTO
	branches (CODE,NAME,MANAGEMENTEMAIL,TREASUREREMAIL,TAXGROUP,SKIN,STATUS,COMMENTS,SHIPZONE)
VALUES
	(__CODE, __NAME, __MGREMAIL, __TREEMAIL,__TAXGROUP,__SKIN, __STATUS, __COMMENTS, __SHIPZONE);

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewBranchAddress` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateNewBranchAddress`(__CODE VARCHAR(20), __LANG VARCHAR(2), __ISMAIN INTEGER, __ADDRESS VARCHAR(1000), __ADDRESS2 VARCHAR(1000), __CITY VARCHAR(100), __PROVINCE VARCHAR(100), __COUNTRY VARCHAR(100), __POSTALCODE VARCHAR(20), __PHONE VARCHAR(20), __FAX VARCHAR(20))
BEGIN

INSERT INTO
	branchesAddresses
		(CODE, LANGUAGE, ISMAIN, ADDRESS, ADDRESS2, CITY, PROVINCE, COUNTRY, POSTALCODE, PHONE, FAX)
VALUES
	(__CODE, __LANG, __ISMAIN, __ADDRESS, __ADDRESS2, __CITY, __PROVINCE, __COUNTRY, __POSTALCODE, __PHONE, __FAX);

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewCategory` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateNewCategory`(__NAME VARCHAR(50), __DESCRIPTION VARCHAR(200), __LANGUAGE VARCHAR(2), __ICON VARCHAR(200), __USERLEVEL INTEGER, __COMMENTS VARCHAR(1000))
BEGIN

	INSERT	INTO
		categories
        (NAME,DESCRIPTION,ICONURL,LANGUAGE,USERLEVEL,COMMENTS,CREATEDDATE,MODIFIEDDATE)
	VALUES
		(__NAME,__DESCRIPTION,__ICON,__LANGUAGE,__USERLEVEL,__COMMENTS,CURRENT_TIMESTAMP,CURRENT_TIMESTAMP);

	SELECT LAST_INSERT_ID() AS CATID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewItem` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CreateNewItem`(IN `__TYPE` INT, IN `__CODE` VARCHAR(50), IN `__DESCRIPTION` VARCHAR(200), IN `__PRODUCEDETAIL` VARCHAR(1000), IN `__SIZE` VARCHAR(50), IN `__NUMPAGES` VARCHAR(50), IN `__PRINTINGTYPE` VARCHAR(50), IN `__STOCK` VARCHAR(50), IN `__STATUS` INT, IN `__MINLEVEL` INT, IN `__LEADTIME` INT, IN `__INITIALQTY` INT, IN `__DISPLAYNAME` VARCHAR(1000), IN `__PROOFNAME` VARCHAR(1000), IN `__PARAMETERSNAME` VARCHAR(1000), IN `__UPLOADDIR` VARCHAR(1000), IN `__PREVIEWNAME` VARCHAR(1000), IN `__SHIPBOXINSLEEVE` INT, IN `__SKIPPDFPERMISSIONCHECK` INT, IN `__DLSUGGESTIONS` VARCHAR(1000))
BEGIN
        INSERT INTO 
                items
                (TYPE,CODE,DESCRIPTION,PRODUCEDETAIL,SIZE,NUMPAGES,PRINTINGTYPE,STOCK,STATUS,MINLEVEL,LEADTIME,DISPLAYIMAGENAME,PROOFPDFNAME,PARAMETERSFILENAME,PREVIEWIMAGENAME,DISPLAYIMAGEPATH,PROOFPDFPATH,PARAMETERSFILEPATH,PREVIEWIMAGEPATH,SHIPBOXINSLEEVE,SKIPPDFPERMISSIONCHECK,DLSUGGESTIONS)
        VALUES
                (__TYPE,__CODE,__DESCRIPTION,__PRODUCEDETAIL,__SIZE,__NUMPAGES,__PRINTINGTYPE,__STOCK,__STATUS,__MINLEVEL,__LEADTIME,__DISPLAYNAME,__PROOFNAME,__PARAMETERSNAME,__PREVIEWNAME,
         CASE WHEN LENGTH(__DISPLAYNAME) > 0 THEN CONCAT(__UPLOADDIR,__DISPLAYNAME) ELSE '' END,
         CASE WHEN LENGTH(__PROOFNAME) > 0 THEN CONCAT(__UPLOADDIR,__PROOFNAME) ELSE '' END,
         CASE WHEN LENGTH(__PARAMETERSNAME) > 0 THEN CONCAT(__UPLOADDIR,__PARAMETERSNAME) ELSE '' END,
         CASE WHEN LENGTH(__PREVIEWNAME) > 0 THEN CONCAT(__UPLOADDIR,__PREVIEWNAME) ELSE '' END,
         __SHIPBOXINSLEEVE,
         __SKIPPDFPERMISSIONCHECK,
         __DLSUGGESTIONS
                );
 
        SELECT LAST_INSERT_ID() AS ITEMID;
           
        IF __TYPE = 0 THEN
                INSERT INTO 
                        itemsInventory
                        (ITEMID,QTYONHAND)
                VALUES (LAST_INSERT_ID(),0);
        END IF;
 
        IF __INITIALQTY > 0 THEN
                UPDATE 
                        itemsInventory
                SET
                        QTYONHAND = __INITIALQTY
                WHERE
                        ITEMID = LAST_INSERT_ID();
            
                INSERT INTO 
                        itemsAdjustmentLog
            (ITEMID,QTY,ADJDATE,REASON)
                VALUES (LAST_INSERT_ID(),__INITIALQTY,CURRENT_TIMESTAMP,'Initial Inventory');
    END IF;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewNewsItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateNewNewsItem`(__STARTDATE DATE, __ENDDATE DATE, __LANGUAGE VARCHAR(2), __TITLE VARCHAR(1000), __MESSAGE VARCHAR(1000))
BEGIN
	INSERT INTO 
		newsItems
		(STARTDATE,ENDDATE,LANGUAGE,TITLE,MESSAGE)
	VALUES
		(__STARTDATE,__ENDDATE,__LANGUAGE,__TITLE,__MESSAGE);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewPromo` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CreateNewPromo`(__NAME VARCHAR(100), __CODE VARCHAR(50), __CODETYPE VARCHAR(12), __PROMOVALUE DECIMAL(19,2), __QTYTYPE VARCHAR(12), __MAXQTY INT, __MINQTY INT, __EXACTQTY INT, __STARTDATE DATE, __ENDDATE DATE, __SINGLEUSE INT, __REDEEMED INT, __SINGLEITEM INT)
BEGIN

 INSERT INTO 
 promos
 (NAME,CODE,CODETYPE,PROMOVALUE,QTYTYPE,MAXQTY,MINQTY,EXACTQTY,STARTDATE,ENDDATE,SINGLEUSE,REDEEMED,SINGLEITEM)
 VALUES
 (__NAME,__CODE,__CODETYPE,__PROMOVALUE,__QTYTYPE,__MAXQTY,__MINQTY,__EXACTQTY,__STARTDATE,__ENDDATE,__SINGLEUSE,__REDEEMED,__SINGLEITEM);

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewShipToAddress` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CreateNewShipToAddress`(__NAME VARCHAR(100), __STOREID VARCHAR(20), __ADDRESS VARCHAR(1000), __ADDRESS2 VARCHAR(1000), __CITY VARCHAR(100),
__PROVINCE VARCHAR(100), __COUNTRY VARCHAR(100), __POSTAL VARCHAR(20), __PHONE VARCHAR(20), __FAX VARCHAR(20),
__TAXGROUP VARCHAR(6), __SHIPZONE VARCHAR(6))
BEGIN

INSERT INTO
	shipToAddresses
    (NAME,STOREID,ADDRESS,ADDRESS2,CITY,PROVINCE,COUNTRY,POSTAL,PHONE,FAX,TAXGROUP,SHIPZONE)
VALUES
	(__NAME,__STOREID,__ADDRESS,__ADDRESS2,__CITY,__PROVINCE,__COUNTRY,__POSTAL,__PHONE,__FAX,__TAXGROUP,__SHIPZONE);

SELECT LAST_INSERT_ID() AS SHIPID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewSubCategory` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CreateNewSubCategory`(__CATID INTEGER, __PARENTSUBCATID INTEGER, __NAME VARCHAR(50), __DESCRIPTION VARCHAR(200), __ICONURL VARCHAR(200), __USERLEVEL INT)
BEGIN
    INSERT INTO subcategories (CATID,PARENTSUBCATID,NAME,DESCRIPTION,ICONURL,USERLEVEL)
    VALUES (__CATID,__PARENTSUBCATID,__NAME,__DESCRIPTION, __ICONURL, __USERLEVEL);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateNewUser` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateNewUser`(UNAME VARCHAR(50), __BRANCH VARCHAR(20), PASS VARCHAR(50), FNAME VARCHAR(50), LNAME VARCHAR(50), LANG VARCHAR(2), STAT INTEGER, USERLVL INTEGER, COMMENTS VARCHAR(1000), EMAIL VARCHAR(100))
BEGIN

INSERT INTO 
	`user` (`USERNAME`,`BRANCH`,`PASSWORD`,`PLAINPASSWORD`,`FIRSTNAME`,`LASTNAME`,`LANGUAGE`,`STATUS`,`USERLEVEL`,`COMMENTS`,`EMAIL`) 
VALUES 
  (UNAME,__BRANCH,CONCAT('*', UPPER(SHA1(UNHEX(SHA1(PASS))))),PASS,FNAME,LNAME,LANG,STAT,USERLVL,COMMENTS,EMAIL);
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateShipmentHeader` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateShipmentHeader`(__ORDERID INT, __TRACKNUM VARCHAR(100), __METHOD VARCHAR(100), __AMOUNT DECIMAL(16,2), __WEIGHT DECIMAL(16,2), __PIECES INT, __INSTRUCTIONS VARCHAR(1000))
BEGIN

	INSERT INTO 
		shipmentHeader
        (ORDERID,TRACKNUM,SHIPDATE,SHIPMETHOD,SHIPAMOUNT,SHIPWEIGHT,SHIPPIECES,SHIPINSTRUCTIONS)
	VALUES
		(__ORDERID,__TRACKNUM,CURRENT_TIMESTAMP,__METHOD,__AMOUNT,__WEIGHT,__PIECES,__INSTRUCTIONS);
    
    SELECT
		SHIPID,
        ORDERID
	FROM
		shipmentHeader
	WHERE
		SHIPID = LAST_INSERT_ID();
    
    
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateShipmentLine` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateShipmentLine`(__SHIPID INT, __ORDERID INT, __ORDERLINE INT, __SHIPQTY INT)
BEGIN

	INSERT INTO
		shipmentDetail
		(SHIPID,ORDERID,ORDERLINE,SHIPQTY)
	VALUES
		(__SHIPID,__ORDERID,__ORDERLINE,__SHIPQTY);
        
	UPDATE
		orderDetail
	SET
		SHIPTODATEQTY = SHIPTODATEQTY + __SHIPQTY
	WHERE
		ORDERID = __ORDERID AND
        ITEMLINE = __ORDERLINE;
        
	UPDATE
		itemsInventory
	SET
		QTYONHAND = QTYONHAND - __SHIPQTY
	WHERE
		ITEMID IN (SELECT ITEMID FROM orderDetail WHERE ORDERID = __ORDERID AND ITEMLINE = __ORDERLINE);
        
	INSERT INTO 
		itemsAdjustmentLog
			(ITEMID,QTY,ADJDATE,REASON)
	SELECT
		ITEMID,
        __SHIPQTY * -1 AS QTY,
        CURRENT_TIMESTAMP AS ADJDATE,
        CONCAT('Shipment for Order# ', ORDERID, ' Ship# ', __SHIPID) AS REASON
	FROM
		orderDetail
	WHERE
		ORDERID = __ORDERID AND
        ITEMLINE = __ORDERLINE;  
        
	UPDATE
		orderHeader
	SET
		ORDERSTATUS = 'SHIPPED'
	WHERE
		ORDERID = __ORDERID AND
        ORDERID IN (SELECT ORDERID FROM orderDetail WHERE ORDERID = __ORDERID GROUP BY ORDERID HAVING SUM(ORDERQTY) = SUM(SHIPTODATEQTY));

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateShipToAddressUserLink` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CreateShipToAddressUserLink`(__shipid INT, __username VARCHAR(30))
BEGIN

	INSERT INTO shipToAddressesUserList (ID,USERNAME) VALUES (__shipid, __username); 

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateSupportTicket` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateSupportTicket`(__TITLE VARCHAR(1000), __MESSAGE VARCHAR(1000), __ENTEREDBY VARCHAR(50))
BEGIN
 
 DECLARE __TICKETID INT;

 
 INSERT INTO ticketHeader
 (ENTEREDBY,DATEENTERED,STATUS,TITLE,DATECLOSED)
 VALUES
 (__ENTEREDBY,CURRENT_TIMESTAMP,1,__TITLE,NULL);
 
 
 SET __TICKETID = LAST_INSERT_ID();
 
 
 INSERT INTO ticketDetail
 (TICKETID,DATEENTERED,ENTEREDBY,CLIENTMESSAGE,MESSAGE)
 VALUES
 (__TICKETID,CURRENT_TIMESTAMP,__ENTEREDBY,1,__MESSAGE);
 
 
 SELECT 
 HDR.*,
 DTL.MESSAGEID,
 DTL.MESSAGE,
 USR.FIRSTNAME,
 USR.LASTNAME,
 USR.EMAIL,
 USR.LANGUAGE,
 UNIX_TIMESTAMP(DTL.DATEENTERED) AS UNIX_DATEENTERED
 FROM 
 ticketHeader HDR 
 LEFT OUTER JOIN
 ticketDetail DTL ON 
 HDR.ID = DTL.TICKETID
 LEFT OUTER JOIN
 user USR ON 
 HDR.ENTEREDBY = USR.USERNAME
 WHERE 
 ID = __TICKETID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateSupportTicketAttachment` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `CreateSupportTicketAttachment`(__TICKETID INT, __MESSAGEID INT, __STORENAME VARCHAR(200), __FILENAME VARCHAR(200))
BEGIN

INSERT INTO ticketAttachment (TICKETID,MESSAGEID, STOREFILENAME,ORIGFILENAME)
VALUES (__TICKETID, __MESSAGEID, __STORENAME,__FILENAME);
	

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `CreateSupportTicketReply` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `CreateSupportTicketReply`(__TICKETID INT, __MESSAGE VARCHAR(1000), __ENTEREDBY VARCHAR(50))
BEGIN

DECLARE __TICCHECK INT;
 SELECT COUNT(*) INTO __TICCHECK FROM ticketHeader WHERE ( ENTEREDBY = __ENTEREDBY OR __ENTEREDBY IN (SELECT USERNAME FROM user WHERE USERLEVEL >= 81)) AND ID = __TICKETID;
 
 IF __TICCHECK > 0 THEN

		INSERT INTO
			ticketDetail
			(TICKETID,DATEENTERED,ENTEREDBY,CLIENTMESSAGE,MESSAGE)
		VALUES
			(
				__TICKETID,
				CURRENT_TIMESTAMP,
				__ENTEREDBY,
				CASE WHEN __ENTEREDBY IN (SELECT USERNAME FROM user WHERE USERLEVEL >= 81) THEN 0 ELSE 1 END,
				__MESSAGE
			);
            
		SELECT 
			HDR.*,
			DTL.MESSAGE,
			DTL.DATEENTERED AS RDATEENTERED,
			USR.FIRSTNAME,
			USR.LASTNAME,
			USR.EMAIL,
            USR.LANGUAGE,
			USR2.FIRSTNAME AS RFIRSTNAME, 
			USR2.LASTNAME AS RLASTNAME,
			USR2.EMAIL AS REMAIL            
		FROM 
			ticketHeader HDR 
		LEFT OUTER JOIN
			ticketDetail DTL ON 
				HDR.ID = DTL.TICKETID
		LEFT OUTER JOIN
			user USR ON 
				HDR.ENTEREDBY = USR.USERNAME
		LEFT OUTER JOIN
			user USR2 ON 
				DTL.ENTEREDBY = USR2.USERNAME                
		WHERE 
		ID = __TICKETID AND
        DTL.MESSAGEID = LAST_INSERT_ID();
        
	END IF;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteAdItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteAdItem`(__ID INT)
BEGIN
	DELETE FROM AdItems WHERE ID = __ID;
    DELETE FROM AdItemsBrand WHERE ID = __ID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteAllBranchLinks` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteAllBranchLinks`(__ITEMID INT)
BEGIN
	DELETE FROM itemsBranchesLink WHERE ITEMID = __ITEMID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteAllItemCategoryLinks` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteAllItemCategoryLinks`(__ITEMID INT)
BEGIN
	DELETE FROM itemsSubcategoryLink WHERE ITEMID = __ITEMID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteAllPricingLinks` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteAllPricingLinks`(__ITEMID INT)
BEGIN
	DELETE FROM itemPricing WHERE ITEMID = __ITEMID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteAllShipToAddressUserLinks` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `DeleteAllShipToAddressUserLinks`(__shipid INT)
BEGIN
	DELETE FROM shipToAddressesUserList WHERE ID = __shipid; 
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteBranchAddress` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteBranchAddress`(__CODE VARCHAR(20), __LANG VARCHAR(2))
BEGIN
	DELETE FROM branchesAddresses WHERE CODE = __CODE AND LANGUAGE = __LANG;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteBranchProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteBranchProfile`(__CODE VARCHAR(20))
BEGIN
	DELETE FROM branches WHERE CODE = __CODE;
    DELETE FROM branchesAddresses WHERE CODE = __CODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteCategoryProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteCategoryProfile`(__CATID INTEGER)
BEGIN
	DELETE FROM categories WHERE CATID = __CATID;
    DELETE FROM subcategories WHERE CATID = __CATID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteItem`(__ITEMID INT)
BEGIN
  DELETE FROM items WHERE ID = __ITEMID;
    DELETE FROM itemPricing WHERE ITEMID = __ITEMID;
    DELETE FROM itemsBranchesLink WHERE ITEMID = __ITEMID;
    DELETE FROM itemsSubcategoryLink WHERE ITEMID = __ITEMID;
    DELETE FROM itemsInventory WHERE ITEMID = __ITEMID;
    DELETE FROM itemsPrintDefinition WHERE ID = __ITEMID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteNewsItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteNewsItem`(__ID INTEGER)
BEGIN
	DELETE FROM newsItems WHERE ID = __ID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeletePromoCategories` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `DeletePromoCategories`(__CODE VARCHAR(50))
BEGIN
  DELETE FROM promosCategories WHERE CODE = __CODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeletePromoItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeletePromoItems`(__CODE VARCHAR(50))
BEGIN
	DELETE FROM promosItems WHERE CODE = __CODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeletePromoProfile` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `DeletePromoProfile`(__CODE VARCHAR(50))
BEGIN
  DELETE FROM promosCategories WHERE CODE = __CODE;
    DELETE FROM promosItems WHERE CODE = __CODE;
  DELETE FROM promos WHERE CODE = __CODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteShipToAddress` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `DeleteShipToAddress`(__ID INT)
BEGIN

DELETE FROM shipToAddressesUserList WHERE ID = __ID;
DELETE FROM shipToAddresses WHERE ID = __ID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteSubCategoryProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteSubCategoryProfile`(__SUBCATID INTEGER)
BEGIN
	DELETE FROM subcategories WHERE SUBCATID = __SUBCATID;
    DELETE FROM subcategories WHERE PARENTSUBCATID = __SUBCATID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DeleteUserProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteUserProfile`(UNAME VARCHAR(100))
BEGIN

DELETE FROM user WHERE USERNAME = UNAME;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DuplicateBranchProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DuplicateBranchProfile`(__CODE VARCHAR(20), __NEWCODE VARCHAR(20))
BEGIN

	INSERT INTO
		branches
        (CODE,NAME,MANAGEMENTEMAIL,TREASUREREMAIL,TAXGROUP,STATUS,COMMENTS,CREATEDDATE,MODIFIEDDATE,SHIPZONE)
	SELECT
		__NEWCODE AS CODE,
        NAME,
        MANAGEMENTEMAIL,
        TREASUREREMAIL,
        TAXGROUP,
        STATUS,
        COMMENTS,
        CURRENT_TIMESTAMP AS CREATEDDATE,
        CURRENT_TIMESTAMP AS MODIFIEDDATE,
        SHIPZONE
	FROM
		branches
	WHERE
		CODE = __CODE;
        
	INSERT INTO
		branchesAddresses
        (CODE,LANGUAGE,ISMAIN,ADDRESS,CITY,PROVINCE,COUNTRY,POSTALCODE,PHONE,FAX)
	SELECT
		__NEWCODE AS CODE,
        LANGUAGE,
        ISMAIN,
        ADDRESS,
        CITY,
        PROVINCE,
        COUNTRY,
        POSTALCODE,
        PHONE,
        FAX
	FROM
		branchesAddresses
	WHERE
		CODE = __CODE;

	INSERT INTO
		branchesAssetData
        (BRANCHCODE,TAG,VALUE)
    SELECT
		__NEWCODE AS BRANCHCODE,
        TAG,
        VALUE
	FROM
		branchesAssetData
	WHERE
		BRANCHCODE = __CODE;

	INSERT INTO
		itemsBranchesLink
        (ITEMID,BRANCHCODE)
	SELECT
		ITEMID,
        __NEWCODE AS BRANCHCODE
	FROM
		itemsBranchesLink
	WHERE
		BRANCHCODE = __CODE;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DuplicateCategoryProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DuplicateCategoryProfile`(__CATID INT)
BEGIN

INSERT INTO
	categories
	(NAME,DESCRIPTION,ICONURL,LANGUAGE,USERLEVEL,COMMENTS,CREATEDDATE,MODIFIEDDATE)
SELECT
	CONCAT(NAME,' **DUP**') AS NAME,
    DESCRIPTION,
    ICONURL,
    LANGUAGE,
    USERLEVEL,
    COMMENTS,
    CURRENT_TIMESTAMP AS CREATEDDATE,
    CURRENT_TIMESTAMP AS MODIFIEDDATE
FROM
	categories
WHERE
	CATID = __CATID;
    
SET @CATID = LAST_INSERT_ID();    
   
INSERT INTO categoriesBrand (CATID,BRANDNAME)
SELECT @CATID,BRANDNAME FROM categoriesBrand WHERE CATID = __CATID;
    
SELECT @CATID AS CATID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DuplicateItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DuplicateItem`(__ITEMID INT)
BEGIN

  INSERT INTO
    items
        (TYPE,CODE,DESCRIPTION,SIZE,NUMPAGES,STATUS,MINLEVEL,LEADTIME,PARENTITEM,
         ARCHIVED,GENERATEDBY,ASSETAPPROVED,SHIPBOXINSLEEVE,PRINTINGTYPE,STOCK) 
  SELECT
    TYPE,
        CONCAT(CODE,' **DUP**'),
        DESCRIPTION,
        SIZE,
        NUMPAGES, 
        STATUS,
        MINLEVEL,
        LEADTIME,
        PARENTITEM,
        ARCHIVED,
        GENERATEDBY,
        ASSETAPPROVED,
        SHIPBOXINSLEEVE,
        PRINTINGTYPE,
        STOCK
  FROM
    items
  WHERE
    ID = __ITEMID;
        
  SET @ITEMID = LAST_INSERT_ID();
 
  INSERT INTO
    itemPricing
        (ITEMID,QTY,PRICE,LENGTH,WIDTH,HEIGHT,WEIGHT,PIECES,ITEMOPTION)
  SELECT
    @ITEMID AS ITEMID,
        QTY,
        PRICE,
        LENGTH,
        WIDTH,
        HEIGHT,
        WEIGHT,
        PIECES,
        ITEMOPTION
  FROM
    itemPricing
  WHERE
    ITEMID = __ITEMID;
 
  INSERT INTO
    itemsBranchesLink
        (ITEMID,BRANCHCODE)
  SELECT
    @ITEMID AS ITEMID,
        BRANCHCODE
  FROM
    itemsBranchesLink
  WHERE
    ITEMID = __ITEMID;
        
  INSERT INTO
    itemsInventory
        (ITEMID,QTYONHAND)
  SELECT
    @ITEMID AS ITEMID,
        0 AS QTYONHAND
  FROM
    itemsInventory
  WHERE
    ITEMID = __ITEMID;
        
  INSERT INTO
    itemsSubcategoryLink
        (ITEMID,SUBCATID)
  SELECT
    @ITEMID AS ITEMID,
        SUBCATID
  FROM
    itemsSubcategoryLink
  WHERE
    ITEMID = __ITEMID;
        
  INSERT INTO
    itemsPrintDefinition
        (ID,PRESS,NUMPAGES,BLEEDS,COLOURS,FLATSIZE,FINISHSIZE,STOCK,PARENTSHEETSIZE,
         PRESSSHEETSIZE,NUMUP,LAYOUTORIENTATION,COATING,CONTOURCUT,LAMINATION,FINISHING,
         ACCESSORY,SPECIALINSTRUCTIONS,PACKAGELOCATION)
  SELECT
    @ITEMID AS ID,
        PRESS,NUMPAGES,BLEEDS,COLOURS,FLATSIZE,FINISHSIZE,STOCK,PARENTSHEETSIZE,
    PRESSSHEETSIZE,NUMUP,LAYOUTORIENTATION,COATING,CONTOURCUT,LAMINATION,FINISHING,
    ACCESSORY,SPECIALINSTRUCTIONS,PACKAGELOCATION
  FROM
    itemsPrintDefinition
  WHERE
    ID = __ITEMID;        
  
        
  SELECT @ITEMID AS ID;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DuplicateShipToAddress` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `DuplicateShipToAddress`(__ID INT)
BEGIN

	INSERT INTO
		shipToAddresses
		(NAME,ADDRESS,CITY,PROVINCE,COUNTRY,POSTAL,PHONE,FAX,TAXGROUP,SHIPZONE)
	SELECT
		NAME,
        ADDRESS,
        CITY,
        PROVINCE,
        COUNTRY,
        POSTAL,
        PHONE,
        FAX,
        TAXGROUP,
        SHIPZONE
	FROM
		shipToAddresses
	WHERE
		ID = __ID;
        
	SELECT @SHIPID := LAST_INSERT_ID() AS ID;
    
    INSERT INTO 
		shipToAddressesUserList
        (ID,USERNAME)
	SELECT
		@SHIPID,
        USERNAME
	FROM
		shipToAddressesUserList
	WHERE
		ID = __ID;
    

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `DuplicateUserProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `DuplicateUserProfile`(__USERNAME VARCHAR(50), __NEWUSERNAME VARCHAR(50))
BEGIN

	INSERT INTO
		user
        (USERNAME,BRANCH,PASSWORD,PLAINPASSWORD,FIRSTNAME,LASTNAME,EMAIL,LANGUAGE,USERLEVEL,CREATEDDATE,MODIFIEDDATE,STATUS,COMMENTS)
	SELECT
		__NEWUSERNAME AS USERNAME,
        BRANCH,
        PASSWORD,
        PLAINPASSWORD,
        FIRSTNAME,
        LASTNAME,
        EMAIL,
        LANGUAGE,
        USERLEVEL,
        CURRENT_TIMESTAMP AS CREATEDDATE,
        CURRENT_TIMESTAMP AS MODIFIEDDATE,
        STATUS,
        COMMENTS
	FROM
		user
	WHERE
		USERNAME = __USERNAME;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `ExpireDownloadLinks` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `ExpireDownloadLinks`()
BEGIN

UPDATE
	orderDetail
SET
	DOWNLOADLINK = NULL
WHERE
	DOWNLOADLINK IS NOT NULL AND
    ORDERID IN (SELECT ORDERID FROM orderHeader WHERE ORDERDATE < DATE_ADD(CURRENT_TIMESTAMP,INTERVAL -30 DAY));



END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_branchAssetDefinition` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_branchAssetDefinition`()
BEGIN
	SELECT * FROM branchAssetDefinition;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_branches` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_branches`()
BEGIN
	SELECT
		*
	FROM
		branches;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_branchesAddresses` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_branchesAddresses`()
BEGIN
	SELECT
		*
	FROM
		branchesAddresses;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_branchesAssetData` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_branchesAssetData`()
BEGIN
	SELECT
		*
	FROM
		branchesAssetData;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_branchesFixtures` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `extractTableData_branchesFixtures`()
BEGIN
	SELECT * FROM branchesFixtures ORDER BY BRANCHCODE,FIXTURECODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_branchSkinDefinition` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_branchSkinDefinition`()
BEGIN

	SELECT
		*
	FROM
		branchSkinDefinition;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_campaign_fixtures` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `extractTableData_campaign_fixtures`()
BEGIN
	SELECT * FROM campaign_fixtures;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_categories` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_categories`()
BEGIN
	SELECT
		*
	FROM
		categories;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_itemPricing` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_itemPricing`()
BEGIN
SELECT * FROM itemPricing left outer join items on itemPricing.ITEMID = items.ID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_items` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_items`()
BEGIN
SELECT
		*
	FROM
		items;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_itemsBranchesLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_itemsBranchesLink`()
BEGIN
SELECT
		*
	FROM
		itemsBranchesLink;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_itemsInventory` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_itemsInventory`()
BEGIN
SELECT
		*
	FROM
		itemsInventory;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_itemsPrintDefinition` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_itemsPrintDefinition`()
BEGIN 
  SELECT items.CODE, items.DESCRIPTION, itemsPrintDefinition.* from itemsPrintDefinition left join items on itemsPrintDefinition.ID = items.ID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_itemsSubcategoryLink` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_itemsSubcategoryLink`()
BEGIN
SELECT
		*
	FROM
		itemsSubcategoryLink;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_newsItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_newsItems`()
BEGIN
SELECT
		*
	FROM
		newsItems;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_promos` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_promos`()
BEGIN
	SELECT * FROM promos;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_promosCategories` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `extractTableData_promosCategories`()
BEGIN
SELECT * FROM promosCategories;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_promosItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_promosItems`()
BEGIN
	SELECT * FROM promosItems;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_shipToAddresses` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_shipToAddresses`()
BEGIN
	SELECT
		*
	FROM
		shipToAddresses;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_shipToAddressesUserList` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `extractTableData_shipToAddressesUserList`()
BEGIN
SELECT * FROM shipToAddressesUserList;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_shipZoneCosts` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_shipZoneCosts`()
BEGIN
SELECT
		*
	FROM
		shipZoneCosts;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_subcategories` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_subcategories`()
BEGIN
SELECT
		*
	FROM
		subcategories;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_taxes` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_taxes`()
BEGIN
SELECT
		*
	FROM
		taxes;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extractTableData_user` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extractTableData_user`()
BEGIN
SELECT
		*
	FROM
		user;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `extract_TableData_branchAssetDefinition` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `extract_TableData_branchAssetDefinition`()
BEGIN
	SELECT * FROM branchAssetDefinition;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAccountTicket` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAccountTicket`(__TICKETID INT)
BEGIN

SELECT 
 HDR.*,
 DTL.*,
 USR.FIRSTNAME,
 USR.LASTNAME,
 UNIX_TIMESTAMP(DTL.DATEENTERED) AS UNIX_DATEENTERED 
FROM 
 accountMgrHeader HDR
LEFT OUTER JOIN
 accountMgrMessages DTL ON 
 HDR.ID = DTL.TICKETID
LEFT OUTER JOIN
user USR ON 
 DTL.ENTEREDBY = USR.USERNAME 
WHERE 
 ID = __TICKETID
ORDER BY
 DTL.DATEENTERED DESC;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAccountTicketList` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAccountTicketList`(__USERNAME VARCHAR(50))
BEGIN

	SELECT
		*,
        UNIX_TIMESTAMP(HDR.DATEENTERED) AS UNIX_DATEENTERED
	FROM
		accountMgrHeader HDR
	WHERE
		( HDR.STATUS = 1 OR (HDR.STATUS = 0 AND DATECLOSED >= DATE_ADD(NOW(), INTERVAL -14 DAY)) ) AND
        ( HDR.ENTEREDBY = __USERNAME OR __USERNAME IN (SELECT USERNAME FROM user WHERE USERLEVEL >= 99))
	ORDER BY
		HDR.STATUS DESC,
		HDR.DATEENTERED DESC;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetActiveAdItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetActiveAdItems`(__LANGUAGE VARCHAR(2), __SKIN VARCHAR(20))
BEGIN
	SELECT DISTINCT
		ADS.*
	FROM
		AdItems ADS
	INNER JOIN
		AdItemsBrand ADSBRAND ON 
			ADS.ID = ADSBRAND.ID
	WHERE
		(LANGUAGE = '--' OR LANGUAGE = __LANGUAGE) AND
        (ADSBRAND.BRANDNAME = 'ALL' OR ADSBRAND.BRANDNAME = __SKIN) AND
        CURRENT_TIMESTAMP >= STARTDATE AND CURRENT_TIMESTAMP <= ENDDATE
	ORDER BY
		COALESCE(SORTORDER,999);        
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetActiveNewsItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetActiveNewsItems`(__LANGUAGE VARCHAR(2))
BEGIN
	SELECT
		*
	FROM
		newsItems
	WHERE
		(LANGUAGE = '--' OR LANGUAGE = __LANGUAGE) AND
        CURRENT_TIMESTAMP >= STARTDATE AND CURRENT_TIMESTAMP <= ENDDATE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAdBrandInformation` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAdBrandInformation`(__ID INT)
BEGIN

SELECT 
	BSD.SKINNAME AS BRANDNAME,
    CASE WHEN ADB.BRANDNAME IS NOT NULL THEN 1 ELSE 0 END AS SELECTED
FROM
	(
		SELECT SKINNAME FROM branchSkinDefinition UNION ALL
        SELECT 'ALL' UNION ALL
        SELECT ''
	) BSD
LEFT OUTER JOIN
	(SELECT * FROM AdItemsBrand WHERE ID = __ID ) ADB ON 
		BSD.SKINNAME = ADB.BRANDNAME
ORDER BY 
	BSD.SKINNAME;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAdItem` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAdItem`(__ID INT)
BEGIN
	SELECT * FROM AdItems WHERE ID = __ID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAllAdItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAllAdItems`()
BEGIN
	SELECT 
		*
	FROM	
		AdItems;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAllNewsItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAllNewsItems`()
BEGIN
	SELECT
		*
	FROM
		newsItems;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAllShipToAddresses` */;
DELIMITER ;;
CREATE DEFINER=`admin`@`localhost` PROCEDURE `GetAllShipToAddresses`(__USEBRANCHES BOOLEAN, __USERNAME VARCHAR(30))
BEGIN

  SELECT
    RECTYPE,ID,NAME,ADDRESS,STOREID
  FROM
    (
  SELECT
    'S' AS RECTYPE,SADDR.ID, SADDR.NAME,SADDR.ADDRESS,CASE WHEN IFNULL(SADDR.STOREID,'') = '' THEN 'NA' ELSE STOREID END AS STOREID
  FROM
    shipToAddresses SADDR
  WHERE
    SADDR.ID IN (SELECT ID FROM shipToAddressesUserList WHERE USERNAME = '**ALL**' OR USERNAME = 'ALL' OR USERNAME = __USERNAME) 
        
  UNION ALL
    
    SELECT
    'B' AS RECTYPE,BRANCH.CODE,BRANCH.NAME,BADDR.ADDRESS,BRANCH.CODE AS STOREID
    FROM
    branches BRANCH
  INNER JOIN
    branchesAddresses BADDR ON 
      BRANCH.CODE = BADDR.CODE
  WHERE
    __USEBRANCHES = 1 AND
        BRANCH.STATUS = 1 AND
        BADDR.ISMAIN = 1
    ) ADDR
    ORDER BY
    NAME;

END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetAvailableShippingZones` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetAvailableShippingZones`()
BEGIN
	SELECT  * FROM shipZoneCosts LIMIT 1;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetBranchAddressInformation` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetBranchAddressInformation`(__CODE VARCHAR(20))
BEGIN
	SELECT
		*
	FROM
		branchesAddresses
	WHERE
		CODE = __CODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetBranchAssets` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetBranchAssets`(__CODE VARCHAR(20))
BEGIN

	SELECT
		BAD.TAG,
        BAD.TYPE,
        BAD.NAME,
	IFNULL(BAD.VALIDATEPATTERN,'') AS VALIDATEPATTERN,
	IFNULL(BAD.VALIDATEERRORMSG,'') AS VALIDATEERRORMSG,
        IFNULL(BDATA.VALUE,'') AS VALUE
	FROM
		branchAssetDefinition BAD
	LEFT OUTER JOIN
		(SELECT * FROM branchesAssetData WHERE BRANCHCODE = __CODE) BDATA ON 
			BAD.TAG = BDATA.TAG
	ORDER BY
		BAD.DISPLAYORDER;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetBranchDropDown` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetBranchDropDown`()
BEGIN
	SELECT CODE,NAME FROM branches WHERE STATUS = 1 ORDER BY NAME;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetBranchInformation` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetBranchInformation`(__CODE VARCHAR(20))
BEGIN
	SELECT * FROM branches WHERE CODE = __CODE;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetBranchProfile` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetBranchProfile`(IN `__USERNAME` VARCHAR(50))
    NO SQL
SELECT
		BRANCH.NAME,
		BADDR.*
	FROM
		branches BRANCH
	INNER JOIN
		branchesAddresses BADDR ON 
			BRANCH.CODE = BADDR.CODE
	WHERE
		ISMAIN = 1 AND
		BRANCH.CODE IN (SELECT BRANCH FROM user WHERE USERNAME = __USERNAME) ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetCartCheckoutInformation` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetCartCheckoutInformation`(__USERNAME VARCHAR(20))
BEGIN

SET SQL_SAFE_UPDATES = 0;

UPDATE
	orderHeader
SET
	ORDERDATE = CURRENT_TIMESTAMP,
    ORDERMODIFIED = CURRENT_TIMESTAMP,
    EXPDATE = DATE_ADD(CURRENT_TIMESTAMP,INTERVAL 8 DAY),
    TAXNAME1 = (SELECT TAXNAME1 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXNAME2 = (SELECT TAXNAME2 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXNAME3 = (SELECT TAXNAME3 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXNAME4 = (SELECT TAXNAME4 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXNAME5 = (SELECT TAXNAME5 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXRATE1 = (SELECT TAXRATE1 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXRATE2 = (SELECT TAXRATE2 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXRATE3 = (SELECT TAXRATE3 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXRATE4 = (SELECT TAXRATE4 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE),
    TAXRATE5 = (SELECT TAXRATE5 FROM taxes TAXES  WHERE SHIPTAXGROUP = TAXES.TAXCODE)
WHERE 
	USERNAME  = __USERNAME AND 
    ORDERSTATUS = 'CART';

UPDATE 
	orderDetail I 
INNER JOIN 
(
	SELECT
		DTL.ITEMLINE,
        DTL.EXTPRICE * HDR.TAXRATE1 AS TAXAMT1,
        DTL.EXTPRICE * HDR.TAXRATE2 AS TAXAMT2,
        DTL.EXTPRICE * HDR.TAXRATE3 AS TAXAMT3,
        DTL.EXTPRICE * HDR.TAXRATE4 AS TAXAMT4,
        DTL.EXTPRICE * HDR.TAXRATE5 AS TAXAMT5
	FROM
		orderHeader HDR
	INNER JOIN
		orderDetail DTL ON
			HDR.ORDERID = DTL.ORDERID
	WHERE
		USERNAME = __USERNAME AND 
		ORDERSTATUS = 'CART'		
) II ON 
	I.ITEMLINE = II.ITEMLINE
SET
	I.TAXAMT1 = II.TAXAMT1,
    I.TAXAMT2 = II.TAXAMT2,
    I.TAXAMT3 = II.TAXAMT3,
    I.TAXAMT4 = II.TAXAMT4,
    I.TAXAMT5 = II.TAXAMT5
;

SELECT
	HDR.*,
    DTL.*,
    ITEM.*,
    COALESCE(SGROUP.SGRPNAME,'') AS SGRPNAME,
    COALESCE(SGROUP.SGRPPIECES,1) AS SGRPPIECES,
    COALESCE(SGROUP.SGRPBOXTYPE,'') AS SGRPBOXTYPE,
    COALESCE(SGROUP.SGRPWEIGHTPIECE,1.0) AS SGRPWEIGHTPIECE
FROM
	orderHeader HDR
INNER JOIN
	orderDetail DTL ON 
		HDR.ORDERID = DTL.ORDERID
INNER JOIN
	items ITEM ON 
		DTL.ITEMID = ITEM.ID
LEFT OUTER JOIN
	shippingGroupItems SGROUPITEMS ON 
		ITEM.ID = SGROUPITEMS.ITEMID
LEFT OUTER JOIN 
	shippingGroup SGROUP ON 
		SGROUPITEMS.SGRPNAME = SGROUP.SGRPNAME
WHERE 
	USERNAME  = __USERNAME AND 
    ORDERSTATUS = 'CART';
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetCartDiscountCodes` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetCartDiscountCodes`(__ORDERID INT)
BEGIN
	SELECT * FROM orderPromos WHERE ORDERID = __ORDERID;
END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetCartItems` */;
DELIMITER ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `GetCartItems`(__USERNAME NVARCHAR(20))
BEGIN

SELECT 
	DTL.*
FROM 
	orderHeader HDR
INNER JOIN
	orderDetail DTL ON 
		HDR.ORDERID = DTL.ORDERID
WHERE 
	USERNAME COLLATE utf8_unicode_ci = __USERNAME AND 
    ORDERSTATUS = 'CART';


END ;;
DELIMITER ;
/*!50003 DROP PROCEDURE IF EXISTS `GetCategoriesBySearchTerm` */;
