[jira] [Commented] (OFBIZ-7078) Extend OrderAdjustment entity and add isManual field

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-7078) Extend OrderAdjustment entity and add isManual field

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-7078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299731#comment-15299731 ]

Deepak Dixit commented on OFBIZ-7078:
-------------------------------------

Thanks Ashish and Jacques for your input.
This has been backported at
15.12 at r#1745460
14.12 at r#1745462
13.07 at r#1745463

> Extend OrderAdjustment entity and add isManual field
> ----------------------------------------------------
>
>                 Key: OFBIZ-7078
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7078
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Deepak Dixit
>            Assignee: Deepak Dixit
>             Fix For: 14.12.01, 15.12.01, 13.07.04
>
>         Attachments: OFBIZ-7078.patch
>
>
> 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"
> {code}
>                         if ( adjustment.get("comments") != null
>                                 && ((String)adjustment.get("comments")).startsWith("Added manually by")) {
>                             cart.addAdjustment(adjustment);
>                         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)