Details
Description
Extend OrderAdjustment entity and add isManual field to recognize manually added order adjustment.
As per current implementation code using orderAdjustment.comments field to recognize manually added comment using string "Added manually by"
if ( adjustment.get("comments") != null && ((String)adjustment.get("comments")).startsWith("Added manually by")) { cart.addAdjustment(adjustment); }