VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: man.of.earth on March 12, 2019, 12:12:28 PM

Title: Invoice numbering resets when changing order status from the order editing page
Post by: man.of.earth on March 12, 2019, 12:12:28 PM
Hello everyone,

On my site, invoice generation is activated when the order status changes to ,,Completed".
When modifying the order status to ,,Completed" on the page of editing the order ( /administrator/index.php?option=com_virtuemart&view=orders&task=edit&virtuemart_order_id=xxxx ), the number of the invoice resets (starts again with the first number, instead of continuing from where it left).
It works ok if I modify order status on the order list page ( /administrator/index.php?option=com_virtuemart&view=orders ).