How to do real time inventory sync with Square and Magento - magento-1.9

I am using SquarePos, is possible real time inventory sync with Square and Magento

It is possible if Magento has integrated Square's V2 Webhooks which help you to subscribe to any inventory changes -
https://developer.squareup.com/docs/webhooks-api/what-it-does.

Related

How to sync products to local sql database for on-premise app

I’ m currently developing a on-premise app for a local business.
The point of this app is to manage the cashing system and get input from a barcode scanner.
When a barcode is scanned the app should make a request to Shopify to get the product to display it in my app and adjust the stock value. I can do this by using the admin api.
But this is not a great solution when the internet is down. Then I cannot request for products.
Therefore I need to request all products periodically to store it locally and use the local db to make changes and when the internet is back update to shopify.
But when I do this a new problem arises. For example, I request at 9:00AM all the products,
If a client comes to the local store and buys an item its stock value is : stock - 1. But when another client goes to our online store and buys the same item, the stock will get adjusted to. The problem is when the product is on stock value 1.
When I do a resync later eg (1:PM) the total stock of the product will get -1, which is not a valid stock and someone bought a product that is no longer in stock.
Is there a reliable way to sync shopify products to a local db and keep the stock updated at all times ?
Kind regards
Jens Vanhulst

Creating a dashboard for Infrastructure consumtion by customer using dynatrace

I am new to dynatrace.
We have a multi-tenant cloud application. I am working on a POC to check if dynatrace can be used
to create a matrics which will give information about infrastructure usage details by each customer.
These information i will store it either in a table or a file.
For example for Customer1 an entry will be there in a file/db table like ,
RDBMS:200MB, FILES_STORAGE:1GB, JMS:100 etc.
The above information are usage done for a day
Now using dynatrace I want to create a dashboard, the above information should be shown in a timeseries.
Could some one please help me what are features I have to use and learn to achive this?
Thanks in advance.
You can periodically send the metrics to Dynatrace as "custom metric", see the documentation.
Note: You cannot send historical values this way, you will send the "current" value periodically to continuously fill the timeseries.
Naturally you can send this much more often than daily, up to seconds-resolution if necessary and then you will get the chart in full resolution.
Then you can use custom charting to chart the metric and "pin" it onto a Dashboard.

Multiple app were running in background , how to close them properly, autodesk forge

It is a forge app question. The app is created in visual studio and forge app. I was debugging. I am working on a forge application where I am using Data management, design automation and model derivatives. Design automation app were closing properly. After integrating Model Derivative I was passing rfa file by mistake and app was running endlessly.. The model is very small, but initially I did some mistake while passing the model to model derivative. I was passing rfa file, later realise model derivatives do not read rfa file. In the mean time I tried so many times. After passing a rvt file to model derivative, it was very fast and was running perfect. I had deleted those hanged apps. When they were running endlessly and did not show the model in the viewer, I closed the app and rerun the app or deleted the app and created a new one and rerun. Then when I saw data usage,it shows multiple apps were consuming cloud credit.Is it possible, multiple app were running simultaneously and the jobs which I had deleted did not close properly? The test model was really small.
I had stopped the app abruptly and debug again. I can guess, multiply apps were running one upon another. It is my guess. I can be wrong.
Please let me know few known reasons, for app running in background and how to properly end a job in forge cloud platform. I simply stopped debugging in visual studio and deleted the app in forge and created a new one.
In the usage graph, it is showing overlapping colors and usage of several app. My new model for design automation is big, my worry is I will lost all of my cloud credit if I do not close the jobs properly.
How to stop a project running in forge cloud. I am sure I could not stop app running in cloud properly before creating a new forge app and debug. All of them were running. I can be wrong, because I am new to forge cloud.
I described above, what can go wrong. Please let me know what could go wrong. Model was really small.
May be Ngrok was not closed properly. No idea.
I thought I closed each job, before starting a new one.
Model Derivative API doesn't support RFA format currently. With my experience, it will the following message while submitting a translation job on the RFA file with POST Jobs. Therefore, I'm not sure why you're saying the job or the app keeps running endlessly. Could you share more details on that??
{
"diagnostic": "Failed to trigger translation for this file."
}
Besides, I'm confused with your statement here. What kind of app was deleted? The Forge app inside your myapp page? It's unclear to me.
I had deleted those hanged apps. When they were running endlessly and
did not show the model in the viewer, I closed the app and rerun the
app or deleted the app and created a new one and rerun.
To cancel or delete translation jobs, you can call DELETE manifest. According to our engineering team, each translation job has designed expire time (e.g. 2 hours). If your translation job cannot be completed within the period, then the job will be canceled immediately by our service.
Note. To cancel a Desing Automation WorkItem, you can call DELETE workitems/:id to stop the job.
Lastly, back to the cloud credits question, Model Derivative API is charging per translation job while calling POST Jobs, not by the processing hour. Currently, only the Design Automation API is charging by the processing hour of your work item, see the pricing table here: https://forge.autodesk.com/pricing.
If you have further questions, you can drop me a line to forge[DOT]help[AT]autodesk[DOT]com.
Cheers,

Automatic Sales Tax in 4D

I'm hoping there is a soul out there who has some experience with 4D SAS. We use it for our inventory/sales management. What I am struggling with now is how to set up some sort of system to automatically calculate sales tax within our own state etc.
Edited:
Currently we sell products in CA and we are required to adjust sales tax based on the locations of certain orders. We take orders online and that part is easy, currently WooCommerce can integrate with TaxJar or solutions like that to address our needs.
Any phone/fax/mail order however we input directly into 4D. This is where I am struggling. Currently when we have any of these orders, we have to then declare taxes at a later date etc.
What I am trying to do is set up either my own database (I think?) or what I would prefer to do, is have some external service integrate directly with 4d that would automatically calculate the necessary sales tax and include that in our totals.
So to TLDR my questions:
1) Is there an automatic 3rd party solution that I can integrate with 4d that will automatically calculate sales tax? If so does anybody have any experience in doing so?
2) If not, is there the ability to build a manual database of tax rates (based on zip codes for example) that can be implemented into 4D. If so does anybody have any experience in doing so?
If there is some sort of database entry that anybody is aware of or that someone can guide me to that would be much appreciated, and/or if anybody has experience with this specific issue and knows what to do that also would be great! Hope that helps clarify!
TaxJar or ZipTax both offer APIs that 4D can use to do lookups. IMO, REST is the way to go. I've integrated 4D with WooCommerce as well.
4D has a built-in Web Services (SOAP) Client so you could utilize any online API that has a SOAP endpoint.
4D also has built-in HTTP Client commands so you could also utilize any online API that has a REST endpoint.

How to synchronize product inventory stock in 2 databases. Mysql and MSSQL real time

i have Magento e-commerce system with Mysql and windows based POS system written .net with MSSQL Database,
what's the best way to manage the stock in real time ?
Solution 1
to write a cron job to export transaction to xml file then send the data, also to read the update data from the POS via ftp.
and on the POS system to create widows server to read the xml file to update database and after export xml to update Magento when ever there is sales or manually changes into the stock.
Solution 2
can i create a web service to update stock on both ends?
Thanks in advance.
Real time is almost always a tricky beast to tackle.
What I would do is utilize the Magento API to get and set the information you need regarding the stock. You may find that the Magento API is a little slow. Alan Storm has some good articles explaining the ins and outs of the API at his blog at alanstorm.com. I would look there if you want to know more.
Alan Storm also has released his own API called MercuryAPI. This could possibly help you.
Otherwise you could just create your own API endpoints for what you need to handle. I have found that sometimes this is your best bet. The one thing you have to remember is that you alone are going to be responsible for securing anything you make on your own (just be careful). In your case, you probably will be dealing with the Stock Item models of Magento. You don't necessarily need to handle the entire product model to just update stock levels.