Version 18.104.22.168’s release notes (http://www.magentocommerce.com/download/release_notes#Release Notes - Magento 22.214.171.124 (July 1, 2009) fixed the bug where Magento despatched all items on an order even when only some of the items had been despatched :-
Fixed #12378: Shipping all order items items when I ship all products from one order item via soap
This was a big issue for me and had to stop using the despatch interface.
I have now switched the despatch interface back on assuming all should be ok now but the API is now complaining that I’m trying to create an empty shipment.
The sales_order_shipment.create shipping api states :-
string orderIncrementId - order increment id
array itemsQty - items qty to ship as associative array (order_item_id ⇒ qty)
string comment - shipment comment (optional)
boolean email - send e-mail flag (optional)
boolean includeComment - include comment in e-mail flag (optional)
The structure my visual basic 6.0 program is passing the the shipment API is :-
- : ShipmentAR : : Variant(0 to 4)
: ShipmentAR(0) : “100000253 “ : Variant/String
: ShipmentAR(1) : : Variant/Variant(0 to 1)
: ShipmentAR(1)(0) : 565 : Variant/Long <--- this is a valid item id
: ShipmentAR(1)(1) : 1 : Variant/Long
: ShipmentAR(2) : “DHL@HOME 24HR - Tracking Number: 000xxxxx “ : Variant/String
: ShipmentAR(3) : False : Variant/Boolean
: ShipmentAR(4) : False : Variant/Boolean
Is anyone else having the same issue with the despatch API ?
Has anyone got this to work using a Visual Basic 6 client ?
I’m thinking of adding a bit more debug code into the API so I can trace the code to see how the variables are being received via the API.
Which source code modules would I change in \app\code\core\Mage\Api order to do this ? (i.e where’s the sales_order_shipment.create code ?)