[inv 1.5] Inventory Purchase and Control via PHP


#21

my bad luck, I want to also update the previous WP purchases Either
how can I configure update previous WP purchases Either?


#22

You can’t edit previous WP purchases. You have to use the End of Day records. This is how it is designed.


#23

Yes, it was my problem of understanding, sorry about that

In any case always have to replace the old with a new transaction and edit the inventory.


HTML Widget URL: setting URL value with Set Widget Value Action
#24

I could understand, in any case I would like to try the php configuration setting

it seems that did everything right, but my screen so it appears


HTML Widget URL: setting URL value with Set Widget Value Action
#25

To be honest if you dont have any experience setting up php on the server end then your going to find it very difficult to use. His setup is very advanced and requires knowledge of PHP and how to setup the server.

That screen means you setup the XAMP server and it is running but you have not setup the PHP files contained in this tutorial correctly on the server.


#26

Yes, I believe I need to know more about PHP on the server.
I read and research more about … and I’ll be back for more …

thank you, Kendash


HTML Widget URL: setting URL value with Set Widget Value Action
#27

Basically your webroot you should put everything inside the html folder from his zip file. index.html is your main page.

BTW This is a nice solution for v4. But just to let you know v5 is due out soon and it has this capability built in.

You will still not be able to edit previous WP purchases or make purchases outside a WP.


#29

Hello, Can be used for Sambapos V3?


HTML Widget URL: setting URL value with Set Widget Value Action
#30

No. Read the first post. This is for V4 only.


#31

Ok, thank you! I’m getting some error with xampp! I cannot put in root folder html files because i have other file and cannot overwrite. I inserted extension file for php, just need to set root folder!


#32

Can’t help you with XAMPP, sorry. I have never used it. I know it is pre-configured to contain Apache as the Webserver and mySql as the DB, along with PHP and phpMyAdmin (web-based management of mySql). The only part of XAMPP that you really need is the PHP installation. The rest is “overkill” and for the most part, unused.

Here is a Tutorial on setting up a basic PHP installation with IIS. It isn’t that difficult once you have done it a couple times, and learned the requirements, some of which are a bit cryptic to troubleshoot at first…

http://forum.sambapos.com/t/php-install-php-on-windows-with-iis/5490


#33

can this send an email to the staff responsible for purchasing inventory or a group of people ?


#34

you can use send email action.


#35

@QMcKay

Do you have DB Import for this ?


#36

No. There is no point in having DB Tools import file for this. It would only contain my Supplier Entities and Warehouses, which will be different for you. I suppose I could export the Inventory and Account Transaction Types and Documents, but that is a very simple configuration to do manually.

I gave explanation how to configure the Entities and Warehouses to work with this system. The rest is PHP code running on a Webservice (I use IIS, but Apache would work too).


#37

Thanks Mate

I will give it a try and let you know.


#38

Hi @QMcKay are you still using this with version 5 or is there any need?


#39

I still use this with V5. It isn’t needed, but the process is different using the PHP in that it is backwards, and I still prefer the PHP method over the SambaPOS method.

SambaPOS requires that you select the Document, then the Items, then Save.

The PHP system allows to select the Items first, then choose the Document(s) last.


#40

Greeting to all , kindly help me. i have created the Payout and request Stock buttons but I dont know how to create their actions and Rules so that I link sambapos4 with inventory purchase via php.

I have been trying to follow HTML Widget URL: setting URL value with Set Widget Value Action

@QMcKay , kindly help, thanks


#42

You don’t need to use the Action for Set Widget Value.

Configure your Entity Screen

No Mapping required.


Create an Automation Command

Map it to a location you want the Button to appear


[V5] Set the Navigation for the Automation Command to go directly to the Entity Screen

In V5 this works without any additional Actions or Rules.


[V4] Create an Action for Change Ticket Entity


[V4] Create a Rule to handle the Automation Command


Add and Configure Settings for an HTML Viewer Widget for the Entity Screen