POS-Awesome icon indicating copy to clipboard operation
POS-Awesome copied to clipboard

[BUG]: POS Offer- Give Product with 0 Rate or 100% disc error

Open bobzz-zone opened this issue 2 years ago • 6 comments

Versions

  • Frappe: 13.32.0
  • Erpnext: 13.33.0
  • POS Awesome: 3.3.0

Steps to reproduce

  1. Create POS Offer by item code , and give product type , set rate 0 for the given product
  2. Create order on POS
  3. Apply POS Offer
  4. Offer Added as expected
  5. Make Payment
  6. 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 image See Screenshot.. missing row 1

bobzz-zone avatar Jun 21 '22 01:06 bobzz-zone

I tried to reproduce the issue and it seems to work fine so can you provide more details?

yrestom avatar Jul 20 '22 11:07 yrestom

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

1475963elyus avatar Jul 26 '22 07:07 1475963elyus

Hi @1475963elyus I think this issue is related to the print format you are using

yrestom avatar Jul 26 '22 08:07 yrestom

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: @.***>

1475963elyus avatar Jul 26 '22 09:07 1475963elyus

@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

bobzz-zone avatar Jul 26 '22 14:07 bobzz-zone

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

yrestom avatar Jul 28 '22 11:07 yrestom