Je veux créer une réservation de plusieurs items identiques (copie couleur)
j’envoie ceci en bookings args :
[item] => Impression A3 Couleur
[starts_on] => 2023-11-09 08:29:12
[ends_on] => 2023-11-09 08:29:12
[party_name] => W----m
[uom] => copie
[qty] => 50
[stock_qty] => 50
[tax_rate] => 20
[tax_amount] => 1.67
[base_net_rate] => 0.17
[base_rate] => 0.2
[base_net_amount] => 8.33
[base_total] => 8.33
[total_amount] => 10
(commande 50 copies A3 à 0,2 € TTC unitaire = 10 € TTC total )
et à la création de commande, la quantité disparait, et j’ai un item de commande (extraits) =
[name] => 95251daf2a
[item_code] => Impression A3 Couleur
[item_name] => Impression A3 Couleur
[qty] => 1
[stock_uom] => copie
[uom] => copie
[conversion_factor] => 1
[stock_qty] => 1
[price_list_rate] => 0.2
[base_price_list_rate] => 0.2
[margin_type] => Amount
[margin_rate_or_amount] => 9.8
[discount_amount] => -9.8
[rate] => 10
[amount] => 10
[item_tax_template] => TVA 20% Collectée - LC
[base_rate] => 10
[base_amount] => 10
[stock_uom_rate] => 10
[net_rate] => 10
[net_amount] => 10
[base_net_rate] => 10
[base_net_amount] => 10
[projected_qty] => 0
[actual_qty] => 0
[ordered_qty] => 0
[planned_qty] => 0
[work_order_qty] => 0
[delivered_qty] => 0
[produced_qty] => 0
[returned_qty] => 0
[picked_qty] => 0
[item_tax_rate] => [{"account": "xxxx- TVA 20% - LC", "rate": 20.0, "description": null}]
[tax_rate] => 20
[tax_amount] => 1.67
[total_amount] => 10
[parentfield] => items
[parenttype] => Sales Order
[doctype] => Sales Order Item
[__unsaved] => 1
Faut il ajouter plusieurs fois le même item pour avoir la quantité juste ?
Merci !