0
Before updating Invoice Manager to v.2 a script was used to duplicate the invoices. I'm not 100 percent sure, but I think it was this one, this is a part of the whole php file:
$sql = "UPDATE #_virtuemart_orders SET order_status= 'U' ";
if ($conn->query($sql) === TRUE) {
echo "Vaste bestellingen op BEVESTIGD DOOR KLANT gezet \n";
} else {
echo "Error updating record: " . $conn->error;
}
echo "
";
$sql = "UPDATE #_virtuemart_order_items SET order_status= 'U' ";
if ($conn->query($sql) === TRUE) {
echo "Artikelen op bestelling op BEVESTIGD DOOR KLANT gezet \n";
} else {
echo "Error updating record: " . $conn->error;
------------------------------------
The invoices were only duplicated in Invoice Manager and not in Virtuemart. My questions are:
1: is it possible to make duplicates in Invoice Manager with this script?
2: since the orders in Virtuemart are not duplicated and also not in the table #_virtuemart_orders, where does Invoice Manager gets the info for making the invoices?
$sql = "UPDATE #_virtuemart_orders SET order_status= 'U' ";
if ($conn->query($sql) === TRUE) {
echo "Vaste bestellingen op BEVESTIGD DOOR KLANT gezet \n";
} else {
echo "Error updating record: " . $conn->error;
}
echo "
";
$sql = "UPDATE #_virtuemart_order_items SET order_status= 'U' ";
if ($conn->query($sql) === TRUE) {
echo "Artikelen op bestelling op BEVESTIGD DOOR KLANT gezet \n";
} else {
echo "Error updating record: " . $conn->error;
------------------------------------
The invoices were only duplicated in Invoice Manager and not in Virtuemart. My questions are:
1: is it possible to make duplicates in Invoice Manager with this script?
2: since the orders in Virtuemart are not duplicated and also not in the table #_virtuemart_orders, where does Invoice Manager gets the info for making the invoices?
Responses (9)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Sorry for the late response.
It's clear to me now how it's works. The plugin is set to 'Shipped' on Create invoices on order status. And it does create an invoice, except when I change the status of an order in Virtuemart back to 'Confirmed by customer' and change it again to Shipped it will not create a second invoice, what I want it to do. Why is this and how can it be solved? -
Accepted Answer
-
Accepted Answer
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »