EALoyalityEarnReward
This document was generated using Claude.ai
Overview
Processes customer loyalty reward points earning for invoice transactions, calculating and awarding points based on purchase amounts while handling returns and external system integration.
When This Action Runs
Loyalty point processing for invoices after completion or approval to award reward points to customers.
How It Works
- Validates invoice and configuration ensuring proper loyalty setup and earning policy
- Identifies points owner and verifies required contact information (mobile number)
- Calculates reward-eligible amount after discount adjustments and coupon deductions
- Processes points earning/updates including return deductions and external system communication
- Creates reward entries in loyalty system with transaction tracking
Parameters
Parameter 1: Reward Points Config (Required) - Code of RewardPointsConfig entity defining earning rules (e.g., STANDARD_LOYALTY, VIP_REWARDS, STC_LOYALTY_CONFIG)
Database Tables Affected
- STCLoyaltyPointsRewardEntry - Creates/updates reward point entries with transaction history
- RewardPointsConfig - Reads earning rules, thresholds, and external system settings
- Invoice and Related Tables - Accesses invoice data, customer info, and payment lines
- External System Records - May create API transaction records and error tracking
Module: core
Full Class Name: com.namasoft.infor.domainbase.util.actions.EALoyalityEarnReward