Question: PERMISOS - ESTADO DE LA VENTA -

PERMISOS - ESTADO DE LA VENTA -

hola, como ´puedo hacer para que una vez realizada la venta no se pueda modificar el estado de la venta, o darle permiso a un usuario en particular, debido a que en cualquier momento pueden

HL

Hatsembiller Luis

Asked
hola, como ´puedo hacer para que una vez realizada la venta no se pueda modificar el estado de la venta, o darle permiso a un usuario en particular, debido a que en cualquier momento pueden modificar el estado de la venta de pendiente a completado, si o si solucionar esto.

If you don’t trust user don’t give him edit right. You can add group and set permissions as you need from group permissions page. These groups can be assigned to users.

Comments response time is 5 days, It could be more for non-supported members. While official support response time is 1 – 2 days. Please post your support queries/questions, bugs and feature requests with details at Tecdiary Official Portal – https://tecdiary.net/support After registration, you need to validate your purchase code to add item to your supported list. Once item are green in support portal, you would be able to ask questions.

Thank you

pero simplemente al tener la posibilidad de ver las ventas y agregar ventas ya le deja modificar, aunque no tenga habilitada la opción de editar las ventas, le das clic arriba de los estados de venta y deja modificar, aunque en las opciones de grupo le quites los privilegios de edición, y quitar la visibilidad de las ventas no es una opción favorable.


Te adjunto las imagenes de como están los permisos de grupo y aun así, sigo teniendo problemas con el estado de venta. https://prnt.sc/u29si3 , https://prnt.sc/u29x8k



una problemática aparte que tengo, hay una manera de poder abrir y cerrar caja sin usar pos , simplemente usar el modulo de venta que trae en el menú del lado izquierdo.
  • MS

    Mian Saleem

    Answered
    Hello,

    I am sorry as I don't understand your language. Can you please post in English.

    As I guess, you can are saying that even if user don't have edit permissions but still he can change the sales status form list sales's status column. I will fix this next update. If you need it urgently, please modify the `update_status` method of `app/controllers/admin/Sales.php` and

    ```
    $this->sma->checkPermissions('edit', true);
    ```

    before validation line. It should check for permission before showing the update status modal.

    Thank you
  • HL

    Hatsembiller Luis

    Answered
    exactly, that's the problem, you can continue modifying the sales status column. I want only the administrator to edit or some seller with permissions.
    I did not understand how to make the modification, I did not find the line that tells me. Can you pass me the file to replace, I found it as an error and I need it, please, I would appreciate it very much.
  • HL

    Hatsembiller Luis

    Answered
    listo
    pude agregar la linea de código y funciona.
    pero ahora si le doy permisos de edición a la venta al usuario pasa lo siguiente, no me deja modificar ni abrir haciendo clic por encima de la columna de estado, solo ingresando en la edición de de la venta.
    pero el administrador si puede ingresar a la columna.
  • MS

    Mian Saleem

    Answered
    Hello,

    You need to refresh the page to apply new group permissions to logged in user.

    Thank you
  • EH

    Einnlleinhatt Ha

    Answered
    Good morning, i tried your solution to change the line $this->sma->checkPermissions('edit', true);

    If i changed into that line my other user cant add a sale if they dont have "Add" and "Edit" permissions.
  • MS

    Mian Saleem

    Answered
    Hello,

    It has nothing to do with add sale but just update status only. The add and edit permissions are different. The edit will only effect edit not add.

    Please wait for the next update. This status issue will be fixed.

    Thank you
  • EH

    Einnlleinhatt Ha

    Answered
    I know, i just wanted to share the thing i experienced once i edit the line like you sugested. If i added the (edit, 'true') i cant add a sale without "Add" and "Edit" permission checked. It just give me a warning that i dont have access to it. I also not sure that line only for temporarily fix or permanent.
  • MS

    Mian Saleem

    Answered
    Please take the screenshot where you have added the line. Please take full pge screenshot ya. Thanks
  • Login to Reply