News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Wrongly updating stock when using order status N , assigned as [is removed]

Started by Jörgen, December 27, 2015, 19:39:23 PM

Previous topic - Next topic

Jörgen

Hello

First of all:
Joomla 3.4.8
VM 3.0.12 (updated from VM 1.1.3 6 months ago)

This folowing is giving me gray hairs.

I have assigned a couple of extra Order statuses. I use them to update my orders and give the customer i little more status info. To give some examples:

N: shipped as economy shipment (is removed)
B: shipped as first class letter (is removed)
Z: handled by customer service (is reserved)

My problem is that if I ship an order that has been confirmed and give the status N VM puts the products back in stock.
If I use the status B it actually works. I made a test where I changed the order status from B to N an VM puts the products back into stock again.

They are both assigned is removed(from stock). I checked the database and the order status view, both say the same. I have tried to find the code for updateing the stock, but with no luck. Is there some hard coded statuses that should not be used ? I have used these statuses with my VM 1.1 for Years without problems. Now it seems to be a problem. I can not figure out why.

I have realized that if I use the order status Z (Handled by customer service) I have to uncheck the all lines check box, but when I ship my items I should be able to use the B and N statuses to update the stock or am I missing something here ?

This is also happening with VM 3.0.8.

Has anyone a clue why this is happening ?

regards

Jörgen @ Kreativ Fotografi


Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

Hi Jörgen,
If i can remember the statut "N", is used internally by VIrtuemart.
Try to use another letter and check if it work.
Merry Christmas,
Patrick

Jörgen

Hello Patrick

I changed the status code to J instead of N and it seems to be working. Thanks for the hint. But if this letter is used internally I should not have had this problem in the first place. Do You know in which model the order lines update the stock values ? I made an attempt but didn´t find it.

Anyway my problem seemes to be solved, thank You for this.

Have a nice evening

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

Studio 42

N is used for NEW, before any statut set in order.
This is a long time ago so, i think.
This should be controlled, but i think no one had used it before. Perhaps in last VM, this statut is controlled ? You need to check with current developpers.

Greets,
Patrick

Jörgen

Hello Patrick

I am using VM 3.0.12. With control I mean that the letter N would be impossible to assign for a user. But I think that I migrated the N status from my 1.1.3 VM. So this could circumvent a check.

Thank You and Good night :)

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.