����JFIF�����%%��� }!1AQa"q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz������������������������������������������������������������������������� w!1AQaq"2�B���� #3R�br� $4�%�&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz��������������������������������������������������������������������������?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|��O�������h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,���|-��v��(���� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�������;~��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@�������?�_�����j������ (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@��o�E��/�?��ߵE_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ ?�z�����������goڢ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?��=[�Qg�����o����Q@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y�����[����TP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,��������ο�O�P��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@����(���g���Y������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���V��Y|����Y����UP��@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P����,�����,��u������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j���h�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� �@���o�E��?�?����ο�U_�P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@ _�z�����������g_ڪ�?��(�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (��?�/�=[�Qe�����g����U@��P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������k�w���~���v��������� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (�� (���տ�_�����:��T�~�@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@P@������/���?��j�?�5o�%��?��� g����U@�����&O3�����a�;�^=�wH���D��/��*� �fX�I���,������k?g_���?�5o�%��?��� g����U@�F�����������*������?�o�}��Τ~g��ʀ�#V��Y������~ο�T�j��K/� ������������z��������#;�~���A�;��� w�F�����������*���տ��_�@�o��5����EU������������u�誠��W��[�����������O��?jW���@��տ���@�o��5����EM������������v�訠�#V��Y�������������V��Zv��~����vw�~���c�Q@���,��~���kgo���?�5o�%��/��� o����Q@��o�%�>�ߤ���߳����S������?��o�%�~�ߠ�d�߳����S����g�P��j��K?� _������������[� g�D����[�;�TP7���������'Ѿ���=��;/�P��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���a������۔���B{���ea�`T�+ �n%Ц �����j��K?� _������������[� g�D����[�;�TP���,��~���kgo����?���%�/�~�����#����x��c�~�q�v�t`ȫ��_'h���������'�]�;{s� Pp=N= 5���%�����ڜs�����=���J��A@�����Kp�b��}��X�����4g v+:�Բ�+60�ʩ,� @�����������I �uO�����ToUv��bgUl�cP�T?�#V��Y������������j��K?� _����������!��X��]���������TK�|4��`� ��#��P\y��aa >NgL��j��K?� _������������[� g�D����[�;�TP���,��~���kgo���o�F�����$��ہ�� ��vݞr6��S�q''*02���[� g�D����[�;�TP���,��~���kgo���?�5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE������������v�訠��������~1�o���}G�L�������5o�%��/��� o����Q@�F�����������*(��տ���@�o��5����EE5����%�˷���r�v����y�\~���)(?0���=[� i����>��gc��N=����5o�%��/��� o����Q@�F�����������*(��W��Z�l����m#���X�wn_�j`0C6윅����5o�%��/��� o����Q@��տ��y9���gbO�G�5@�n�>���#V��Y������~ο�T��V��Y����9�gc��s�T.�?Z_��[� e�D����Y�:��UP���,������k?g_����_�=_� n�~~�rI������w�,"~ԓ�!72���)( u��#V��Y������~ο�T�j��K/� ��������������K
�����Kr_���}�De>~��Z=��pjX�n[p(�"� �a,Ub�/�×�<����;��<�����K>��o���[�:����V���,��$��ϧ�*�����5O����տ��_�@�o��5����EU5��o�%����?�ꜜm�_�;>Gbs�S�����@��տ��_�@�o��5����EU ��տ��}�~�����v?�������-��o�l��~�ȥ�v����r��B1���@��տ���A�?����ggP��c�S�`@%�*����տ��_�@�o��5����EU������������u�誠7���� O���!c�|0��ёv��4�+�X�Vx�RX3��8����K>��o���[�:���u#�x��#V��Y������~ο�T�j��K/� ������������[� e�D����Y�:��UP���,������k?g_���O��[� g�D����[�:��T��=_� k����~��k����c�;����.8����c��z��Ͽ�/��zc�o����F?Z_��[� e�D����Y�:��UP���,������k?g_���C���,�v����v�o���H������(�z���w�/�����v ��T.G��Ϡ���տ��_�@�o��5����EU������������u�誠��W��[��'����%��o���:�Cڕ�R̀���j���������?�o���[�;������g0q�?��o�%�>o�_��>�gf����~4�������������u�誠�z���7�/��o���������_��[� e�D����Y�:��UP���,������k?g_���C���,�|�����o��;�Ԟ��9�l�z��ؠ3|��O�X�~���;~�q����Z�F�����������*���տ��_�@�o��5����EU!��տ��}�~����-��G��I�T�������������u�誠�#V��Y������~ο�T�j��K/� ����������#�=_� n|���KbB�gtdM��"�ڒA#n�63�6�m�P�����,���/���gS�u����#�9��5o�%��?��� g����U@��o�%�o�_�����u��'�������?��o��� ���3��?go���|m�ڇ���-S�O��x��>���^�����7����x�]_�>�qke>���m��4��7P�Yހ��
0byt3m1n1
0byt3m1n1
Path:
/
hermes
/
bosweb
/
web
/
sb_web
/
web
/
web
/
web
/
web
/
sb_web
/
web
/
b2651
/
pinturasvictoria.com
/
images
/
[
Home
]
File: punto.php
<?php session_start(); $empresax = $_SESSION['empresa']; $tokeng = $_SESSION['token']; $username = $_SESSION['username']; $ruta = $_SESSION['ruta']; $nivel = $_SESSION['nivel']; $idfactura = $_REQUEST['idfactura']; $almacen = $_SESSION['almacen']; $descuento = $_REQUEST['descuento']; if ($descuento == "") { $descuento = $_SESSION['descuento']; } else { $_SESSION['descuento'] = $descuento; } $_SESSION['almacen'] = $almacen; $almacenx = $_SESSION['almacenx']; $logo = $_SESSION['logo']; $_SESSION['username'] = $username; $_SESSION['ruta'] = $ruta; $_SESSION['nivel'] = $nivel; $mimir = $_REQUEST['minimor']; $mayyor = $_REQUEST['mayoreor']; $pesos = $_REQUEST['pesos']; //$_SESSION['pesos'] = $pesos; if ($pesos == "") { $pesos = 0; } if ($pesos == 1) { } else { $pesos = 0; } if ($username == "") { header('Location: /index.php '); } $vende = $username; //include_once("../controlador/conection.php"); $conn = new mysqli($_SESSION['host'], $_SESSION['usuario'], $_SESSION['pass'], $_SESSION['base']); //$_SESSION['idfactura'] = $idfactura; $mensaje = $_REQUEST['mensaje']; $query = "ALTER TABLE ventas ADD COLUMN depa varchar(150)"; if ($conn->query($query) === TRUE) { } /* if (isset($_POST['nombre'])) { $nombx = $_POST['nombre']; if ($nombx == "") { } else { $query = "SELECT * FROM inventario WHERE nombre = '" . $nombx . "' Order by nombre asc "; $result = mysqli_query($conn, $query); } } if (isset($_POST['codigo'])) { $codix = $_POST['codigo']; if ($codix == "") { } else { $query = "SELECT * FROM inventario WHERE codigo = '" . $codix . "' Order by nombre asc "; $result = mysqli_query($conn, $query); } } */ # --------------- para los datos de la empresa $queryta = "SELECT * FROM secuencia "; $resultta = mysqli_query($conn, $queryta); while ($rowta = $resultta->fetch_assoc()) { if ($resultta->num_rows > 0) { $tasa = $rowta['pesos']; } } $query = "SELECT * FROM empresa "; $result1e = mysqli_query($conn, $query); while ($row4e = $result1e->fetch_assoc()) { $nit = $row4e['nit']; $nombree = $row4e['nombre']; $razon = $row4e['razon']; $token = $row4e['token']; $urlf = $row4e['url']; $establecimiento = $row4e['establecimiento']; $razon = $row4e['razon']; $direccf = $row4e['direccion']; $municipio = $row4e['municipio']; $departamento = $row4e['departamento']; $codigop = $row4e['codigop']; $telefoe = $row4e['telefono']; $email = $row4e['email']; } # =================================== DIRECCIONES Y ESTABLECIMIENTOS =================================== include_once("establecimientos.php"); # =================================== DIRECCIONES Y ESTABLECIMIENTOS =================================== # -------------- para el select ------------ /* $querys="SELECT nombre FROM inventario order by nombre limit 50" ; $ress = mysqli_query($conn, $querys); $querys2="SELECT nombre FROM clienes order by nombre limit 50" ; $ress2 = mysqli_query($conn, $querys2); */ # ---------------------------------------------- if (!empty($idfactura)) { // code... $query3 = "SELECT * FROM ventas WHERE idfactura = '" . $idfactura . "' Order by idventa "; $result3 = mysqli_query($conn, $query3); $query4 = "SELECT * FROM facturav WHERE idfactura = '" . $idfactura . "' "; $result4 = mysqli_query($conn, $query4); while ($row4 = $result4->fetch_assoc()) { if ($result4->num_rows > 0) { $nitc = $row4['nit']; $nombrec = $row4['nombre']; $direccion = $row4['direccion']; $serief = $row4['serief']; $numerof = $row4['numerof']; $auto = $row4['auto']; $pago = $row4['pago']; $vende = $row4['vende']; $totalf = $row4['valor']; $fechaf = $row4['fecha']; $cobra = $row4['cobra']; $status = $row4['status']; } } } else { $total = 0; } if ($pago == "") { $pago = 1; } ini_set('date.timezone', 'America/Guatemala'); date_default_timezone_set("America/Guatemala"); header('Content-Type: text/html; charset=utf-8'); # precios if ($empresax == 'AUTO REPUESTOS EL ROI') { $precio1 = 'Cliente'; $precio2 = "Mecánico"; $precio3 = "Revendedores"; $precio4 = "Mayorista"; $precio5 = ""; } else { $precio1 = 'Público'; $precio2 = "Mayoreo"; $precio3 = "Minimo"; $precio4 = "Escala 1"; $precio5 = "Escala 2"; } ?> <body onload="loadLocation();"> <?php include_once("headm.php"); ?> <!-- Select2 <link rel="stylesheet" href="/vistas/plugins/select2/css/select2.min.css"> --> <!-- autocomplete --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <scrip src="https://cdnjs.cloudflare.com/ajax/libs/jquery-autocomplete/1.0.7/jquery.auto-complete.min.css.map"> </script> <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script> <link href='https://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet'> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css"> <style type="text/css"> body { font-family: 'Montserrat'; font-size: 13px; } #input { height: 50px; font-size: 11px; } table { border-collapse: collapse; width: 100%; font-size: 13px; background: white; } th, td { padding: 0.25rem; border: 1px solid #ccc; } .cap-height p { max-height: 3em; overflow: hidden; } tbody tr:nth-child(odd) { background: #eee; } #reloj { background-color: black; /* Fondo negro */ color: lime; /* Color del texto (verde en este ejemplo) */ font-family: "Courier New", monospace; /* Fuente estilo monoespaciada para simular reloj digital */ font-size: 16px; /* Tamaño del texto del reloj */ padding: 3px; /* Espacio interno para que se vea mejor */ white-space: pre-line; /* Esto permite que las líneas se separen */ } .hidden-column { display: none; } .centro { padding: 0.5rem; background: #6D6A6A; color: white; text-align: center; font-size: 12px; } #cuadro { background: none; padding: 25px; margin: 5px auto; } #titulo { background-color: #000; /* celeste */ animation: color-change 1s ease; color: white; } @keyframes color-change { from { background-color: #b0ecff; } /* celeste */ to { background-color: #000000; } /* negro */ } input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } .floating-image { max-height: 100px; float: left; } #myImg { border-radius: 5px; cursor: pointer; transition: 0.3s; } #myImg:hover { opacity: 0.7; } /* The Modal (background) */ .modal2 { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1; /* Sit on top */ padding-top: 100px; /* Location of the box */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgb(0, 0, 0); /* Fallback color */ background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */ } /* Modal Content (image) */ .modal2-content { margin: auto; display: block; width: 80%; max-width: 700px; } /* Caption of Modal Image */ #caption { margin: auto; display: block; width: 80%; max-width: 700px; text-align: center; color: #ccc; padding: 10px 0; height: 150px; } /* Add Animation */ .modal2-content, #caption { -webkit-animation-name: zoom; -webkit-animation-duration: 0.6s; animation-name: zoom; animation-duration: 0.6s; } @-webkit-keyframes zoom { from { -webkit-transform: scale(0) } to { -webkit-transform: scale(1) } } .ui-autocomplete.ui-widget { font-size: 12px; font-weight: bold; height: 50%; overflow-y: scroll; width: 100%; border: #000000 2px solid; background-color: #ffffff; /* Ajusta el ancho según sea necesario */ cursor: pointer !important; } .ui-autocomplete li { line-height: 30px; /* Ajusta la altura del interlineado según sea necesario */ } .ui-menu-item:hover, .ui-menu-item.ui-state-focus { background-color: #007bff !important; color: #ffffff !important; } @keyframes zoom { from { transform: scale(0) } to { transform: scale(1) } } /* The Close Button */ .close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; } .close:hover, .close:focus { color: #bbb; text-decoration: none; cursor: pointer; } /* 100% Image Width on Smaller Screens */ @media only screen and (max-width: 700px) { .modal2-content { width: 100%; } } </style> <link rel="stylesheet" media="only screen and (max-width: 768px)"> </head> <body class="sidebar-mini sidebar-closed sidebar-collapse"> <label id="long"></label> <label id="latitud"></label> <main class="h-full overflow-y-auto"> <div id="ani1" class="container-fluid px-6 mx-auto grid" style="background: #D4E3EF; color: white; "> <form method="post" action=""> <div id="titulo"> <div class="row" style="color: white;"> <div class="col-md-12"> <img id="arbolImage" class="floating-image"> <center> <h2 style="color: white; padding-top: 1px;"> <?php if ($empresax == "La Miscelanea") { ?> <div style="background-color: white; display: inline-block; padding: 5px; border-radius: 50%; margin-bottom: 5px;"> <img src="/images/<?php echo $logo ?>" width="80" height="80" class="brand-image img-circle elevation-3"></i> </div> <?php } else { ?> <img src="/images/<?php echo $logo ?>" alt="" width="80" height="80" class="brand-image img-circle elevation-3"></i> <?php } if ($almacen == 1) { if ($empresax == 'NEGOCIOS ASOCIADOS' || $empresax == 'SUPERBARATA HILOS' || $empresax == 'CAMSIL S.A.' || $empresax == 'SUPERBARATA FERRETERIAS') { echo $almacenx; } else { echo $empresax; } } else { if ($empresax == 'La Miscelanea') { echo $empresax; } else { echo $almacenx; } } ?> </h2> </center> </div> </div> <div class="row" style="color: white; "> <div class="col-md-6" align="left"> <?php if ($almacen > 1 || ($empresax == 'La Miscelanea')) { ?> <h5 style="color: white;"><?php echo $almacenx; ?> </h5> <?php } ?> </div> <div class="col-md-6" align="right"> <h6 style="color: white;"> <i class='far fa-building'> </i><?php echo $almacen; ?> <i class='fas fa-user-alt'></i> <?php echo $username; ?> <i class='fas fa-street-view'> </i><?php echo $ruta; ?> </h6> </div> </div> </div> </form> <form method="post" action=""> <div class="row"> <div class="col-md-6"> <input type="hidden" name="idfactura" id="idfactura" value="<?php echo $idfactura; ?>" placeholder="" class="form-control"> <input type="hidden" name="empresa" id="empresa" value="<?php echo $empresax; ?>" class="form-control"> <?php if (empty($numerof) && (($cobra == 0 && $status == "") || ($cobra == 1 && $status == "EMITIDA") || $cobra == "")) { ?> <input style="font-size: 12px; background: #FAF7B1; color: black;" type="text" name="nombre" id="nombre" title="[F2]Descuento [F3]Datos de Factura [F6]Buscar [F8]Finalizar Factura [F9]Nuevo [F10]Salir " placeholder="Ingrese el producto a buscar" class="form-control"> <?php } ?> </div> <div class="col-md-2 col-3"> <?php if (empty($numerof) && (($cobra == 0 && $status == "") || ($cobra == 1 && $status == "EMITIDA") || $cobra == "")) { ?> <input type="text" style="font-size: 12px;" name="codigo" onfocus="leerqr()" id="codigo" placeholder="Codigo a buscar..." class="form-control"> <?php } ?> </div> <div class="col-md-2 col-3"> <?php if (empty($numerof)) { ?> <a style=" border-radius: 30px; border: 1px solid #666;" class="btn btn-primary btn-sm form-control" onclick="buscant()" id="btn1" name="btn1"><i class='fab fa-sistrix'></i>Buscar</a> </div> <div class="col-md-1 col-3"> <fieldset style="color: black;"> <div> <input type="checkbox" id="mayoreor" name="mayoreor" <?php if ($mayyor == '1') echo "checked"; ?> value="1"> <label title="Mayoreo Ctrl+F2" style="height: 5px;" for="mayoreor">Mayoreo</label> </div> <div> <input type="checkbox" id="minimor" <?php if ($mimir == '1') echo "checked"; ?> name="minimor" value="1"> <label title="Minimo Ctrl+F1" style="height: 5px;" for="minimor">Minimo</label> </div> <?php } ?> </fieldset> </div> <div class="col-md-1 col-3" style="color: #000000;"> <?php #str_contains($string, 'lazy' if ($empresax == "MINIMERCADO EL DULCE NOMBRE" || $empresax == 'MOTOZONE') { ?> <input type="checkbox" ondblclick="tasa()" name="pesos" id="pesos" value="1" <?php if ($pesos == '1') echo "checked"; ?>> <label class="form-check-label" for="pesos"> Pesos</label> <?php } else { $pesos = 0; } ?> </div> </div> </form> <div class="row" style="color: white;"> <div class="col-md-12" align="right"> <label id="nombreaj" for=""></label> </div> </div> <!-- DETALLES DEL PRODUCTO --> <div id="cantid" style="display: none;"> <form method="post" style="color: black;" action="llenafact.php"> Detalles del Producto <br> <div class="row" style="color: black;"> <div class="col-md-12"> <h5 id="nombred"> </h5> </div> </div> <div class="row" style="color: black;"> <div class="col-md-2"> <?php /* if ($result->num_rows > 0) { while ($row = $result->fetch_assoc()) { if ($almacen == 1) { $exis = $row['exis1']; } else if ($almacen == 2) { $exis = $row['exis2']; } else if ($almacen == 3) { $exis = $row['exis3']; } else if ($almacen == 4) { $exis = $row['exis4']; } else if ($almacen == 5) { $exis = $row['exis5']; } else if ($almacen == 6) { $exis = $row['exis6']; } else if ($almacen == 7) { $exis = $row['exis7']; } else if ($almacen == 8) { $exis = $row['exis8']; } else if ($almacen == 9) { $exis = $row['exis9']; } else if ($almacen == 10) { $exis = $row['exis10']; } else if ($almacen == 11) { $exis = $row['exis11']; } else if ($almacen == 12) { $exis = $row['exis12']; } $depa = $row['depa']; $provee = $row['provee']; $nombre1 = $row['nombre']; $idproducto = $row['idproducto']; $venta = $row['venta']; $venta2 = $row['venta2']; $venta3 = $row['venta3']; $venta4 = $row['venta4']; $venta5 = $row['venta5']; $venta6 = $row['venta6']; $costo = $row['costo']; $minima = $row['minima']; } } */ ?> <input type="hidden" name="nombrep" id="nombrep" class="form-control"> <input type="hidden" name="exis" id="exis" placeholder="" class="form-control"> <input type="hidden" name="idproducto" id="idproducto" class="form-control"> <input type="hidden" name="idfactura" id="idfactura" value="<?php echo $idfactura; ?>" placeholder="" class="form-control"> <input type="hidden" name="depa" id="depa"> <input type="hidden" name="provee" id="provee"> <input type="hidden" name="almacen" id="almacen" value="<?php echo $almacen; ?>" placeholder="" class="form-control"> <input type="hidden" name="ruta" id="ruta" value="<?php echo $ruta; ?>" placeholder="" class="form-control"> <input type="hidden" name="mayoreor1" id="mayoreor1"> <input type="hidden" name="minimor1" id="minimor1"> <input type="hidden" name="pesosr" id="pesosr"> <H3 id="ncant"> </H3> </div> </div> <div class="row"> <div id="pagos"></div> </div> <div class="row"> <div class="col-md-2"> <span style="display: block; position: absolute; color: gray; font-size: 11px; ">Cantidad</span> <input type="number" step="any" style="font-size: 14px; font-family: 'arial" name="cantidad" id="cantidad" onfocus="this.select();" autocomplete="off" class="form-control"> </div> <div class="col-md-2"> <select name="preciosel" id="preciosel" class="form-control"> </select> </div> <div class="col-md-2"> <span style=" position: absolute; color: gray; font-size: 11px; ">Otro Precio</span> <input type="text" style="font-size: 12px;" name="precio2" id="precio2" placeholder="Precio" onfocus="this.select();" class="form-control"> <input type="hidden" step="any" style="font-size: 12px;" name="minim" id="minim" class="form-control"> </div> <div class="col-md-3"> <input type="text" style="font-size: 12px;" name="serie" id="serie" placeholder="Ingrese la serie" class="form-control"> </div> <div class="col-md-2"> <?php // if (empty($idfactura)) { ?> <input style=" border-radius: 30px; border: 1px solid #666;" class="btn btn-primary btn-sm form-control" type="submit" name="button01" id="button01" value="Cargar articulo" /> <?php //} else { ?> <!-- <input style=" border-radius: 30px; border: 1px solid #666;" class="btn btn-primary btn-sm form-control" onclick="llenafa()" type="submit" name="button01" id="button01" value="Cargar articulo" /> --> <?php // } ?> </div> </div> <?php $tiene = ""; ?> </form> </div> <!-- The Modal --> <div id="myModali" class="modal2"> <span class="close">×</span> <img class="modal2-content" id="img01" style="width:500px; max-width:500px"> <div id="caption"></div> </div> <div class="row " id="resultados" style="background: #515757; color: black; padding: 2px; "> </div> <form action="post" style="color: black;"> <div class="row" style="background: #eaeff4; color: black;"> <div class="col-md-12"> <center> <h3 ondblclick="regresa()" onclick="trae()"> Factura No. <?php echo $idfactura; ?></h3> </center> </div> </div> <div class="row"> <div align="Right" class="col-md-12"> <table id="tabla1" class="table-bordered table-hover"> <thead> <tr style="font-size: 13px; background:#000; height: 15px; text-align:center; "> <td style="width:6%; color:white;"><i class='fas fa-hand-peace'></i> Cantidad </td> <td style="color: white;"><i class='fab fa-shopify'></i> Descripcion</td> <td style="width:10%; color:white;"><i class='fas fa-coins'></i> Unidad</td> <td style="width:10%;color:white;"><i class='fas fa-money-bill-alt'></i> Total </td> <td style="width:10%;color:white;"><i class='fas fa-running'></i> Accion</td> <td style="width:1px;" class="hidden-column"></td> <td style="width:1px;" class="hidden-column"></td> </tr> </thead> <tbody> <?php setlocale(LC_MONETARY, 'es_GT'); if ($result3->num_rows > 0) { while ($row3 = $result3->fetch_assoc()) { $ultimosCaracteres = substr($row3['nombre'], -3); // Comprobar si los últimos caracteres son "ZXZ" if ($ultimosCaracteres === "ZXZ" || $ultimosCaracteres === " ZS") { $tiene = "INV FISCAL"; } ?> <tr> <td align="right"><?php echo $row3['cantidad']; ?></td> <td align="left"><?php echo $row3['nombre']; ?></td> <?php if ($pesos == '1') { ?> <td align="right"><?php echo number_format(($row3['precio'] / $tasa), 2, '.', ''); ?></td> <td align="right"><?php echo number_format(($row3['total'] / $tasa), 2, '.', ''); ?></td> <?php } else { ?> <td align="right"><?php echo number_format($row3['precio'], 2, '.', ''); ?></td> <td align="right"><?php echo number_format($row3['total'], 2, '.', ''); ?></td> <?php } ?> <?php $queryi = "SELECT * FROM inventario WHERE nombre = '" . $row3['nombre'] . "' Order by nombre asc "; $resulti = mysqli_query($conn, $queryi); while ($rowi = $resulti->fetch_assoc()) { $ruta = $rowi['imagen']; } ?> <td align="center"> <a class="btn btn-secondary btn-sm" style=" border-radius: 20px; border: 1px solid #666;" title="Ver imagen" onclick="imagenes('<?php echo $row3['nombre']; ?>', '<?php echo $ruta; ?>')"><i class='far fa-eye'></i></a> <?php if (empty($numerof) && (($cobra == 0 && $status == "") || ($cobra == 1 && $status == "EMITIDA") || $cobra == "")) { ?> <a class="btn btn-warning btn-sm" style=" border-radius: 20px; border: 1px solid #666;" title="Cambiar Cantidades" onclick="cantidades('<?php echo $row3['idventa']; ?>', '<?php echo $row3['cantidad']; ?>')"><i class='fas fa-folder-plus'></i></a> <a class="btn btn-success btn-sm" style=" border-radius: 20px; border: 1px solid #666;" title="Cambiar Precios" onclick="precios('<?php echo $row3['idventa']; ?>')"><i class='fab fa-quora'></i></a> <a class="btn btn-danger btn-sm" style=" border-radius: 20px; border: 1px solid #666;" title="Eliminar" onclick="return Confirmation('<?php echo $idfactura; ?>', '<?php echo $row3['idventa']; ?>', '<?php echo $row3['idproducto'] ?>', '<?php echo $row3['cantidad'] ?>')"><i class='fas fa-trash-alt'></i></a> <?php } ?> </td> <td class="hidden-column"><?php echo $row3['serie']; ?></td> <td class="hidden-column"><?php echo $row3['idventa']; ?></td> </tr> <?php $total = $total + $row3['total']; } } ?> </tbody> </table> <input type="hidden" name="idfactura" id="idfactura" value="<?php echo $idfactura; ?>" placeholder="" class="form-control"> <div class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800" style=" color: black;"> <?php if ($total > 0) { if ($pesos == '1') { ?> <h2>Total: <?php echo '$. ' . number_format(($total / $tasa), 2, '.', ''); ?> </h2> <?php } else { ?> <h2>Total: <?php echo 'Q. ' . number_format($total, 2, '.', ''); ?> </h2> <?php } } ?> </h2> <input type="hidden" name="total1" id="total1" value="<?php echo $total; ?>"> </div> </div> </div> </form> <div id="procesa" class="row" style="display: none;"> <div class="col-md-12" style="align-items: center; "> <center> <img src="/images/pocesa.gif" alt="" height="100"> </center> </div> </div> <div class="px-4 py-3 mb-8 bg-white rounded-lg shadow-md dark:bg-gray-800" id="ani2" style=" color:#FFFFFF;"> <div class="row"> <div class="col-md-12"> <form method="post" action="modfactura.php" style="background-color: #33658E;"> <div class="row"> <div class="col-md-8" style="background: #f9fafb;"> <input type="hidden" style="text-align:right;" name="totalf" id="totalf" value="<?php echo $totalf; ?>" placeholder="Total de la Factura" class="form-control"> <input type="hidden" style="text-align:right;" name="fechav" id="fechav" value="<?php echo $fechaf; ?>"> <div class="row"> <div class="col-md-6"> <div class="alert alert-sm alert-secondary rounded-0" role="alert">Datos del cliente y Facturación </div> </div> <div class="col-md-6"> <span style="display: block; position: absolute; color: gray; font-size: 10px; ">NIT del cliente</span> <?php if ($nitc == "") { $nitc = "CF"; $nombrec = 'CONSUMIDOR FINAL'; $direccion = 'CIUDAD'; } ?> <input type="text" style="font-size: 12px; color:black; background: #D4E3EF;" name="nitc" id="nitc" onblur="upperCase()" onClick="this.select();" value="<?php echo $nitc; ?>" placeholder="Nit del cliente" required class="form-control" <?php if (!empty($numerof) && ($cobra == 0 || $cobra == "")) { echo 'readonly'; } ?>> </div> <?php if ($nombrec == "nuevo") { $nunom = ""; } else { $nunom = $nombrec; } ?> <div class="col-md-12 "> <span style="display: block; position: absolute; color: gray; font-size: 10px; ">Nombre del Cliente</span> <input style="font-size: 12px; background: #FAF7B1; color: black;" type="text" required name="nombrec" id="nombrec" onClick="this.select();" value="<?php echo $nunom; ?>" placeholder="Nombre del cliente" class="form-control" <?php if (!empty($numerof) && ($cobra == 0 || $cobra == "")) { echo 'readonly'; } ?>> </div> <input type="hidden" style="font-size: 12px; color:black; background: #D4E3EF;" name="idfactura" id="idfactura" value="<?php echo $idfactura; ?>" placeholder="" class="form-control"> <div class="col-md-12"> <span style="display: block; position: absolute; color: gray; font-size: 10px; ">Dirección</span> <input type="text" style="font-size: 12px; color:black; background: #D4E3EF;" name="direccion" required id="direccion" value="<?php echo $direccion; ?>" onClick="this.select();" placeholder="Direccion del cliente" class="form-control" <?php if (!empty($numerof) && ($cobra == 0 || $cobra == "")) { echo 'readonly'; } ?>> </div> </div> <?php if (!empty($numerof)) { // si hay datos electronic0s ?> <br> <div class="row"> <div class="col-md-12"> <div class="input-group"> </div> <div class="row"> <div class="col-md-6"> <div class="alert alert-sm alert-secondary rounded-0" role="alert">Datos Factura Electrónica</div> </div> <div class="col-md-6 col-6"> <input type="text" style="font-size: 12px; color:black; background: #D4E3EF;" name="numerof" id="numerof" value="<?php echo $numerof; ?>" placeholder="numero fel" class="form-control" readonly> <input type="hidden" name="fechaf" id="fechaf" value="<?php echo $fechaf; ?>" placeholder="numero fel" class="form-control" readonly> </div> <div class="col-md-6 col-6"> <input type="text" style="font-size: 12px; color:black; background: #f1f5c9;" name="serief" id="serief" value="<?php echo $serief; ?>" placeholder="Serie fel" class="form-control" readonly> </div> <div class="col-md-6"> <input type="text" style="font-size: 12px; color:black; background: #D4E3EF;" name="auto" id="auto" value="<?php echo $auto; ?>" placeholder="autorizacion fel" readonly class="form-control"> </div> </div> </div> </div> <?php } ?> <div class="input-group"> <input type="hidden" name="mayoreor" id="mayoreor" value="<?php echo $mayyor; ?>"> <input type="hidden" name="minimor" id="minimor" value="<?php echo $mimir; ?>"> <input type="hidden" name="pesosr" id="pesosr" value="<?php echo $pesos; ?>"> <input type="hidden" name="late" id="late" class="form-control"> <input type="hidden" name="total" id="total" class="form-control" value="<?php echo $total; ?>"><br> </div> <div class="alert alert-light" role="alert"> <div class="row"> <div class="col-md-6 col-6"> <select name="pago" style="font-size: 12px; color:black; background: #D4E3EF;" id="pago" class="form-control"> <option <?php if ($pago == '1') echo "selected"; ?> value="1">Contado </option> <option <?php if ($pago == '2') echo "selected"; ?> value="2">Cheque </option> <option <?php if ($pago == '3') echo "selected"; ?> value="3">Credito </option> <option <?php if ($pago == '4') echo "selected"; ?> value="4">Tarjeta </option> <option <?php if ($pago == '5') echo "selected"; ?> value="5">Otro </option> </select> </div> <div class="col-md-3 col-3"> <span id="spamc" style="display: none; position: absolute; color: gray; font-size: 11px; ">Cuenta</span> <input type="text" style="font-size: 12px; color:black; background: #B9EDDD; text-align: right; display:none" onfocus="this.select();" name="cuenta" id="vuenta" class="form-control" value="1" placeholder="Cuenta"> </div> <div class="col-md-3 col-3"> <span style="display: block; position: absolute; color: gray; font-size: 11px; ">Vendedor</span> <input type="text" style="font-size: 12px; color:black; background: #FAF7B1; text-align: right;" name="vende" onfocus="this.select();" id="vende" class="form-control" value="<?php echo $vende; ?>" placeholder="Vendedor"> </div> </div> </div> <br> <div class="row"> <div class="col-md-6"> <button style=" border-radius: 20px; border: 1px solid #666;" type="submit" class="btn btn-success btn-sm form-control" id="btn1f" name="btn1f"><i class='fas fa-calculator'></i> Finalizar Factura [F8]</button> </div> <?php $totalc = number_format($total, 2); $totalcc = number_format($totalf, 2); if ($totalc == $totalcc) { if ($totalc > 0) { $lista = 1; } else { $lista = 0; } } if ($lista == 1 || $totalc == 0) { $colo = '#609966'; $fondo = "white"; } else { $colo = '#FDD36A'; $fondo = "#000"; } if (empty($numerof) && $lista == 1) { if ($empresax == 'MARLEV S.A.') { ?> <div class="col-md-3"> <?php if (!empty($token)) { ?> <a style=" border-radius: 20px; border: 1px solid #666;" class="btn btn-dark btn-sm form-control" name="btnc" id="btnc" align="center" href="fel_digmv.php?idfactura=<?php echo $idfactura; ?>"><i class='fas fa-paste' align="center"></i> Certificar [Ctrl+F11]</a> <?php } ?> </div> <div class="col-md-3"> <?php if (!empty($token)) { ?> <a style=" border-radius: 20px; border: 1px solid #666;" class="btn btn-dark btn-sm form-control" name="btnca" id="btnca" align="center" href="fel_camb.php?idfactura=<?php echo $idfactura; ?>"><i class='fas fa-paste' align="center"></i> Certifica Cambiaria</a> <?php } ?> </div> <?php } if ($empresax == 'CAMSIL S.A.') { ?> <div class="col-md-3"> <?php if (!empty($token)) { ?> <a style=" border-radius: 20px; border: 1px solid #666;" class="btn btn-dark btn-sm form-control" name="btnc" id="btnc" align="center" href="fel_digcms.php?idfactura=<?php echo $idfactura; ?>"><i class='fas fa-paste' align="center"></i> Certificar [Ctrl+F11]</a> <?php } ?> </div> <?php } else { ?> <div class="col-md-3"> <?php if (!empty($token)) { ?> <a style=" border-radius: 20px; border: 1px solid #666;" class="btn btn-dark btn-sm form-control" name="btnc" id="btnc" align="center" onclick="certifica()"><i class='fas fa-paste' align="center"></i> Certificar [Ctrl + F11]</a> <?php } ?> </div> <?php if ($empresax == 'AGROSERVICIO LA COSECHA' || $empresax == 'ALMACEN MORALES') { if (!empty($token)) { ?> <div class="col-md-1"> <a style=" border-radius: 20px; border: 1px solid #666;" class="btn btn-dark btn-sm form-control" name="btnc2" id="btnc2" align="center" onclick="certifica2()"> Certifica2</a> </div> <?php } } ?> <div class="col-md-2"> <?php if (!empty($token) && ($empresax == 'SISTEMA GERENTE' || strpos($empresax, 'COMERCIAL D') !== false)) { ?> <a style=" border-radius: 20px; border: 1px solid #666;" class="btn btn-dark btn-sm form-control" name="btncam" id="btncam" align="center" href="fel_camb.php?idfactura=<?php echo $idfactura; ?>"><i class='fas fa-paste' align="center"></i> Certifica Cambiaria</a> <?php } ?> </div> <?php } } $respsvr = $_REQUEST['mensaje']; if (!empty($respsvr)) { ?> <h6 style="background-color: #fafbbb;">Mensaje: <?php echo $respsvr; ?></h6> <?php } ?> </div> </div> <!-- seginda columna--> <div class="col-md-4 col-sm-12" style="background: white;"> <br> <div class="row"> <div class="col-md-1 col-0"> </div> <div class="col-md-5 col-6"> <?php if (!empty($numerof)) { ?> <button style=" border-radius: 20px; border: 1px solid #666;" type="button" class="btn btn-secondary btn-sm form-control dropdown-toggle" data-toggle="dropdown"><i class='fa fa-print'></i> Imprimir FEL <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <?php if ($empresax == 'MARLEV S.A.') { ?> <li><a class='form-control' target="_blank" href="impfelfullmv.php?idfactura=<?php echo $idfactura; ?>"><i class='fa fa-print' align="center"></i> Media Carta</a></li> <?php } else { ?> <li><a class='form-control' onclick="imPDF()"><i class='fa fa-print' align="center"></i> Media Carta</a></li> <?php } ?> <li><a class='form-control' onclick="imPDF2()"><i class='fa fa-print' align="center"></i> Carta</a></li> <li><a id="btntickf" class='form-control' onclick="imPDFtk()"><i class='fa fa-print' align="center"></i> Ticket [Ctrl F7]</a></li> <?php if ($empresax == 'MARLEV S.A.') { ?> <li><a class='form-control' target="_blank" href="impfelcamb.php?idfactura=<?php echo $idfactura; ?>"><i class='fa fa-print' align="center"></i> Cambiaria</a></li> <?php } else if ($empresax == 'MARLEV S.A.' || $empresax == 'SISTEMA GERENTE' || strpos($empresax, 'COMERCIAL D') !== false) { ?> <li><a class='form-control' onclick="cambiaria('<?php echo $idfactura; ?>')"><i class='fa fa-print' align="center"></i> Cambiaria</a></li> <li><a class='form-control' onclick="cambreverso('<?php echo $idfactura; ?>')"><i class='fa fa-print' align="center"></i> Reverso Cambiaria</a></li> <?php } ?> </ul> <?php } ?> </div> <div class="col-md-5 col-6"> <button style=" border-radius: 20px; border: 1px solid #666;" type="button" class="btn btn-info btn-sm form-control dropdown-toggle" data-toggle="dropdown"><i class='fa fa-print'></i> Imprimir Envíos<span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a class='form-control' name="btnimp" id="btnimp" onclick="imPDFtkenv()"><i class='fa fa-print' align="center"></i> Ticket [Ctrl F9]</a></li> <li><a class='form-control' onclick="jsenvioc()"><i class='fa fa-print' align="center"></i> Carta</a></li> <?php if ($empresax == 'ALMACEN MORALES') { ?> <li><a class="form-control" onclick="abrirVentana()"><i class="fa fa-print" align="center"></i> Media Carta</a></li> <?php } else { ?> <li><a class='form-control' onclick="jsenvio()"><i class='fa fa-print' align="center"></i> Media Carta</a></li> <?php } ?> <li><a class='form-control' onclick="jsenviosin()"><i class='fa fa-print' align="center"></i> Media sin Precios</a></li> <li><a class="form-control" onclick="abrirVentana2()"><i class="fa fa-print" align="center"></i> Ticket Automatico</a></li> <?php if ($empresax == 'ALMACEN MORALES' || $empresax == 'SISTEMA GERENTE') { ?> <li><a class='form-control' onclick="imprimirContenido()"><i class='fa fa-print' align="center"></i> Garantias</a></li> <?php } ?> </ul> </div> </div> <br> </form> <form action="creacliente2.php" method="post"> <div class="row"> <div align="center" class="col-md-1 col-0"> </div> <div align="center" class="col-md-5 col-6"> <?php $totalc = number_format($total, 2); $totalcc = number_format($totalf, 2); if ($descuento > 0) { ?> <h5 id="descuento" style="background-color: #c6811a;"> <?php echo $descuento; ?> % Descuento</h5> <?php } if (strlen($tiene) > 0) { ?> <h5 id="zs" style="background-color: #f5f38b;"> CONT. ZS</h5> <?php } ?> </div> <div align="center" class="col-md-5 col-6"> <input type="hidden" name="late2" id="late2" class="form-control"> <input type="hidden" name="ruta" id="ruta" placeholder="COI" value=" <?php echo $ruta; ?> " class="form-control"> <?php if ($empresax == 'MARLEV S.A.' || $empresax == 'DISTRIBUIDORA CHELYS') { ?> <a style="background: #DFD3C3; border-radius: 20px; border: 1px solid #666;" class="btn btn-sm form-control" href="creacliente.php" target="_blank"><i class='fas fa-user-plus' align="center"></i> Crear Cliente</a> <?php } else { ?> <a style="background: #DFD3C3; border-radius: 20px; border: 1px solid #666;" class="btn btn-sm form-control" href="#" data-toggle="modal" data-target="#myModal"><i class='fas fa-user-plus' align="center"></i> Crear Cliente</a> <?php } include_once("../vistas/mod/ventana.php"); ?> </div> </div> </form> <br> <div class="row"> <div class="col-md-1 col-0"> </div> <div class="col-md-5 col-6"> <?php if ($empresax == 'MARLEV S.A.' || $empresax == 'DISTRIBUIDORA CHELYS') { ?> <form action="creanti.php" method="post"> <input type="hidden" name="ruta" id="ruta" placeholder="COI" value=" <?php echo $ruta; ?> " class="form-control"> <a class="btn btn-sm btn-secondary form-control" style="background: #33658E; border-radius: 20px; border: 1px solid #666;" href="#" data-toggle="modal" data-target="#myModal3ant"><i class='fas fa-user' align="center"></i> Crear Anticipo</a> <?php include_once("../vistas/mod/ventanant.php"); ?> </form> <?php } ?> </div> </div> <div class="row"> <div align="center" class="col-md-1 col-0"> </div> <div align="center" class="col-md-5 col-6"> <a style=" background: <?php echo $colo; ?>; color: <?php echo $fondo; ?> ; border-radius: 20px; border: 1px solid #666;" id="btnuevo" class=" btn btn-sm form-control" onclick="Href1()"><i class='fas fa-toggle-on'></i> Nuevo [F9]</a> </div> <div align="center" class="col-md-5 col-6"> <a style=" background: <?php echo $colo; ?>; color: <?php echo $fondo; ?> ; border-radius: 20px; border: 1px solid #666;" id="btnsalir" class="btn btn-sm form-control" onclick="salir()"><i class='fas fa-sign-in-alt' align="center"></i> Salir [F10]</a> </div> </div> <br><br> <div class="row"> <div align="center" class="col-md-1 col-0"> </div> <div align="center" class="col-md-11"> <?php if ($totalc == $totalcc) { if ($totalc > 0) { ?> <div class="alert alert-sm rounded-0 " onclick="vuelto()" style="font-size: 18px; background-color: #B9EDDD; height: 40px; color:#6D6A6A;" role="alert">Factura Finalizada <input type="hidden" name="saleono" id="saleono" value="Factura Finalizada"> </div> <?php } } else { ?> <div class="alert alert-sm rounded-0 " style="font-size: 18px; background-color: #FDF7C3; height: 40px; color:#6D6A6A;" role="alert">Factura sin Finalizar <input type="hidden" onclick="trae()" name="saleono" id="saleono" value="Factura sin Finalizar"> </div> <?php } ?> <a id="traer" ondblclick="regresa()" onclick="trae()"> </a> </div> </div> <div class="row"> <div id="reloj" class="col-md-12 text-center"></div> </div> <div class="row"> <div align="center" class="col-md-1 col-0"> </div> <div align="center" class="col-md-5"> <?php if ($empresax == 'MARLEV S.A.' || $empresax == 'DISTRIBUIDORA CHELYS') { ?> <form action="creadepo.php" method="post"> <input type="hidden" name="late2" id="late2" class="form-control"> <input type="hidden" name="late2" id="late2" class="form-control"> <input type="hidden" name="ruta" id="ruta" placeholder="COI" value=" <?php echo $ruta; ?> " class="form-control"> <a class="btn btn-sm btn-secondary form-control" style="background: #33658E; border-radius: 20px; border: 1px solid #666;" href="#" data-toggle="modal" data-target="#myModal2d"><i class='fas fa-user-plus' align="center"></i> Crear Deposito</a> <?php include_once("mod/ventanad.php"); ?> </form> <?php } ?> </div> </div> </div> <!-- seginda columna--> </div> <div id="qr_code"></div> <img id="codigoq"> <div id="qr-reader" style="width:400px"></div> <div id="qr-reader-results"></div> <br> <br> <br> <br> <br> </div> </div> </div> </div> </div> </main> <?php include_once("../vistas/footer.php"); ?> <script src="/vistas/plugins/datatables/jquery.dataTables.min.js"></script> <script src="/vistas/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script> <script src="/vistas/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script> <script src="/vistas/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script> <script src="/vistas/plugins/datatables-buttons/js/dataTables.buttons.min.js"></script> <script src="/vistas/plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script> <!-- Select2 <script src="/vistas/plugins/select2/js/select2.full.min.js"></script> --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-autocomplete/1.0.7/jquery.auto-complete.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-autocomplete/1.0.7/jquery.auto-complete.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.debug.js" integrity="sha384-NaWTHo/8YCBYJ59830LTz/P4aQZK1sS0SneOgAvhsIl3zBu8r9RevNg5lHCHAuQ/" crossorigin="anonymous"> </script> <script src="https://unpkg.com/html5-qrcode" type="text/javascript"></script> <script src="https://cdn.jsdelivr.net/gh/davidshimjs/qrcodejs/qrcode.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script> <script src="https://unpkg.com/qrious@4.0.2/dist/qrious.js"></script> <!-- Toastr.js Después --> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script> <script> $(document).ready(function() { $("#nitc").on("focus", function() { const element = document.querySelector('#ani2'); if (window.navigator && window.navigator.vibrate) { window.navigator = window.navigator || {}; navigator.vibrate([50, 250]); } element.classList.add('animate__animated', 'animate__bounce'); }) }); </script> <script> // Obtener la fecha actual var currentDate = new Date(); // Crear fechas para el rango deseado sin especificar el año var startDate = new Date(currentDate.getFullYear(), 10 /*noviembre*/ , 15); var endDate = new Date(currentDate.getFullYear(), 0 /*enero*/ , 6); // console.log("Fecha actual: " + currentDate.toLocaleDateString()); // console.log("Fecha inicio: " + startDate.toLocaleDateString()); // console.log("Fecha fin: " + endDate.toLocaleDateString()); // Verificar si la fecha actual está en el rango if (currentDate >= startDate && currentDate <= endDate) { // Calcular el número de días transcurridos desde el inicio var daysElapsed = Math.floor((currentDate - startDate) / (1000 * 60 * 60 * 24)); // Calcular el índice del árbol (cambiando cada 3 días) var treeIndex = (daysElapsed % 3) + 1; // Obtener la referencia de la imagen var arbolImage = document.getElementById("arbolImage"); // Establecer el src de la imagen según el índice arbolImage.src = "/images/arbol" + treeIndex + ".gif"; arbolImage.classList.add("floating-image"); } else { // Si la fecha actual está fuera del rango, puedes establecer una imagen predeterminada o dejarla vacía var arbolImage = document.getElementById("arbolImage"); arbolImage.src = ""; arbolImage.classList.add("floating-image"); } </script> <script type="text/javascript"> $(function() { $("#nombrec").autocomplete({ source: 'ajax-cliente.php', minLength: 3, cacheLength: 0, delay: 100 }); //color claro: #E3EDFC // $(".ui-autocomplete.ui-widget").css('font-size', '12px'); }); </script> <?php include_once("jsenvioc.php") ?> <?php include_once("jsenvio.php") ?> <?php include_once("jsenviosin.php") ?> <script type="text/javascript"> $(function() { var nomprod = document.getElementById("nombre").value; $("#nombre").autocomplete({ source: function(request, response) { var nomprod = document.getElementById("nombre").value; var mayoreo = 0; var minimo = 0; var pesos = 0; var tasa = 0; if (document.getElementById('mayoreor').checked) { mayoreo = 1; } if (document.getElementById('minimor').checked) { minimo = 1; } if (empresa == 'MINIMERCADO EL DULCE NOMBRE' || empresa == 'MOTOZONE') { if (document.getElementById('pesos').checked) { pesos = 1; tasa = '<?php echo $tasa; ?>'; } } descuento = '<?php echo $descuento ?>'; // console.log("Descuento: " + descuento); $.ajax({ url: 'buscainv2.php', method: 'GET', // o 'POST' según lo que necesites dataType: 'json', data: { term: request.term, mayoreo: mayoreo, minimo: minimo, pesos: pesos, tasa: tasa, descuento: descuento }, success: function(data) { response(data); } }); }, minLength: 3, cacheLength: 0, delay: 100, response: function(event, ui) { // No es necesario modificar el formato de la respuesta }, open: function(event, ui) { var listbox = $(this).autocomplete('widget'); listbox.css({ 'width': '100% !important', // Ajusta el ancho según sea necesario 'cursor': 'pointer !important' }); var isMobile = window.matchMedia("only screen and (max-width: 767px)").matches; var elements = listbox.find('li'); elements.on('focus', function() { // Desactiva el manejo de las teclas de flecha para elementos individuales $(this).on('keydown', function(e) { var keyCode = e.keyCode || e.which; if (keyCode === 38 || keyCode === 40) { // Las teclas de flecha hacia arriba y hacia abajo deben ser manejadas e.preventDefault(); e.stopPropagation(); } }); }); elements.each(function(index) { var item = $(this); var text = item.text(); var fields = text.split('|').map(function(field) { return field.trim(); }); // Establece colores diferentes para líneas impares y pares var backgroundColor = index % 2 === 0 ? '#f0f0f0' : '#ffffff'; // Construye el contenido del elemento con colores y espacios var formattedItem; if (isMobile) { // Si es un móvil, muestra solo el nombre, precio y existencia formattedItem = fields.map(function(value, i) { if (i === 0 || i === 2 || i === 3) { var width = (i === 0) ? '60%' : '10%'; // Ajusta el ancho según sea necesario return '<span style="flex: 0 0 ' + width + '; box-sizing: border-box; padding: 0px;">' + value + '</span>'; } return ''; // Para ocultar otras columnas }).join(''); } else { // Si es una PC, muestra todas las columnas formattedItem = fields.map(function(value, i) { if (empresa == "DISFARMER" || empresa == "La Miscelanea") { var width = (i === 0) ? '50%' : '10%'; // Ajusta el ancho según sea necesario } else { var width = (i === 0) ? '60%' : '10%'; // Ajusta el ancho según sea necesario } return '<span style="flex: 0 0 ' + width + '; box-sizing: border-box; padding: 0px;">' + value + '</span>'; }).join(''); } item.html(formattedItem).css({ 'background-color': backgroundColor, 'display': 'flex', 'flex-direction': 'row', 'justify-content': 'space-between', // Alinea elementos con espacio entre ellos 'border-bottom': '1px solid #ddd' // Añade un borde inferior para separar las filas }); item.html(formattedItem).css('background-color', backgroundColor); }); } }); //color claro: #E3EDFC /// ========== tema de negrita // $(".ui-autocomplete.ui-widget").css('font-size', '14px', 'font-weight', 'bold', 'height', '400px'); $("#nombre").keydown(function(e) { if (e.keyCode === 13) { if (document.getElementById("nombre").value.length < 1) { var divCantid = document.getElementById("cantid"); divCantid.style.display = "none"; } else { e.preventDefault(); // Evita que se realice la acción por defecto del Enter (por ejemplo, enviar un formulario) $("#btn1").click(); // Simula un clic en el botón con ID "btn1" } } if (e.keyCode === 27) { document.getElementById("resultados").innerHTML = ""; document.getElementById("nombre").value = ""; $("#nombre").focus(); var divCantid = document.getElementById("cantid"); divCantid.style.display = "none"; } }); $("#codigo").keydown(function(e) { if (e.keyCode === 13) { e.preventDefault(); // Evita que se realice la acción por defecto del Enter (por ejemplo, enviar un formulario) $("#btn1").click(); // Simula un clic en el botón con ID "btn1" } }); $("#cantidad").keydown(function(e) { if (e.keyCode === 27) { var divCantid = document.getElementById("cantid"); divCantid.style.display = "none"; $("#nombre").focus(); //idf = document.getElementById("idfactura").value; //window.location = "/vistas/punto.php?idfactura=" + idf + "&mayoreor=<?php echo $mayyor; ?>&minimor=<?php echo $mimir; ?>&pesos=<?php echo $pesos; ?>"; } }); $("#cantidadx").keydown(function(e) { if (e.keyCode === 13) { var cantidad = document.getElementById("cantidad"); if (cantidad != "") { e.preventDefault(); // Evita que se realice la acción por defecto del Enter (por ejemplo, enviar un formulario) $("#button01").click(); // Simula un clic en el botón con ID "btn1" } //idf = document.getElementById("idfactura").value; //window.location = "/vistas/punto.php?idfactura=" + idf + "&mayoreor=<?php echo $mayyor; ?>&minimor=<?php echo $mimir; ?>&pesos=<?php echo $pesos; ?>"; } }); $("#precio2x").keydown(function(e) { if (e.keyCode === 13) { var cantidad = document.getElementById("cantidad"); if (cantidad != "") { e.preventDefault(); // Evita que se realice la acción por defecto del Enter (por ejemplo, enviar un formulario) $("#button01").click(); // Simula un clic en el botón con ID "btn1" } //idf = document.getElementById("idfactura").value; //window.location = "/vistas/punto.php?idfactura=" + idf + "&mayoreor=<?php echo $mayyor; ?>&minimor=<?php echo $mimir; ?>&pesos=<?php echo $pesos; ?>"; } }); }); </script> <script> $(document).ready(function() { //para el select //$('#nombre').trigger('focus') empre = document.getElementById("empresa").value; if (empre == 'Libreria Esquipulas' || empre == "BOX" || empre == "DISTRIBUIDORA SISU") { document.getElementById("codigo").focus(); } else { document.getElementById("nombre").focus(); } // document.getElementById("nombre").focus(); /* var exis = document.getElementById("exis").value; if (typeof exis !== 'undefined') { document.getElementById("cantidad").focus(); } */ }); </script> <script> const pago = document.querySelector("#pago"); const input = document.querySelector("[name=cuenta]"); const spamc = document.querySelector("#spamc"); var nitc = document.getElementById("nitc").value; pago.addEventListener("change", () => { if (pago.value === "3") { $.ajax({ type: "post", url: "/vistas/ajax/buscacuent.php", data: { busqueda: nitc }, success: function(respuesta) { input.style.display = 'initial'; spamc.style.display = 'block'; spamc.textContent = 'Cuenta actual: ' + respuesta; } }) } else { input.style.display = 'none'; spamc.style.display = 'none'; } }); </script> <script type="text/javascript"> function Confirmation(idfactura, idventa, idproducto, cantidad) { Swal .fire({ title: "Eliminar registro?", text: "Esta seguro de eliminar el registro?", icon: 'warning', showCancelButton: true, confirmButtonText: "Sí, eliminar", cancelButtonText: "Cancelar", }) .then(resultado => { if (resultado.value) { window.location.href = "/vistas/deleprov.php?idfactura=" + idfactura + "&idventa=" + idventa + " &idproducto=" + idproducto + "&cantidad=" + cantidad; /* Swal.fire({ position: 'top-end', icon: 'success', title: 'El registro ha sido eliminado correctamente!!!', showConfirmButton: false, timer: 1500, }) */ } }); } </script> <script type="text/javascript"> $(document).keydown(function(e) { if (e.keyCode === 113) { var iddesc = prompt("Ingrese la taza de descuento"); sessionStorage.setItem('descuento', iddesc); var idfactura = document.getElementById("idfactura").value; if (idfactura == "") { window.location = "/vistas/punto.php?descuento=" + iddesc + ""; } else { window.location = "/vistas/punto.php?idfactura=" + idfactura + "&mayoreor=<?php echo $mayyor; ?>&minimor=<?php echo $mimir; ?>&pesos=<?php echo $pesos; ?>&descuento=" + iddesc + ""; } } if (e.keyCode === 114) { document.getElementById("nitc").focus(); } if (e.keyCode === 117) { var idfan = prompt("Ingrese el numero de factura a buscar"); window.location = "/vistas/punto.php?idfactura=" + idfan + "&mayoreor=<?php echo $mayyor; ?>&minimor=<?php echo $mimir; ?>&pesos=<?php echo $pesos; ?>"; } if (e.keyCode === 119) { //alert("llego"); //document.getElementById("btn1f").click(); $("#btn1f").click(); } if (e.keyCode === 120) { document.getElementById("btnuevo").click(); } if (e.keyCode === 121) { document.getElementById("btnsalir").click(); } if (e.ctrlKey) { if (e.keyCode == 122) { document.getElementById("btnc").click(); } } if (e.ctrlKey) { if (e.keyCode == 118) { document.getElementById("btntickf").click(); } } if (e.ctrlKey) { if (e.keyCode == 120) { document.getElementById("btnimp").click(); } } if (e.ctrlKey) { if (e.keyCode === 112) { if (document.getElementById("minimor").checked == true) { document.getElementById("minimor").checked = false; } else { document.getElementById("minimor").checked = true; document.getElementById("mayoreor").checked = false; } } } if (e.ctrlKey) { if (e.keyCode === 113) { if (document.getElementById("mayoreor").checked == true) { document.getElementById("mayoreor").checked = false; } else { document.getElementById("mayoreor").checked = true; document.getElementById("minimor").checked = false; } } } }); </script> <script type="text/javascript"> function upperCase() { var x = document.getElementById("nitc").value document.getElementById("nitc").value = x.toUpperCase() } </script> <script type="text/javascript"> function loadLocation() { //inicializamos la funcion y definimos el tiempo maximo ,las funciones de error y exito. navigator.geolocation.getCurrentPosition(viewMap, ViewError, { timeout: 1000 }); } //Funcion de exito // function viewMap(position) { var lon = position.coords.longitude; //guardamos la longitud var lat = position.coords.latitude; //guardamos la latitud var latc = lat + ", " + lon; // var p1 = "success"; var link = "http://maps.google.com/?ll=" + lat + "," + lon + "&z=14"; document.getElementById("late").value = latc; document.getElementById("late2").value = latc; // document.getElementById("link").href = link; } function ViewError(error) { //alert(error.code); } </script> <script> // para averiguar si hay existencia en un producto mientras se escriibe en el input $("#cantidad").on('keyup focus', function() { var empresax = '<?php echo $empresax; ?>'; if (empresax == "DISFARMER" || empresax == "MARLEV S.A." || empresax == "UNICAFE" || empresax == 'DISTRIBUIDORA CHELYS' || strpos($empresax, 'COMERCIAL D') !== false || empresax == 'MINIMERCADO EL DULCE NOMBRE' || empresax == 'COMERCIALIZADORA ALFA Y OMEGA' || empresax == 'La Miscelanea' || empresax == 'SISTEMA GERENTE') { nombrex = document.getElementById("nombre").value; var exisx = document.getElementById("exis").value; var cantx = document.getElementById("cantidad").value; nexisx = exisx - cantx; if (nexisx < 0 && exisx != "") { document.getElementById("cantidad").value = ""; Swal.fire({ title: 'Oppss!', text: 'NO hay existencia suficiente para este producto!', icon: 'error', didClose: () => { $("#cantidad").val(""); $("#nombre").val(""); $("#exis").val(""); $("#cantid").hide(); }, didOpen: () => { // Enfocar el botón OK al abrir el cuadro de diálogo $(".swal2-confirm").focus(); } }); return; } if (cantx < 0) { document.getElementById("cantidad").value = ""; Swal.fire({ title: 'Oppss!', text: 'Esta usando cantidades invalidas!', icon: 'error', didClose: () => { $("#cantidad").val(""); $("#nombre").val(""); $("#exis").val(""); $("#cantid").hide(); }, didOpen: () => { // Enfocar el botón OK al abrir el cuadro de diálogo $(".swal2-confirm").focus(); } }); return; } } }).keyup(); </script> <script> $(document).ready(function() { $("#precio2").on('keydown', function(e) { if (e.which === 13) { var precio2 = document.getElementById("precio2").value; var minimix = document.getElementById("minim").value; if (parseFloat(minimix) > parseFloat(precio2) && precio2 != "") { if (parseFloat(precio2) > 0) { document.getElementById("precio2").value = minimix; // document.getElementById("precio2").focus(); // location.reload(); e.preventDefault(); Swal.fire( 'Oppss!', 'El precio ingresado es menor al minimo!', 'error' ) // alert("El precio ingresado es menor al minimo"); return; } } } }); }); </script> <script> // para averiguar si hay existencia en un producto mientras se escriibe en el input $("#precio2").on('blur', function() { var precio2 = document.getElementById("precio2").value; var minimix = document.getElementById("minim").value; if (parseFloat(minimix) > parseFloat(precio2) && precio2 != "") { if (parseFloat(precio2) > 0) { document.getElementById("precio2").value = minimix; document.getElementById("precio2").focus(); Swal.fire( 'Oppss!', 'El precio ingresado es menor al minimo!', 'error' ) // $("#btn1").click(); return; } } }) </script> <script type="text/javascript"> function Href1() { var total1 = document.getElementById("total1").value; if (total1 == 0) { window.location = "/vistas/punto.php"; } var sale = document.getElementById("saleono").value; //Factura sin Finalizar if (sale == "Factura sin Finalizar") { Swal.fire({ icon: 'error', title: 'Oops...', text: 'No Puede salir, la factura no esta totalizada!!!', showConfirmButton: false, timer: 2500, showClass: { popup: 'animate__animated animate__backInDown' }, hideClass: { popup: 'animate__animated animate__fadeOutUp' } }) return true; } else { window.location = "/vistas/punto.php"; } } </script> <script> // creamos un evento doble click para cada una de las celdas de la tabla const tds = document.querySelectorAll("td"); for (td of tds) { td.addEventListener("dblclick", function() { // creamos un nuevo input con el valor actual de la celda let input = document.createElement('input'); input.value = this.textContent; // evento que se ejecuta cuando el input pierde el foco input.addEventListener("blur", function() { removeInput(this); }); // evento que se ejecuta cada vez que se deja de pulsar una tecla input.addEventListener("keydown", function(e) { // la tecla 13, es el Enter if (e.which == 13) { removeInput(this); } }); // quitamos el contenido de la celda de la tabla this.textContent = ""; // Ponemos en la celda el input que hemos creado this.appendChild(input); }); } // Eliminamos el input y ponemos el valor del mismo function removeInput(e) { e.parentElement.textContent = e.value; } </script> <?php include_once("puntimp.php"); ?> <script type="text/javascript"> function salir() { var total1 = document.getElementById("total1").value; if (total1 == 0) { window.location = "/master.php"; } var sale = document.getElementById("saleono").value; if (sale == "Factura sin Finalizar") { Swal.fire({ icon: 'error', title: 'Oops...', text: 'No Puede salir, la factura no esta totalizada!!!', showConfirmButton: false, timer: 2500, showClass: { popup: 'animate__animated animate__bounceInDown' }, hideClass: { popup: 'animate__animated animate__fadeOutUp' } }) return true; } else { window.location = "/master.php"; } } </script> <script> function imagenes(nombre, ruta) { var modal = document.getElementById("myModali"); var modalImg = document.getElementById("img01"); var captionText = document.getElementById("caption"); if (ruta === undefined || ruta == null || ruta == "") { //alert("."); Swal.fire({ icon: 'error', title: 'Oops...', text: 'No se encontraron imágenes para este producto!', showConfirmButton: false, timer: 2500, showClass: { popup: 'animate__animated animate__swing' }, hideClass: { popup: 'animate__animated animate__fadeOutUp' } }) return true; } modal.style.display = "block"; modalImg.src = ruta; captionText.innerHTML = nombre; var span = document.getElementsByClassName("close")[0]; // When the user clicks on <span> (x), close the modal span.onclick = function() { modal.style.display = "none"; } modalImg.onclick = function() { modal.style.display = "none"; } } </script> <script> var chkminim = document.getElementById('minimor'); var chkmayor = document.getElementById('mayoreor'); chkminim.addEventListener('click', function() { if (chkminim.checked) { $('#mayoreor').prop("checked", false); } }); chkmayor.addEventListener('click', function() { if (chkmayor.checked) { $('#minimor').prop("checked", false); } }); </script> <script type="text/javascript"> function cantidades(idventa, cantidad) { // var ncant = prompt("Ingrese la cantidad total a vender " + idventa); Swal .fire({ title: "Cambio de Cantidad", text: "Ingrese la cantidad a vender", input: "text", icon: 'question', showCancelButton: true, confirmButtonText: "Guardar", cancelButtonText: "Cancelar", inputValidator: nombre => { // Si el valor es válido, debes regresar undefined. Si no, una cadena if (!nombre || !isNaN(nombre) == false) { return "Por favor escriba una cantidad"; } else { return undefined; } } }) .then(resultado => { if (resultado.value) { var ncant = resultado.value; $.ajax({ type: "post", url: "../vistas/delecant.php", data: { idventa: idventa, cant: cantidad, ncant: ncant }, success: function(respuesta) { if (respuesta == 1) { window.location.reload(); } } }) } }); } </script> <script type="text/javascript"> function buscant() { var nombrepr = document.getElementById("nombre").value; var divCantid = document.getElementById("cantid"); divCantid.style.display = "block"; var elementoNombred = document.getElementById("nombred"); elementoNombred.innerHTML = nombrepr; var codigo = document.getElementById("codigo"); document.getElementById("nombre").value = ""; var cantidad = document.getElementById("cantidad"); fetch('traeproducto.php', { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: 'nombre=' + encodeURIComponent(nombrepr) + '&codigo=' + encodeURIComponent( codigo.value), }) .then((response) => { if (!response.ok) { throw new Error("Error ensolicitud"); } return response.json(); }) .then((data) => { // Procesar los datos JSON obtenidos. var ncant = document.getElementById("ncant"); var empresa = document.getElementById('empresa').value; exis = document.getElementById("exis"); idproducto = document.getElementById("idproducto"); depa = document.getElementById("depa"); provee = document.getElementById("provee"); exis.value = data.existencia; idproducto.value = data.idproducto; depa.value = data.depa; provee.value = data.provee; var nombrep = document.getElementById("nombrep"); //console.log(data.nombre); nombrep.style.display = "block"; document.getElementById("nombrep").value = data.nombre; document.getElementById("nombred").innerHTML = data.nombre; ncant.innerHTML = data.existencia; if (data.existencia <= data.minima) { ncant.style.backgroundColor = "#FAEF9B"; } else if (data.existencia < 1) { ncant.style.backgroundColor = "#FF6868"; } else { ncant.style.backgroundColor = ""; } if (empresa == 'AUTO REPUESTOS EL ROI') { precio1 = 'Cliente'; precio2 = "Mecánico"; precio3 = "Revendedores"; precio4 = "Mayorista"; precio5 = ""; } else { precio1 = 'Público'; precio2 = "Mayoreo"; precio3 = "Minimo"; precio4 = "Escala 1"; precio5 = "Escala 2"; } var mayoreo = 0; var minimo = 0; var pesos = 0; var minimx = data.venta3; $("#preciosel").empty(); // Limpia opciones anteriores $("#preciosel").append($("<option>").val(data.venta).text(precio1 + " Q." + parseFloat(data.venta).toFixed(2))); $("#preciosel").append($("<option>").val(data.venta2).text(precio2 + " Q." + parseFloat(data.venta2).toFixed(2))); $("#preciosel").append($("<option>").val(data.venta3).text(precio3 + " Q." + parseFloat(data.venta3).toFixed(2))); if (empresa == 'AUTO REPUESTOS EL ROI' || empresa == 'Auto Repuestos La Bendicion') { $("#preciosel").append($("<option>").val(data.venta4).text(precio4 + " Q." + parseFloat(data.venta4).toFixed(2))); minimx = data.venta4; } if (empresa == 'COMERCIALIZADORA ALFA Y OMEGA' || empresa == 'PAPELERIA HERRERA') { $("#preciosel").append($("<option>").val(data.venta4).text(precio4 + " Q." + parseFloat(data.venta4).toFixed(2))); $("#preciosel").append($("<option>").val(data.venta5).text(precio5 + " Q." + parseFloat(data.venta4).toFixed(2))); minimx = data.venta5; } if (document.getElementById('mayoreor').checked) { mayoreo = 1; document.getElementById('mayoreor1').value = mayoreo; } if (document.getElementById('minimor').checked) { minimo = 1; document.getElementById('minimor1').value = minimo; } if (empresa == 'MINIMERCADO EL DULCE NOMBRE' || empresa == 'MOTOZONE') { if (document.getElementById('pesos').checked) { pesos = 1; var pesosr = document.getElementById('pesosr').value; document.getElementById('pesosr').value = 1; } } var precio2 = document.getElementById("precio2"); document.getElementById("minim").value = minimx; if (mayoreo == 1) { precio2.value = data.venta2; } else if (minimo == 1) { precio2.value = data.venta3; } var descuento = <?php echo json_encode($descuento); ?>; // console.log("Descuento: " + descuento); if (descuento > 0) { precio2.value = data.venta - (data.venta * descuento / 100); } cantidad.value = 1; cantidad.focus(); cantidad.select(); }) .catch((error) => { console.error("Error en la solicitud:", error); cantidad.focus(); }); } </script> <script type="text/javascript"> function precios(idventa) { // var ncant = prompt("Ingrese la cantidad total a vender " + idventa); Swal .fire({ title: "Cambio de Precios", text: "Ingrese el nuevo precio unitario", input: "text", icon: 'question', showCancelButton: true, confirmButtonText: "Cambiar Precio", cancelButtonText: "Cancelar", inputValidator: nombre => { // Si el valor es válido, debes regresar undefined. Si no, una cadena if (!nombre || !isNaN(nombre) == false) { return "Por favor escriba una cantidad"; } else { return undefined; } } }) .then(resultado => { if (resultado.value) { var nprec = resultado.value; $.ajax({ type: "post", url: "../vistas/campre.php", data: { idventa: idventa, nprec: nprec }, success: function(respuesta) { if (respuesta == 1) { window.location.reload(); } else if (respuesta == 2) { Swal.fire({ icon: 'error', title: 'Oops...', text: 'No se puede cambiar el precio por ser menor al minimo', showConfirmButton: false, timer: 2500, showClass: { popup: 'animate__animated animate__swing' }, hideClass: { popup: 'animate__animated animate__fadeOutUp' } }) } } }) } }); } </script> <script> function llenafal() { var idfactura = document.getElementById("idfactura").value; var idproducto = document.getElementById("idproducto").value; var cantidad = document.getElementById("cantidad").value; var ruta = document.getElementById("ruta").value; var mayoreor = 0; var pesosr = 0; var minimor = 0; var chkminim = document.getElementById('minimor'); var chkmayor = document.getElementById('mayoreor'); var chkpesos = document.getElementById('pesos'); if (chkminim.checked) { minimor = 1; } if (chkmayor.checked) { mayoreor = 1; } var empresa = document.getElementById('empresa').value; if (empresa == 'MINIMERCADO EL DULCE NOMBRE' || empresa == 'MOTOZONE') { if (chkpesos.checked) { pesosr = 1; } } var nombrep = document.getElementById('nombrep').value; var precio = document.getElementById('precio').value; var precio2 = document.getElementById('precio2').value; var almacen = document.getElementById('almacen').value; if (precio2 == "") { precio2 = 0; } if (idfactura == "") { idfactura = 0; } const params = new URLSearchParams(); params.append('nombrep', nombrep); params.append('idfactura', idfactura); params.append('idproducto', idproducto); params.append('cantidad', cantidad); params.append('precio', precio); params.append('precio2', precio2); params.append('almacen', almacen); params.append('ruta', ruta); params.append('minimor', minimor); params.append('mayoreor', mayoreor); params.append('pesosr', pesosr); fetch('llenafact.php', { method: 'POST', body: params }) .then(response => response.text()) .then(response => { window.location = "punto.php?idfactura=" + response + "&minimor=" + minimor + "&mayoreor=" + mayoreor + "&pesos=" + pesosr; }) .catch(error => trae() ); } </script> <script> function llenafa() { var idfactura = document.getElementById("idfactura").value; var idproducto = document.getElementById("idproducto").value; var cantidad = document.getElementById("cantidad").value; var ruta = document.getElementById("ruta").value; var mayoreor = 0; var pesosr = 0; var minimor = 0; var chkminim = document.getElementById('minimor'); var chkmayor = document.getElementById('mayoreor'); var chkpesos = document.getElementById('pesos'); if (chkminim.checked) { minimor = 1; } if (chkmayor.checked) { mayoreor = 1; } var empresa = document.getElementById('empresa').value; if (empresa == 'MINIMERCADO EL DULCE NOMBRE' || empresa == 'MOTOZONE') { if (chkpesos.checked) { pesosr = 1; } } var nombrep = document.getElementById('nombrep').value; var serie = document.getElementById('serie').value; var precio = document.getElementById('precio').value; var precio2 = document.getElementById('precio2').value; var almacen = document.getElementById('almacen').value; var provee = document.getElementById('provee').value; var depa = document.getElementById('depa').value; if (precio2 == "") { precio2 = 0; } if (idfactura == "") { idfactura = 0; } $.ajax({ type: "post", url: "../vistas/llenafact2.php", data: { nombrep: nombrep, idfactura: idfactura, idproducto: idproducto, cantidad: cantidad, minimor: minimor, mayoreor: mayoreor, pesosr: pesosr, precio: precio, precio2: precio2, almacen: almacen, provee: provee, depa: depa, ruta: ruta, serie: serie }, success: function(respuesta) { window.location = "punto.php?idfactura=" + respuesta + "&minimor=" + minimor + "&mayoreor=" + mayoreor + "&pesos=" + pesosr; } }) }; </script> <script> function certifica() { var btnc = document.getElementById("btnc"); var btnca = document.getElementById("btnca"); var btncam = document.getElementById("btncam"); btnc.style.display = 'none'; if (btnca != null) { btnca.style.display = 'none'; } if (btncam != null) { btncam.style.display = 'none'; } var procesa = document.getElementById("procesa"); procesa.style.display = 'block'; $("*").css("cursor", "progress") var idfactura = document.getElementById("idfactura").value; empre = document.getElementById('empresa').value; if (empre == "MARLEV S.A.") { urlx = "../vistas/fel_digmv.php?idfactura=" + idfactura } else { urlx = "../vistas/fel_dig.php?idfactura=" + idfactura } $.ajax({ type: "post", url: urlx, success: function(respuesta) { $("*").css("cursor", "default") window.location = "punto.php?idfactura=" + respuesta } }) }; //href="fel_dig.php?idfactura=<?php echo $idfactura; ?>" </script> <script> function certifica2() { var btnc = document.getElementById("btnc"); var btnca = document.getElementById("btnca"); var btncam = document.getElementById("btncam"); btnc.style.display = 'none'; if (btnca != null) { btnca.style.display = 'none'; } if (btncam != null) { btncam.style.display = 'none'; } var procesa = document.getElementById("procesa"); procesa.style.display = 'block'; $("*").css("cursor", "progress") var idfactura = document.getElementById("idfactura").value; urlx = "../vistas/fel_dig2.php?idfactura=" + idfactura $.ajax({ type: "post", url: urlx, success: function(respuesta) { $("*").css("cursor", "default") window.location = "punto.php?idfactura=" + respuesta } }) }; //href="fel_dig.php?idfactura=<?php echo $idfactura; ?>" </script> <script> function cambiaria(idfactura) { var pagos = prompt("Ingrese cuantos pagos va a realizar"); if (pagos == null || pagos == "") { var nuevaVentana = window.open("../vistas/impfelcamb.php?idfactura=" + idfactura, "Cambiaria", "width=1000,height=650", '_blank'); } var primerac = prompt ("Ingrese el primer pago"); var cuotas = prompt ("Ingrese el valor de las ultimas cuotas"); var ultimac = prompt ("Ingrese el valor de la ultima cuota"); var diap = prompt ("Ingrese el dia de pago"); var nuevaVentana = window.open("../vistas/impfelcamb.php?idfactura=" + idfactura + "&pagos=" + pagos + "&primerac=" + primerac + "&cuotas=" + cuotas + "&ultimac=" + ultimac + "&diap=" + diap, "Cambiaria", "width=1000,height=650", '_blank'); // Cerrar la ventana después de 5 segundos (5000 milisegundos) setTimeout(function() { nuevaVentana.close(); }, 25000); // Cambia este valor a la cantidad de milisegundos que desees // window.open("impfelcamb.php?idfactura=" + idfactura + "&pagos=" + cuantos, "Cambiaria", "width=800,height=600,scrollbars=NO"); // window.open("../vistas/impfelcamb.php?idfactura=" + idfactura + "&pagos=" + pagos,"Cambiaria", "width=1000,height=650", '_blank'); } </script> <script> function modfa() { var nombrec = document.getElementById('nombrec').value; var late = document.getElementById('late').value; var vende = document.getElementById('vende').value; var nitc = document.getElementById('nitc').value; var total = document.getElementById('total').value; var pago = document.getElementById('pago').value; var idfactura = document.getElementById("idfactura").value; var mayoreor = 0; var pesosr = 0; var minimor = 0; var chkminim = document.getElementById('minimor'); var chkmayor = document.getElementById('mayoreor'); var chkpesos = document.getElementById('pesos'); if (chkminim.checked) { var minimor = 1; } if (chkmayor.checked) { var mayoreor = 1; } var empresa = document.getElementById('empresa').value; if (empresa == 'MINIMERCADO EL DULCE NOMBRE' || empresa == 'MOTOZONE') { if (chkpesos.checked) { pesosr = 1; } } if (pago == '3' && nitc == 'CF') { alert('Debe ingresar el NIT O DPI del cliente para poder facturar a Crédito') return true; } var direccion = document.getElementById('direccion').value; $.ajax({ type: "post", url: "../vistas/modfactura.php", data: { nombrec: nombrec, idfactura: idfactura, late: late, pago: pago, minimor: minimor, mayoreor: mayoreor, pesosr: pesosr, vende: vende, nitc: nitc, total: total, direccion: direccion, vende: vende }, success: function(respuesta) { window.location = "" + respuesta + "" } }) }; </script> <script> function tasa() { var buscar = x = prompt("Ingrese la tasa: "); $.ajax({ type: "post", url: "/vistas/ajax/cambiapesos.php", data: { busquedal: buscar }, success: function(respuestal) { Swal.fire({ position: 'top-end', icon: 'success', title: 'Hecho!', text: 'La tasa fue cambiado exitosamente', showConfirmButton: false, timer: 1500 }) } }) } </script> <script> function trae() { if (window.navigator && window.navigator.vibrate) { window.navigator = window.navigator || {}; navigator.vibrate([50, 250]); } var idfactura = document.getElementById("idfactura").value; if (idfactura == "") { $.ajax({ type: "post", url: "../vistas/traefa.php", success: function(respuesta) { window.location = "punto.php?idfactura=" + respuesta } }) } } </script> <script> function regresa() { var idfactura = document.getElementById("idfactura").value; var nidfac = idfactura - 1; window.location = "punto.php?idfactura=" + nidfac; } </script> <script> function leerqr() { let navegador = navigator.userAgent; if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)) { var resultContainer = document.getElementById('qr-reader-results'); var lastResult, countResults = 0; function onScanSuccess(decodedText, decodedResult) { if (decodedText !== lastResult) { ++countResults; lastResult = decodedText; // Handle on success condition with the decoded message. // console.log(`Scan result ${decodedText}`, decodedResult); $("#codigo").val(lastResult); } } var html5QrcodeScanner = new Html5QrcodeScanner( "qr-reader", { fps: 10, qrbox: 250 }); html5QrcodeScanner.render(onScanSuccess); } } </script> <script type="text/javascript"> $("#numeroan").dblclick(function() { var buscar = $("#numeroan").val(); $.ajax({ type: "post", url: "/vistas/ajax/cambant.php", data: { busqueda: buscar }, success: function(respuesta) { document.getElementById('numeroan').value = respuesta; } }) }); </script> <script> function vuelto() { var efec = prompt("Ingrese el efectivo recibido"); var total = document.getElementById('total').value; // Convertir efec y total a números efec = parseFloat(efec); total = parseFloat(total); if (isNaN(efec) || efec < 0) { alert("Ingrese un valor de efectivo válido."); } else if (efec < total) { alert("El efectivo recibido no puede ser menor al total de la factura"); } else { // El efectivo es mayor o igual al total // Aquí puedes continuar con el resto de tu lógica } var vuelto = efec - total; var vuelto2 = vuelto.toFixed(2); Swal.fire({ icon: 'success', title: 'Su cambio', text: 'Su vuelto es de: Q.' + vuelto2, showConfirmButton: true, timer: 5000, showClass: { popup: 'animate__animated animate__swing' }, hideClass: { popup: 'animate__animated animate__fadeOutUp' } }) } function formatearPrimeraLetraMayuscula(texto) { return texto.charAt(0).toUpperCase() + texto.slice(1); } function actualizarReloj() { const divReloj = document.getElementById("reloj"); const fechaActual = new Date(); const opcionesFecha = { weekday: 'long', day: 'numeric', month: 'long', year: 'numeric', }; const opcionesHora = { hour: '2-digit', minute: '2-digit', second: '2-digit', hour12: true, }; const fechaFormateada = fechaActual.toLocaleDateString('es-ES', opcionesFecha); const fechaConPrimeraLetraMayuscula = formatearPrimeraLetraMayuscula(fechaFormateada); const horaFormateada = fechaActual.toLocaleTimeString('es-ES', opcionesHora); const relojTexto = `${fechaConPrimeraLetraMayuscula}\n${horaFormateada}`; divReloj.textContent = relojTexto; } // Actualizar cada segundo setInterval(actualizarReloj, 1000); // Llamar a la función para mostrar la hora inicial actualizarReloj(); </script> <script> function abrirVentana() { // Abre una nueva ventana con el tamaño deseado var nuevaVentana = window.open('', '', 'width=800,height=600'); // Navega a la página deseada nuevaVentana.location.href = 'impenv.php?idfactura=<?php echo $idfactura; ?>'; // Cierra la ventana después de 25 segundos (25000 milisegundos) setTimeout(function() { nuevaVentana.close(); }, 45000); } function abrirVentana2() { // Abre una nueva ventana con el tamaño deseado var nuevaVentana2 = window.open('', '', 'width=800,height=600'); console.log("abriendo nueva ventana") // Navega a la página deseada nuevaVentana2.location.href = 'jsenvidin.php?idfactura=<?php echo $idfactura; ?>'; // Cierra la ventana después de 25 segundos (25000 milisegundos) setTimeout(function() { nuevaVentana2.close(); }, 45000); } </script> <script type="text/javascript"> $(document).ready(function() { var alturaTabla = $('#tabla1').height(); var altura2 = 0.4 * window.innerHeight; if (alturaTabla > altura2) { $alto = altura2 + "px"; //console.log("Altoura mayor: " + $alto); } else { $alto = "auto"; // console.log("Altoura automatica: " + $alto); } var tabla = $('#tabla1').DataTable({ "language": { "url": "//cdn.datatables.net/plug-ins/1.10.15/i18n/Spanish.json" }, "paging": false, "searching": false, "scrollY": $alto, "overflow": 'auto', // Establecer el desbordamiento para que se active el desplazamiento "order": [ [6, 'desc'] ], "dom": 'Bfrtip' }); }); </script> </body> </html>
© 2017 -
ZeroByte.ID
.