Openbravo Issue Tracking System - Retail Modules
View Issue Details
0057650Retail ModulesDiscounts and Promotionspublic2025-01-15 13:312025-01-18 10:08
sofidossant 
Bimla_vm 
normalminorunable to reproduce
scheduledopen 
5
pi 
 
No
0057650: [COUPONS] - N applications per customer coupons cannot be used with an external bp
With the change https://issues.openbravo.com/view.php?id=54402 [^] if we use an external business partner, we can not use it, because in some cases the external is not created in openbravo, but it is external, and in the bp we have the anonymous customer.
We have not been able to reproduce it in livebuilds, since we do not have bp that are not created in openbravo but in the external one.

Create discount with gift product, and coupons (configured N uses per customer coupons, and without crm reference or bp)
1- Open webpos.
2- Add an external bp (not in openbravo).
3- Add products and the gift product.
4 - Try to add the coupon for the discount.
You have the problem
      if (isAnon && null == crmReference) {
        criteria.add(Restrictions.ne(Coupon.PROPERTY_NUMBEROFUSES, "NC"));
      }
No tags attached.
Issue History
2025-01-15 13:31sofidossantNew Issue
2025-01-15 13:31sofidossantAssigned To => Retail
2025-01-15 13:31sofidossantTriggers an Emergency Pack => No
2025-01-17 09:02guilleaerDescription Updatedbug_revision_view_page.php?rev_id=29066#r29066
2025-01-18 10:08Bimla_vmAssigned ToRetail => Bimla_vm
2025-01-18 10:08Bimla_vmStatusnew => scheduled

There are no notes attached to this issue.