2025 Oct 02 3:31 PM
I developed an app that uses the InventoryGenEntries endpoint. Everything has been working fine, but today we encountered an issue I’m not sure how to resolve.
Here’s the data I sent to the API:
php
array:2 [
0 => array:6 [
"obra" => "OE-593",
"codigo" => "410706",
"fecha" => "09-09-2025",
"cantidad" => "1",
"idobrealizada" => "155886",
"precintoserial" => "30002829"
],
1 => array:6 [
"obra" => "688",
"codigo" => "420123",
"fecha" => "10-09-2025",
"cantidad" => "1",
"idobrealizada" => "155889",
"precintoserial" => "30002844"
]
]
However, in SAP, the second item wasn’t saved under code 420123 — it was saved under 420122. I don’t understand how this could happen, since the item code is explicitly defined in the array. Do you have any idea what might be causing this? I’d be grateful if anyone could assist me with this issue. Thank you in advance!