Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div *ngIf="priceList.exceptions && priceList.exceptions.length > 0">
- <div *ngFor="let exception of priceList.exceptions; let i = index">
- <div *ngIf="article && article._id === exception.article"> <!--does not find equality -->
- <b>PE: {{ article.salePrice + (article.salePrice * exception.percentage / 100) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
- </div>
- </div>
- </div>
- <!--eject this-->
- <div *ngIf="!priceList.allowSpecialRules">
- <b> PL: {{ article.salePrice + (article.salePrice * priceList.percentage / 100) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
- </div>
- <div *ngIf="priceList.allowSpecialRules">
- <div *ngFor="let rule of priceList.rules; let i = index">
- <div *ngIf="article.category && article.make && rule.category === article.category && rule.make === article.make._id">
- <b>PL: {{ article.salePrice + (article.salePrice * ((rule.percentage + priceList.percentage) / 100)) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
- </div>
- <div *ngIf="article.category && rule.category === article.category && rule.make === null">
- <b>PL: {{ article.salePrice + (article.salePrice * ((rule.percentage + priceList.percentage) / 100)) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
- </div>
- <div *ngIf="article.make && rule.category === null && rule.make === article.make._id">
- <b>PL: {{ article.salePrice + (article.salePrice * ((rule.percentage + priceList.percentage) / 100)) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
- </div>
- <div *ngIf="article.make && rule.category !== article.category && rule.make !== article.make._id">
- <b>PL: {{ article.salePrice + (article.salePrice * priceList.percentage / 100) | currency:'USD':'symbol-narrow':'1.2-2' }}</b>
- </div>
- </div>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement