When updating an invoice, nested resources are not updated
When I edit an invoice, the batches and tasks are not updated. Here is the payload which is sent:
{
"@id": "http://localhost:8000/customer-invoices/1/",
"title": "test test",
"identifier": "0123456789000",
"state": "",
"invoicingDate": "2020-10-21",
"tvaRate": 13,
"additionalText": "",
"batches": [
{
"@id": "http://localhost:8000/batchs/1/",
"title": "Lot 1",
"tasks": [
{
"@id": "http://localhost:8000/tasks/1/",
"title": "Tache 1",
"htAmount": 10
},
{
"@id": "http://localhost:8000/tasks/2/",
"title": "Tache 2",
"htAmount": 22
}
]
}
],
"@context": {
"@vocab": "http://happy-dev.fr/owl/#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"ldp": "http://www.w3.org/ns/ldp#",
"foaf": "http://xmlns.com/foaf/0.1/",
"name": "rdfs:label",
"acl": "http://www.w3.org/ns/auth/acl#",
"permissions": "acl:accessControl",
"mode": "acl:mode",
"geo": "http://www.w3.org/2003/01/geo/wgs84_pos#",
"lat": "geo:lat",
"lng": "geo:long"
}
}
@calummackervoy do you see something wrong in this?