Task Description
When an invoice is generated in NetSuite with a status of “PAID IN FULL” or a Cash Sale is generated with a status of “Deposited and Not Deposited,” and the “Initiate Reward” checkbox is checked, the system will assess eligibility for rewards based on the customer’s membership tier and reward level and if a Sales Order status is “Pending Fulfilment” and the “Reward Redeem Order” checkbox is selected, a discount will be applied to the Sales order at the body level, if the customer has earned reward. The Total Purchase Amount of the Customer was derived from the total amount of all invoices and cash sales, excluding refunds, considering only transactions from the current year. The reward amount was calculated for the “Total purchase amount”. Also the reward membership tier is fetched from the customer record. The reward level will be determined based on the customer’s Total Purchase Amount and manually provided reward level. If the Purchase amount was in the Silver and the manual reward level setup was Gold, then the highest reward level (Gold) will take for the reward calculation. Child customer reward points will be applied to the parent customer. Parent customer reward points should only applied to the parent.