تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
7049 أدوات العرض

How to Load products having quantity greater than 0 in POS ?

I tried point_of_sale/static/src/js/model.js Line number 177

[['sale_ok','=',true],['available_in_pos','=',true], ['product_uos_qty' , '>', 10]], but no use, got stock in this situation, pls help me to sort this out.

الصورة الرمزية
إهمال
أفضل إجابة

Hello arun, try with the following portion of code, it worked for me:

[['sale_ok','=',true],['available_in_pos','=',true],['qty_available' , '>', 0]]

Hope it help you

Cheers
Alejandro

الصورة الرمزية
إهمال
أفضل إجابة

Wow, great Alejandro, 100% works.

I just edit point_of_sale/static/src/js/model.js

And change

[['sale_ok','=',true],['available_in_pos','=',true]]

To

[['sale_ok','=',true],['available_in_pos','=',true],['qty_available' , '>', 0]]

And the zero quantity product is now gone from my POS.

Great info bro

Thanks

الصورة الرمزية
إهمال
الكاتب أفضل إجابة

Alejandro, thanks for your reply, but i tried this one, same result, did u make any changes to point_of_sale.py..?? 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يناير 23
8657
0
سبتمبر 24
1391
3
يوليو 24
1979
1
أغسطس 24
9523
0
سبتمبر 23
1312