Is there a way to do a validation at POS when accepting a payment, Let say to limit it to an amount less than 5000?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Added the following at validate_order function
if (plines[i].get_type() === 'cash' && plines[i].get_amount() > 10000) {
this.pos_widget.screen_selector.show_popup('error',{
'message': _t('Invalid Payment'),
'comment': _t(plines[i].get_amount()),
});
return;
}
Hi JC,
To change the working of the Validate button and to add a validation as said above , you have to make necessary changes in the function validate_order in the screen.js in the point_of_sale module, either you can done inside the code or you can do it by custom module. custom module will be better.
Inside the function you can add the code to check the payment amount and validate it
Thank You
Could you share the codes how to limit it to 5000
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 3 17
|
5256 | ||
|
2
thg 4 16
|
3774 | ||
|
4
thg 1 16
|
5901 | ||
Issue while printing Sales Details
Đã xử lý
|
|
1
thg 6 17
|
6084 | |
|
1
thg 8 24
|
7998 |