george thomidis
unread,Feb 4, 2026, 12:52:17 PMFeb 4Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Softone Developers Network
Hello,
We have implemented the webservice on our application using php and laravels http facade.
We have a method that dynamically creates materials and their specifications.
The issue is when updating them (doing the same http post method with the key field), the spclines get deleted.
I cannot understand nor find an explanation as to why. But maybe its because of a missing field on spclines?
bellow is an example of the method:
(ps.
i have tried adding fields line the primary key for the Spclines table
and the linenum but they result is the same behavior)
{
"service": "setData",
"clientID": "9J8.........L0",
"appId": 1....,
"object": "SPCPRD",
"key": 39182,
"data": {
"SPCPRD": [
{
"MTRL": 1070674,
"CODE": "60009-2067",
"NAME": "TEST BY IT",
"QTY1": 1,
"ISACTIVE": 1,
"ISMAIN": 1,
"COMMENTS": null,
"WHOUSE": 1000
}
],
"SPCS": {
"CODE": "60009-2067",
"MTRL": 1070674,
"NAME": "TEST BY IT",
"QTY1": 1,
"QTY2": 1
},
"SPCLINES": [
{
"MTRL": 942120,
"QTY1": 2,
"COMPANY": 1001,
"STAGE": null,
"STAGELINENUM": null,
"WHOUSE": 1000
}
]
}
}
-George Thomidis