You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Deepak Dixit (JIRA)" <ji...@apache.org> on 2016/05/20 06:52:12 UTC

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

     [ https://issues.apache.org/jira/browse/OFBIZ-7078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Deepak Dixit updated OFBIZ-7078:
--------------------------------
    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"

{code}
                        if ( adjustment.get("comments") != null
                                && ((String)adjustment.get("comments")).startsWith("Added manually by")) {
                            cart.addAdjustment(adjustment);
                        }
{code}

  was:
Extend OrderAdjustment entity and add isManual field to recognize if manually added order adjustment.   

As per current implementation code using orderAdjustment.comments 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}


> 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
>
> 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)