Most of this is well documented on forum. Starrt here;
Also check the kb https://kb.sambapos.com/en/?lang=en&s=inventory