Back to snapcart-api report
Code QualityMedium
Duplicated Price Logic
src/services/invoice.ts:41
Before
1// rounded differently than checkout.ts2const total = Math.round(subtotal * 0.9);After
1const total = applyDiscount(subtotal, tenPercentDiscount()); // one source of truth- Uploaddone
- Analyzedone
- Finddone
- Explainactive
- Fixupcoming
- Testupcoming
- Verifyupcoming