Hello everyone, I am looking for guidance where to find a file/function/piece of code which handles stock add/removal.
My idea was this: when I press a "Add Stock" or "Remove Stock" button and insert data, and then when I click "OK" button, I want that click to trigger a script which is written in Python. I also want to pass the "Quantity", "Price" and "Comment" as arguments to the Python script. Furthermore, but not necessarily, I want to pass current user name.
<?php
$command = escapeshellcmd('/usr/custom/test.py');
$output = shell_exec($command);
echo $output;
?>
This looks promising, as I could, I guess, without problems pass arguments as well.
What I actually need guidance with is finding where exactly should I add this piece of code! Of course, I also need to somehow pass the
"Quantity", "Price" and "Comment" parameters, so any help with that would be helpful, but I am willing to learn that on my own.
I think that .php scripts I am looking for should be in folder
\partkeepr-1.4.0\src\PartKeepr\PartBundle\Action
but I am still unable to get myself through all of that.
Any help would be appreciated.