POS-Awesome
POS-Awesome copied to clipboard
[BUG]: POS Offer- Give Product with 0 Rate or 100% disc error
Versions
- Frappe: 13.32.0
- Erpnext: 13.33.0
- POS Awesome: 3.3.0
Steps to reproduce
- Create POS Offer by item code , and give product type , set rate 0 for the given product
- Create order on POS
- Apply POS Offer
- Offer Added as expected
- Make Payment
- check the sales invoice , and offered product is missing
What is Expected? Expected offered product should be added
What is actually happening? Offered product is missing
Additional context its also happends with 100% discount
Screenshots
See Screenshot.. missing row 1
I tried to reproduce the issue and it seems to work fine so can you provide more details?
https://user-images.githubusercontent.com/110019678/180953189-7697d46b-e1bb-4715-80f9-56922d84b32a.mp4
free items (from buy 1 get 1 promo ) don't appear when printed
Hi @1475963elyus I think this issue is related to the print format you are using
Hi, sir how to set up the print format, so then the free item can appear.. ?
thanks Melyus
Pada tanggal Sel, 26 Jul 2022 pukul 15.43 Yousef Restom < @.***> menulis:
Hi @1475963elyus https://github.com/1475963elyus I think this issue is related to the print format you are using
— Reply to this email directly, view it on GitHub https://github.com/yrestom/POS-Awesome/issues/177#issuecomment-1195186588, or unsubscribe https://github.com/notifications/unsubscribe-auth/A2HMIXVZGYI5SKJH7X26VR3VV6QJHANCNFSM5ZKTTCZQ . You are receiving this because you were mentioned.Message ID: @.***>
@yrestom hi
@1475963elyus is my users...its not on the print out...
tried to hold the invoice to create a draft... but the items is not there
https://user-images.githubusercontent.com/1543515/181033203-9062d545-b041-4173-8b9c-077ec69589bb.mp4
The issue from this line in Erpnext
if not pricing_rules:
remove_free_item(doc)
```
https://github.com/frappe/erpnext/blob/69087b8790d0b17f17c8755ec2d31d57374813ae/erpnext/accounts/doctype/pricing_rule/utils.py#L545