Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025438Openbravo ERP07. Sales managementpublic2014-01-07 21:482014-01-27 11:46
pjuvara 
vmromanos 
normalmajoralways
feedbackopen 
5
3.0MP29.1 
 
Core
No
0025438: Service Contract Billing does not apply Buy X and Get Y as a Gift promotion
I am using the Service Contract module together with the Promotion and Discounts Rules for Retail module.

The scenario that I need to support is:
Customer buys a service contract for a basic monthly fee (product A) that entitles them for up to 10 units of a particular product (product B) during the service period. Any usage of product B above 10 needs to be billed in the subsequent period.

NOTE: this is a basic flow in coworking where members are getting access to up to X hours of conference rooms and need to pay by the hour above that (in my case, I am trying to apply it to a cloud subscription service, but the principle is the same - you pay a monthly fee and you are entitled to a certain number of hours of elastic compute services per month; if you exceed the number of allowed hours you are charged in the subsequent month).

I modeled this using a buy X and get Y as a gift promotion where X is the base fee (product A) and Y is the usage (product B).

If I manually create an invoice with product A and product B, the promotion is correctly applied.

However, if I do that using the Service Contract Billing engine, the promotion is not applied.

(NOTE: the Service Contract Billing engine applies other types of promotions like a straight price adjustment but it ignores the more sophisticated promotion types).
See attached screenshots:
A) Promotion
B) Manual invoice (where the promotion is applied correctly)
C) Service Contract
D) Incorrect invoice
No tags attached.
png A-Promotion.png (97,901) 2014-01-07 21:48
https://issues.openbravo.com/file_download.php?file_id=6612&type=bug
png

png B-CorrectInvoice.png (119,498) 2014-01-07 21:48
https://issues.openbravo.com/file_download.php?file_id=6613&type=bug
png

png C-ServiceContract.png (110,973) 2014-01-07 21:49
https://issues.openbravo.com/file_download.php?file_id=6614&type=bug
png

png D-IncorrectInvoice.png (130,449) 2014-01-07 21:51
https://issues.openbravo.com/file_download.php?file_id=6615&type=bug
png
Issue History
2014-01-07 21:48pjuvaraNew Issue
2014-01-07 21:48pjuvaraAssigned To => dmiguelez
2014-01-07 21:48pjuvaraFile Added: A-Promotion.png
2014-01-07 21:48pjuvaraModules => Core
2014-01-07 21:48pjuvaraTriggers an Emergency Pack => No
2014-01-07 21:48pjuvaraFile Added: B-CorrectInvoice.png
2014-01-07 21:49pjuvaraFile Added: C-ServiceContract.png
2014-01-07 21:51pjuvaraFile Added: D-IncorrectInvoice.png
2014-01-27 11:34eduardo_ArgalAssigned Todmiguelez => vmromanos
2014-01-27 11:46vmromanosNote Added: 0063716
2014-01-27 11:46vmromanosStatusnew => feedback

Notes
(0063716)
vmromanos   
2014-01-27 11:46   
Hi Paolo,

Which version of the Service Contract module are you using?
Promotions and discounts should properly work since Service Contract 1.1.4