fix(medusa-plugin-sendgrid): do display_value calculations
This commit is contained in:
1 parent
c5019ca0d1
commit
5e47aecbf7
1 file changed
+5
@@ -35,6 +35,11 @@ class SendGridService extends BaseService {
|
||||
switch (event) {
|
||||
case "order.gift_card_created":
|
||||
templateId = this.options_.gift_card_created_template
|
||||
data = {
|
||||
...data,
|
||||
display_value:
|
||||
data.giftcard.discount_rule.value * (1 + data.tax_rate),
|
||||
}
|
||||
break
|
||||
case "order.placed":
|
||||
templateId = this.options_.order_placed_template
|
||||
|
||||
Reference in new issue
Block a user