Hello,
I'm sorry but I'm not following you for your workflow ; I do not understand what you're talking about.
1 - Oh yes, in HikaMarket 1.7 a paid order cannot be modified at all and the order status is not changed..
That's something I changed in HikaMarket 1.8 but with all the remaining tests I have to stabilize the new organisation (and the work I have for HikaSerial), I'm not able to release it yet.
Right now, the best would be to display the "current" order status from the "vendor adjustments".
In the hikamarket ordermarket/view.html.php file you will find the line
$order->refunds = $db->loadObjectList();
You need to replace it with
$order->refunds = $db->loadObjectList();
foreach($order->refunds as $refund) {
if($refund->order_vendor_paid == 0)
$order->current_order_status = $refund->order_status;
}
So in the ordermarket/show_block_general view, you can adapt the display of the order status
if(!isset($this->edit) || $this->edit !== true ) {
?><span><?php echo hikamarket::orderStatus($this->order->order_status); ?></span><?php
} else {
$extra = 'onchange="window.orderMgr.status_changed(this);"';
echo $this->order_status->display('data[order][order_status]', $this->order->order_status, $extra);
}
With something like
$order_status = isset($this->order->current_order_status) ? $this->order->current_order_status : $this->order->order_status;
if(!isset($this->edit) || $this->edit !== true ) {
?><span><?php echo hikamarket::orderStatus($order_status); ?></span><?php
} else {
$extra = 'onchange="window.orderMgr.status_changed(this);"';
echo $this->order_status->display('data[order][order_status]', $order_status, $extra);
}
But for sure it won't affect the CSV export because that data is a raw export of what is in the database.
2 - I don't know what you're talking about.
When an adjustment is paid and there is a new need of adjustment, a new adjustment is created.
In HikaMarket 1.7 when an element is marked as "paid", it cannot be modified anymore to not generate side effects and keep some kind of history of what happened.
3 - When you pay your vendors, you have two modes of display, the first one is "orders" and the second is "products".
In "products" mode, an adjustment is not referring to a product ; that's why you have such kind of display.
And once again, that's something I'm trying to improve with a really hard and complicated work of HikaMarket 1.8
Regards,