Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. <div *ngIf="priceList.exceptions && priceList.exceptions.length > 0">
  2. <div *ngFor="let exception of priceList.exceptions; let i = index">
  3. <div *ngIf="article && article._id === exception.article"> <!--does not find equality -->
  4. <b>PE: {{ article.salePrice + (article.salePrice * exception.percentage / 100) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
  5. </div>
  6. </div>
  7. </div>
  8. <!--eject this-->
  9. <div *ngIf="!priceList.allowSpecialRules">
  10. <b> PL: {{ article.salePrice + (article.salePrice * priceList.percentage / 100) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
  11. </div>
  12. <div *ngIf="priceList.allowSpecialRules">
  13. <div *ngFor="let rule of priceList.rules; let i = index">
  14. <div *ngIf="article.category && article.make && rule.category === article.category && rule.make === article.make._id">
  15. <b>PL: {{ article.salePrice + (article.salePrice * ((rule.percentage + priceList.percentage) / 100)) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
  16. </div>
  17. <div *ngIf="article.category && rule.category === article.category && rule.make === null">
  18. <b>PL: {{ article.salePrice + (article.salePrice * ((rule.percentage + priceList.percentage) / 100)) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
  19. </div>
  20. <div *ngIf="article.make && rule.category === null && rule.make === article.make._id">
  21. <b>PL: {{ article.salePrice + (article.salePrice * ((rule.percentage + priceList.percentage) / 100)) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
  22. </div>
  23. <div *ngIf="article.make && rule.category !== article.category && rule.make !== article.make._id">
  24. <b>PL: {{ article.salePrice + (article.salePrice * priceList.percentage / 100) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
  25. </div>
  26. </div>
  27. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement