Hello Krishna,
Thank you for the detailed analysis!
-How are you preventing the discount from showing up on the 2nd order? You may have to fix something in the routine (you probably already checked this)
This is happening from the condition record- Maximum number of orders in item details of condition record- I set it as 1, hence it pulls the ZXXX condition only in the 1st order and not the 2nd one.
-Can you check what the condition category/ condition class is of your ZXXX discount condition?
Condition category for ZXXX is Blank
Condition Class is A- Discount or surcharge
I looked at the note, It doesn't seem to fit my scenario as my condition category is blank.
Do you think my condition category should not be blank?