Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2169 Lượt xem

We have many products that are ordered in on an adhoc basis and would like to see the quantity on hand when we "Add a Product" in a sales order to make sure we are selecting an item that is in stock.

Ideally, if product = storable product and qty on hand > 0 the product will look in the search box like:

[Qty:30], Product Name 1

[Qty:100], Product Name  2

Product Name  3 <-- no stock or consumable

Does any one know if this is possible and how I would go about this?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Linda:

You can do this by extending and customizing the name_get method of the ProductProduct class. 

Ảnh đại diện
Huỷ bỏ