Skip to content

Order price, cost and rebate set to 0 after set external_id or other order fields #332

@cristianc81

Description

@cristianc81

Hello,
I created a command to sync some order data from an external system.
Below the snippet of code I used

$context = app('aimeos.context')->get(type: 'command');
$orderManager = MShop::create($context, 'order');
$aimeosOrder = $orderManager->get($aimeosOrderId)->off();
$aimeosOrder->set('external_id',$order['no']);
$orderManager->save($aimeosOrder);

After save I found the order price, cost and rebate equal to 0.
I have the same behaviour if I use setInvoiceNumber, setDateDelivery, setStatusDelivery.
I use the Aimeos 2024.10.3 and Laravel 11
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions