Skip to content

Commit

Permalink
Merge pull request #11 from commerce-suite/hotfix/compre-junto-nao-co…
Browse files Browse the repository at this point in the history
…ntabiliza-desconto

[Hotfix] Compre Junto não contabiliza desconto
  • Loading branch information
simaomeyrerdooca authored Aug 29, 2024
2 parents d7648ba + b8169cb commit e413253
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class FrontBuyTogetherAdapter {
const adaptSpecialPrice = (payments: Payment[]): number | null => {
const pixMethod = payments.find(payment => payment.method === 'pix');
if (pixMethod) {
const specialPrice = product.price * Number(pixMethod.markup);
const specialPrice = Number(pixMethod.installment.total);
return specialPrice;
}
return null;
Expand Down

0 comments on commit e413253

Please sign in to comment.