A
Anonymous

Container - Copy this React, Tailwind Component to your project

Impact of Refund on Affiliate Commissions As an admin, I want to ensure that refunds impact affiliate commissions accurately, So that the affiliate marketing platform maintains financial integrity. Acceptance Criteria: 1. Given a customer requests a refund for a product purchased through an affiliate link, When the refund is processed, Then the system should automatically reverse the commission associated with the refunded purchase. 2. Given the affiliate has already been paid for the sale, When the refund is processed, Then the system should deduct the refunded amount from the affiliate’s future earnings or generate a negative balance if no future earnings exist. 3. Given the affiliate views their "Marketing Status Dashboard," When a refund impacts their earnings, Then the system should display the refund details, including the product, date, amount refunded, and the impact on their commission. 4. Given the admin views the "Refund Management" tab, When a refund is processed, Then the system should display the associated affiliate, the original commission, and the adjustment made due to the refund. 5. Given a refund is initiated after the payment process has been triggered, When the system calculates the next payout, Then it should automatically account for any commissions that need to be reversed due to refunds. 6. Given multiple refunds impact an affiliate's earnings, When the admin views the affiliate’s payment history, Then the system should display the total amount of commissions reversed and any outstanding balance or deductions to be made from future payments. 7. Given the affiliate has a negative balance due to refunds, When the next sale is made, Then the system should first clear the negative balance before crediting new commissions to the affiliate. write entire code for this assingmnet using react write only fronted part use dummy data to dispaly the data regarding the description is there any form is writing use react form pakage and use react tostify for error handling and write the best styles in a seperate file styled components and use react icons for any icons and write the entire code with file structure mannual dont skip any logic or any file add all the logic and write the code

Prompt
Component Preview

About

Container - Manage affiliate commissions with accurate refund impacts, display detailed earnings, and adjustments. Built with React an. View and copy code!

Share

Last updated 1 month ago