saulhidalgoaular / saulpos

Open Source Point of Sale Software for SME
https://saulpos.com/
GNU General Public License v3.0
6 stars 2 forks source link

POS Implementation. #12

Open saulhidalgoaular opened 6 months ago

saulhidalgoaular commented 6 months ago

We need to basic structure of the POS module to the software.

The idea is that after logging in, if the POS option is chosen in the login, we should be able to see a POS part of the application. POS part is intended to be part of the invoicing and It should have a look similar to the following picture.

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyt-Wkx9byeGbLxDL7eNZZQzRmf80SuPZiJqoEz89XMCW5rmsYS1HiHNU5y8MfFsf4P918HH3USM2fHUzB8L8SZPqgq4ujafd7pT-Sjimr3aessrqbvUiFcvnZwGEQP4tavyen08oh4x0/s1600/a2+punto+de+ventas.jpg

It should not be exactly the same, but some similarity would be enough. We can replace the color black by a blue, make different sizes, etc.

Structure should be similar to the other parts of the project, It should be implemented as FXML in the resource folder. We might call it pos.fxml

Here is some example

https://github.com/saulhidalgoaular/saulpos/tree/master/src/main/resources

We can implement the buttons as a list of Nodes in the controller, that we can initialize maybe in the controller and add it to the view

It is very important to keep the same structure of the project.

Buttons should not have a real functionality, but at least a System.out.println() that says "Button Clicked" depending on the button. For example, if we click "Print", a message like "Print button clicked" should be printed in sout.

Buttons should be the listed in the TODO list: https://github.com/saulhidalgoaular/saulpos

There should be a model with the corresponding properties, like Total, Total Items, a list of products that populates the list of items, etc.