Menu

#6 Employee addional fields

1.0
closed
nobody
None
2019-05-11
2017-10-04
Mario Laul
No

Hi,
I need your help. Employee allowed only name filed, but i need many different field more: phone, address, email. How can i create that?

Related

Tickets: #6

Discussion

1 2 > >> (Page 1 of 2)
  • Mario Laul

    Mario Laul - 2017-10-04

    My version is 2.1.0

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    Hi Mario,
    are you using SalonERP already in a productive environment?
    Or can you do an upgrade to the very latest version?
    Because in version 2.1.0 it is a bit more difficult that in the current release...
    Regards
    Thomas

     
  • Mario Laul

    Mario Laul - 2017-10-05

    I'm using 2.1.0 version already. If you explain me how can i add more fields in employee. I create that :)

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    Yes I know, but currently I'm working on a new version which can't be found in the downloads, but in the "Code". If you could upgrade to this version, it would be easiest.
    If not, this is what you need to change:

    • Change the database model to add your fields
    • backend.php:198 + 235 + 305
    • config/sql.php:382 + 401 + 430
    • index.php:304 + 365
    • js/window.js:617 + 618 + 629 + 632 + 635 + 1022 + 1028

    I think that's it...
    But as I said, if you can upgrade to the very newest version it will be much easier, because I already have plans to add those fields to the new version. So you don't have to do anything.

     

    Last edit: Thomas Sparber 2017-10-05
  • Mario Laul

    Mario Laul - 2017-10-05

    How can i upgrade new version? i download git package in "Code" tab and what next?

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    Upgrading is not easy from 2.1.0 to the new version...
    I would do a new installation. If this is not possible for you, then you need to change version 2.1.0

     
  • Mario Laul

    Mario Laul - 2017-10-05

    No problem i can take new install. How to do that. I put all files on my ftp server and what next?

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    Perfect, yes correct.
    Then you need to run "composer install" in the directory where you uploaded the files.
    That's it, then you just need to open the salonERP page and follow the instructions.
    If you can't run "composer install" then I can send you the required files also...

     
  • Mario Laul

    Mario Laul - 2017-10-05

    i can't run composer install. Please can i send me required file, if i open index.php white page coming up. If i open install.php page come in and i fill all fileds and click submit button, nothing to do, white page come. please send me all files, what needed. And then if all works later. How can i add fields employee. One problem more :) if i put overview view all calenders and employee names come left to the right. How can i put all calenders under each other with names.

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    Hi Mario,
    attached is a snapshot which all files you need to run salonerp.
    At already contains the new fields for the employees.
    Please note that you need to have the php ans sessions folder to be writable by the web server as it is described in the documentation! If you are using sqlite, you also need to have the root folder writable!
    Best Regards
    Thomas

     
  • Mario Laul

    Mario Laul - 2017-10-05

    How can i change calendar style? Overview style show calendars left to right and employee names top of calendars, but i need calendars are top to bottom and every calendar top employee name

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    Unfortunately this is not possible at the moment without a big modification.
    Is it very important for you? If yes, I can try to implement it.

     
  • Mario Laul

    Mario Laul - 2017-10-05

    Yes, this is very important for me :) Perfect is two calendars side by side and other calendars top of bottom

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    OK I will have a look...
    Would it also be ok if you could choose between "horizontal" and "vertical view"?
    So all calendards side by side or all calendars top of bottom

     
  • Mario Laul

    Mario Laul - 2017-10-05

    yes this is good :)
    perfect is one line two employee calendars, next line two employee calendars...etc.

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    Hi Mario,
    it's finished. Now you can download the latest source code and overwrite the files on your server.
    Then after refreshing the page you can set the amount of calendars per row. You can set it to 2.
    Please let me know if it works
    Regards
    Thomas

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-05

    ...you can set it in the settings of course... i forgot to say

     
  • Mario Laul

    Mario Laul - 2017-10-05

    Thats super :) thank you. Your are very good professional back-end developer :)

    I have some question more :)

    If i log in, how can i get session login user data. How to echo out that? Example if i log in, page show me Hi! Mario Laul.

    My wife has a beauty salon. And them talk me "if i click Pay button and wish selling shampoo, there is no place where I could choose a product instead of services only service" Whether or not it is difficult to add such a product, the menu can add products to customers and services as well. Where the product can be named, how much they are in stock and how much they cost. and then you can add an Addional product to a product that automatically calculates the price.

     
  • Mario Laul

    Mario Laul - 2017-10-05

    i found one issue. If i select overview and day, first line employee name not show top of calendar

     
  • Mario Laul

    Mario Laul - 2017-10-07

    The biggest concern at the moment is that employees, products, and customers can not be deleted. only edit and add can. Deleted button is very necessary.

     
  • Thomas Sparber

    Thomas Sparber - 2017-10-09

    Hi Mario,
    nice that you like it :-)
    In SalonERP, a product and a treatment/service is the same. If your wife wants to sell shampoo, she can add it as an additional product when creating the invoice, e.g.

    • Service to Customer has finished
    • Customer wants to pay
    • Your wife clicks the event in the calendar and "pay"
    • In that window she can add the additional product "shampoo"
    • Create invoice for the service AND the shampoo together

    This is the workflow how it is currently done in SalonERP. If your wife is doing more Point-of-Sale then you should probably have a look at a POS program e.g SPos (https://sourceforge.net/projects/s-pos/) which is also developed by myself. It is a bit out of date but I have planned to integrate it into SalonERP.

    About your concern to delete employees, customers and products: This is not easy from a programming point of view and from a legal point of view...
    What happens if I delete product X? Product X was used in a treatment one month ago and an invoice was created. So should I delete that invoice as well??? I think this is not a good idea. Also concerning data integrity and consistency. So in my opinion, Products, customers and employees should not be removable! If you accidently created a wrong product/customer/employee you can rename and reuse it.

    Best Regards
    Thomas

     
  • Mario Laul

    Mario Laul - 2017-10-09

    Thanks for explain :) But how can i create employee shortcut same menu line where customer, products etc. And how can i echo session login user info?

     
  • Mario Laul

    Mario Laul - 2017-10-20

    Please tell me how can i create logout function and how can i get logged user name?

     
  • Thomas Sparber

    Thomas Sparber - 2017-11-02

    In order to log out you need to unset the php session variable and the cookie "salonerp-id".
    The currently logged in user is not available at the moment because there exists only one user so retrieving the user name is a bit diffficult right now...

     
  • Thomas Sparber

    Thomas Sparber - 2019-05-11

    Hi Mario,
    do you still need help with this or can I close the ticket? :-)

    Best Regards
    Thomas

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB