Jump to content

Prestashop 8.0.4 Lagerbewegungen mit Webservice Rest API auslesen


Frank Begbie

Recommended Posts

Wollte mit der api und webservice  die Tabelle stock_movements  auslesen was soweit auch klappt, aber in dem Ergebnis fehlen die Productid  und management_type  Ohne diese hilft mir das nicht weiter. Wollte anhand dieser Daten den Bestand in unserem Kassenprogramm bereinigen. Hat jemand eine Idee woran das liegen kann das diese Daten fehlen. Im Backofficebereich wird beim Lager /Betsandänderungen die Daten angezeigt.. Hier ein Beispiel einer Ergenis XML

<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<stock_mvt>
     <id><![CDATA[1]]></id>
     <id_product><![CDATA[]]></id_product>
     <id_product_attribute><![CDATA[]]></id_product_attribute>
     <id_warehouse><![CDATA[]]></id_warehouse>
     <id_currency><![CDATA[]]></id_currency>
     <management_type><![CDATA[]]></management_type>
     <id_employee xlink:href="http://dl.miami-kassen.de/api/employees/1"><![CDATA[1]]></id_employee>
     <id_stock xlink:href="http://dl.miami-kassen.de/api/stocks/1"><![CDATA[1]]></id_stock>
     <id_stock_mvt_reason xlink:href="http://dl.miami-kassen.de/api/stock_movement_reasons/11"><![CDATA[11]]></id_stock_mvt_reason>
     <id_order><![CDATA[]]></id_order>
     <id_supply_order><![CDATA[]]></id_supply_order>
     <product_name><language id="1" xlink:href="http://dl.miami-kassen.de/api/languages/1"><![CDATA[]]></language><language id= "2" xlink:href="http://dl.miami-kassen.de/api/languages/2"><![CDATA[]]></language></product_name>
     <ean13><![CDATA[]]></ean13>
     <upc><![CDATA[]]></upc>
     <reference><![CDATA[]]></reference>
     <mpn><![CDATA[]]></mpn>
     <physical_quantity><![CDATA[1387]]></physical_quantity>
     <sign><![CDATA[1]]></sign>
     <last_wa><![CDATA[0.000000]]></last_wa>
     <current_wa><![CDATA[0.000000]]></current_wa>
     <price_te><![CDATA[0.000000]]></price_te>
     <date_add><![CDATA[2023-06-07 14:09:47]]></date_add>
</stock_mvt>
</prestashop>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...