If i would like to perform/display the cancellation charges on screen with help of deducting the Total Refunded Amount from the Total Paid amount .In this article we will see how can we perform this in simple steps while using the LWC data table.
import { LightningElement, api, track, wire } from "lwc"; import fetchActivities from "@salesforce/apex/CancelFlowCntrl.fetchCanActivities"; const columns = [ { label: 'ticketvalue', fieldName: 'totalTicketvalue' }, { label: 'refundedAmount', fieldName: 'totalRefundedAmount' }, { label: 'cancellationCharges', fieldName: 'totCancellationCharges' }, ]; export default class ActivitiesFlow extends LightningElement { @track allActivitiesData; @wire(fetchActivities, { recdId: '$sfrecordId' }) wiredActivities({ error, data }) { if (data) { this.allActivitiesData = data.map( record => Object.assign( { "totalTicketvalue": record.apiResptotalTicketvalue, "totalRefundedAmount": record.apiResptotalRefundedAmount, "totCancellationCharges": record.apiResptotalTicketvalue-record.apiResptotalRefundedAmount },record ) ); } else if (error) { this.error = error; this.allActivitiesData = undefined; } } }
Please comment or write us if you have any queries/requirements.
Please like,follow,bookmark,subscribe this site to receive daily updates.
LinkedIn Group - Srinivas4sfdc (I Love Coding... You?)
FaceBook Page - I Love Coding. You?
Please comment or write us if you have any queries/requirements.
Please like,follow,bookmark,subscribe this site to receive daily updates.
LinkedIn Group - Srinivas4sfdc (I Love Coding... You?)
FaceBook Page - I Love Coding. You?
036FB2BA46
ReplyDeletesms onay
Gerçek Takipçi
Kredi Danışmanlık Şirketleri
Yabancı Numara Al
Aşk Acısı İnsana Zarar Verir mi
8CF0CD07BF
ReplyDeleteTakipçi Satın Al
Ücretsiz Beğeni
Dizi Önerileri
BB3B15EB
ReplyDeleteForum
Forum
Forum
Forum
Forum
Forum
Forum
Forum
Forum
2470DAD6
ReplyDeleteOrtaköy
Bala
Pamukova
Datça
Sarıçam
Altınova
Çorlu
Akdeniz
Cide
482D8C6A
ReplyDeleteErdek
Dinar
Bafra
Akyurt
Kuşadası
Midyat
Gaziemir
Şehitkamil
Fethiye