Hi!
I want to add new lineItem to the cart via Trigger extension.
The Idea is, I want to provide extra Donation on Payment device, which comes back as overpayment to the check so before closing this check I want to adjust the extra donation as new Line item on the check.
Is it possible with Dynamics 365 Commerce POS API?
I have TS code as below extending PreEndTransactionTrigger
export default class AddDonationPreEndTransactionTrigger extends Triggers.PreEndTransactionTrigger {
Thanks!
Navneet