You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currrently I'm working on a client request for multistore support for this project. The first iteration willl include adding a new table to the system in which pos locations can be defined
pos location is considered as a browser accessing a central server, capable of doing sales, receivings, reporting or item management for specific stock locations
employees will have a dropdown to choose a pos location to login to
pos location will be saved in the employee's session
grants will be specific to a pos location. In this case there'll be a dropdown in case there is more than one pos location to configure grants for a specific employee
employees can only login to one pos location when they have at least one grant for that location
stock locations have to be granted for every pos location as well. This will allow implementors to choose which pos location to sell/receive from
store config might have to be customized depending on the pos location.
by default there will be just one pos location (default setup in this case)
For this last part I wonder whether there's anyone having any suggestions as to which options (beside pos location name) might need to be customized in that case.
Currently there's also a bug that prevents to do sales or receivings with invoicing numbers for multiple pos locations. This will need to be tackled as well. Issue can be found on sourceforge
Other than the Invoicing issue are there any other multi user issues. Say 2 cashiers and 3 people in the back room inputting Items. I have not tried this out yet to see how multi user works.
I haven't done any real tests for these scenario's either, but I did some adaptations for another client some time ago, using it from three different browsers. He has reported the same problem as I have mentioned above here.
Ids should be generated at submission time and be unique.
Isn't that a caching issue with let say temp tables or similar?
It needs some deep analysis to check that part.
Also on a slightly different note but still about "multi" use, my wife always asked me to have a common login for let say sales assistant (maybe tagged to physical pos) and just select the seller name at transaction time selecting an icon (avatar) to make it easy with a click.
What's happening at the moment is that 1 girl logs in and everybody uses that log for the whole day if not week as they leave the laptop running.
The other issue might be printer selection for multi user cashiers or Inputters. Say pos 1 has an Epson and pos 2 has a star printer. The folks in the back room printing labels all have different Epson or zebra printers. Maybe a multi congfig for each station and a cashier login log out without having to exit the program. All stuff to think about for the next generation of OSPOS
I was wondering about the model here, you really need to design on paper all the physical entities and then draw relationship and cardinality. Not sure the current database is organised in a scalable way, the code probably even less.
It's either "hack it up" for the specific need as 1st leg and refactor bit a bit, or refactor it more seriously and build more complex features.
Being pragmatic would be probably better the 1st approach even if not ideal because more grounds up could be a massive work and a long lead.
Jekko has made a lot of improvements in this program since he has taken over. And thank you for your code improvements too. As a tester I cant imagine the hours you all have spent on this program making it better than the original I first started testing. It's come a long way.
Yes in this case it will involve different cashiers using the pos from a separate locations. They'll have to login / logout every time someone starts or stops working. I agree that most of the time it's not practical to login/logout when you're all working from the same machine. But that's not really the usecase here.
I did some analysis on this on paper and up til now I found that what I describe above here be the most pragmatic solution. sales and receivings are the only real entities that can be bound to a pos_location. In this case one store can have mulitple cashiers selling from different stock locations.
That's why I think that modifying the grants would be a good solution as it will allow you to give access for an employee to specific modules at a specific location for a selection of stock locations at hand (as each stock location has it's own permission)
And indeed, the sale id generation issue can probably be solved by generating it at completion time, instead of storing in the session as it's done now. It's quite important to keep the sale_id as a single primary key, so assuming that all of the pos's are connected to the same database. If not then there will be other solutions that involve db partitioning or replication that can assure you to keep those id's unique.
The printing options were already refactord to be persisted in the browsers itself, as it doesn't make sense indeed to store this config on a server (most of the time you print directly from the workstation that has the browser installled)
Ok I forgot that one, suspended sales will need to have those id's as well. Unless of course you want to unsuspend them at a different pos, but this isn't really a requirement right now for me.
The cut x and cut z should have some extra flow logic encapsulated into it. For example once a cashier opens or closes his session, he will need to make a report. This report is also required after certain periods of the day;
@mouradsme I recall someone in the community posted that they had already implemented multiple shop location support in their personal fork of ospos. It may be quicker to convince them to either submit a Pull Request or allow you access to the changes so that you can submit a pull request here. @opensourcepos/org I can't remember who it was that said they had implemented this... maybe @andriux1990 or @WebShells?
No it was me, I dug up the branch yesterday, it's based on 3.0. Beside this multi location it also contained some neat refactoring of the permissions model in OSPOS by introducing the concept of a Grant.
I briefly thought that opensourcing this code would be the way to go, but it needs rebasing and that might take a bit of effort now. On the other hand I wonder whether this would be the right thing to do. I suppose that persons asking for this functionality will deploy it in return for some fees as well as they are probably not a small shopkeeper.
No it was me, I dug up the branch yesterday, it's based on 3.0. Beside this multi location it also contained some neat refactoring of the permissions model in OSPOS by introducing the concept of a Grant.
I briefly thought that opensourcing this code would be the way to go, but it needs rebasing and that might take a bit of effort now. On the other hand I wonder whether this would be the right thing to do. I suppose that persons asking for this functionality will deploy it in return for some fees as well as they are probably not a small shopkeeper.
@jekkos you should definitely benefit from your work on this. I think someone (@WebShells) had floated a community edition (free) and a paid enhanced edition. The multi-location support could go into the enhanced edition.
@jekkos I was contacted by a client who needed a POS system with multi-store capabilities, and I've been developing one of my own (using my own PHP framework xD). But then it seemed like a good project (profitable), so I discussed the "prospects" with the client who was happy to help finding other clients (for a fee/discount xD). I am still working on my POS, which I'm trying to develop to be as "generic" and as "standard" as possible (to make a brand out of it here in Algeria).
OSPOS has everything my client (/partner?) needs, and it's the reason why I'm trying to learn how to change the code so as to implement the Multi-store capabilities as well as any other changes required.
The truth is I came across so many ready pos with the requirements set by my client, but they're just too expensive (Algerian Economy just can't keep up with the rest of the world), and OSPOS is about the only opensource project that allows developers to change in its code and make a profit out of it for small fees.
The refactoring @jekkos is talking about is related to access control. Grant is a permission you give to access something. It's part of the permissions you give an employer to use part of the ospos functionality.
That refactoring is something he has done, so I understand reading his comment.
The refactoring @jekkos is talking about is related to access control. Grant is a permission you give to access something. It's part of the permissions you give an employer to use part of the ospos functionality.
That refactoring is something he has done, so I understand reading his comment.
Access control seems like a tedious task in considering multi-store capabilities, but s it possible to just consider a case where each store has its own OSPOS installed on a LAMP/WAMP/MAMP server, and then only send relevant data (stocks, reports, clients, suppliers & products..) to a central app hosted on the cloud (for the owner)?
The refactoring @jekkos is talking about is related to access control. Grant is a permission you give to access something. It's part of the permissions you give an employer to use part of the ospos functionality.
That refactoring is something he has done, so I understand reading his comment.
Access control seems like a tedious task in considering multi-store capabilities, but s it possible to just consider a case where each store has its own OSPOS installed on a LAMP/WAMP/MAMP server, and then only send relevant data (stocks, reports, clients, suppliers & products..) to a central app hosted on the cloud (for the owner)?
What you are suggesting would be more work in terms of APIs and client/server configuration. Grants framework is already in the codebase.
Activity
jekkos commentedon Sep 15, 2015
Currently there's also a bug that prevents to do sales or receivings with invoicing numbers for multiple pos locations. This will need to be tackled as well. Issue can be found on sourceforge
https://sourceforge.net/p/opensourcepos/bugs/49/
odiea commentedon Sep 15, 2015
Other than the Invoicing issue are there any other multi user issues. Say 2 cashiers and 3 people in the back room inputting Items. I have not tried this out yet to see how multi user works.
jekkos commentedon Sep 15, 2015
I haven't done any real tests for these scenario's either, but I did some adaptations for another client some time ago, using it from three different browsers. He has reported the same problem as I have mentioned above here.
daN4cat commentedon Sep 15, 2015
Ids should be generated at submission time and be unique.
Isn't that a caching issue with let say temp tables or similar?
It needs some deep analysis to check that part.
Also on a slightly different note but still about "multi" use, my wife always asked me to have a common login for let say sales assistant (maybe tagged to physical pos) and just select the seller name at transaction time selecting an icon (avatar) to make it easy with a click.
What's happening at the moment is that 1 girl logs in and everybody uses that log for the whole day if not week as they leave the laptop running.
odiea commentedon Sep 15, 2015
The other issue might be printer selection for multi user cashiers or Inputters. Say pos 1 has an Epson and pos 2 has a star printer. The folks in the back room printing labels all have different Epson or zebra printers. Maybe a multi congfig for each station and a cashier login log out without having to exit the program. All stuff to think about for the next generation of OSPOS
daN4cat commentedon Sep 15, 2015
I was wondering about the model here, you really need to design on paper all the physical entities and then draw relationship and cardinality. Not sure the current database is organised in a scalable way, the code probably even less.
It's either "hack it up" for the specific need as 1st leg and refactor bit a bit, or refactor it more seriously and build more complex features.
Being pragmatic would be probably better the 1st approach even if not ideal because more grounds up could be a massive work and a long lead.
odiea commentedon Sep 15, 2015
Jekko has made a lot of improvements in this program since he has taken over. And thank you for your code improvements too. As a tester I cant imagine the hours you all have spent on this program making it better than the original I first started testing. It's come a long way.
jekkos commentedon Sep 16, 2015
Yes in this case it will involve different cashiers using the pos from a separate locations. They'll have to login / logout every time someone starts or stops working. I agree that most of the time it's not practical to login/logout when you're all working from the same machine. But that's not really the usecase here.
I did some analysis on this on paper and up til now I found that what I describe above here be the most pragmatic solution. sales and receivings are the only real entities that can be bound to a pos_location. In this case one store can have mulitple cashiers selling from different stock locations.
That's why I think that modifying the grants would be a good solution as it will allow you to give access for an employee to specific modules at a specific location for a selection of stock locations at hand (as each stock location has it's own permission)
And indeed, the sale id generation issue can probably be solved by generating it at completion time, instead of storing in the session as it's done now. It's quite important to keep the sale_id as a single primary key, so assuming that all of the pos's are connected to the same database. If not then there will be other solutions that involve db partitioning or replication that can assure you to keep those id's unique.
The printing options were already refactord to be persisted in the browsers itself, as it doesn't make sense indeed to store this config on a server (most of the time you print directly from the workstation that has the browser installled)
jekkos commentedon Sep 16, 2015
Second iteration will include adding cut z and cut x reports. I think this is a feature that has been requested earlier.
daN4cat commentedon Sep 16, 2015
How far is a Z report is from the Takings we created?
The idea was about that but maybe you have more use cases there.
daN4cat commentedon Sep 16, 2015
Just wondering, any impact on inventory table and suspended features?
jekkos commentedon Sep 16, 2015
Ok I forgot that one, suspended sales will need to have those id's as well. Unless of course you want to unsuspend them at a different pos, but this isn't really a requirement right now for me.
The cut x and cut z should have some extra flow logic encapsulated into it. For example once a cashier opens or closes his session, he will need to make a report. This report is also required after certain periods of the day;
daN4cat commentedon Sep 16, 2015
Do you even need to keep track of the petty cash at in/out times?
That's a common scenario in shops, no idea if that needs to be bound to a cashier.
57 remaining items
objecttothis commentedon Oct 23, 2021
@mouradsme I recall someone in the community posted that they had already implemented multiple shop location support in their personal fork of ospos. It may be quicker to convince them to either submit a Pull Request or allow you access to the changes so that you can submit a pull request here. @opensourcepos/org I can't remember who it was that said they had implemented this... maybe @andriux1990 or @WebShells?
jekkos commentedon Oct 23, 2021
No it was me, I dug up the branch yesterday, it's based on 3.0. Beside this multi location it also contained some neat refactoring of the permissions model in OSPOS by introducing the concept of a
Grant.I briefly thought that opensourcing this code would be the way to go, but it needs rebasing and that might take a bit of effort now. On the other hand I wonder whether this would be the right thing to do. I suppose that persons asking for this functionality will deploy it in return for some fees as well as they are probably not a small shopkeeper.
jekkos commentedon Oct 23, 2021
I do think the Grant refactoring is something that should be upstreamed regardless..
Add multistore functionality (#150)
objecttothis commentedon Oct 23, 2021
@jekkos you should definitely benefit from your work on this. I think someone (@WebShells) had floated a community edition (free) and a paid enhanced edition. The multi-location support could go into the enhanced edition.
mouradsme commentedon Oct 23, 2021
@jekkos I was contacted by a client who needed a POS system with multi-store capabilities, and I've been developing one of my own (using my own PHP framework xD). But then it seemed like a good project (profitable), so I discussed the "prospects" with the client who was happy to help finding other clients (for a fee/discount xD). I am still working on my POS, which I'm trying to develop to be as "generic" and as "standard" as possible (to make a brand out of it here in Algeria).
OSPOS has everything my client (/partner?) needs, and it's the reason why I'm trying to learn how to change the code so as to implement the Multi-store capabilities as well as any other changes required.
The truth is I came across so many ready pos with the requirements set by my client, but they're just too expensive (Algerian Economy just can't keep up with the rest of the world), and OSPOS is about the only opensource project that allows developers to change in its code and make a profit out of it for small fees.
mouradsme commentedon Oct 23, 2021
I'm not familiar with Grant refactoring, could you refer me to some good reading materials/videos about it?
daN4cat commentedon Oct 24, 2021
The refactoring @jekkos is talking about is related to access control. Grant is a permission you give to access something. It's part of the permissions you give an employer to use part of the ospos functionality.
That refactoring is something he has done, so I understand reading his comment.
mouradsme commentedon Oct 25, 2021
@jekkos can you tell me which branch was it that supported the multi-tenancy feature?
mouradsme commentedon Oct 25, 2021
Access control seems like a tedious task in considering multi-store capabilities, but s it possible to just consider a case where each store has its own OSPOS installed on a LAMP/WAMP/MAMP server, and then only send relevant data (stocks, reports, clients, suppliers & products..) to a central app hosted on the cloud (for the owner)?
objecttothis commentedon Oct 25, 2021
I don't think he has made that public. It was paid work for him.
objecttothis commentedon Oct 25, 2021
What you are suggesting would be more work in terms of APIs and client/server configuration. Grants framework is already in the codebase.
jekkos commentedon Oct 26, 2021
The branch indeed allowed you to set a grant on a store location basis. So an admin would have all grants for permissions in every store.
mouradsme commentedon Nov 21, 2021
@jekkos which branch was it iydmma?
[-]Multi location support[/-][+][Feature]: Multi-location support[/+]