Subversion Repositories SmartDukaan

Rev

Rev 8021 | Rev 8191 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8021 Rev 8031
Line 126... Line 126...
126
            lineitem.setColor(item.getColor());
126
            lineitem.setColor(item.getColor());
127
        }
127
        }
128
        lineitem.setExtra_info(item.getFeatureDescription());
128
        lineitem.setExtra_info(item.getFeatureDescription());
129
        lineitem.setItem_id(item.getId());
129
        lineitem.setItem_id(item.getId());
130
        lineitem.setQuantity(1.0);
130
        lineitem.setQuantity(1.0);
131
        lineitem.setUnit_price(Double.valueOf(amazonOrderItem.getItemPrice().getAmount()));
131
        lineitem.setUnit_price(Double.parseDouble(amazonOrderItem.getItemPrice().getAmount())/amazonOrderItem.getQuantityOrdered());
132
        lineitem.setTotal_price(Double.valueOf(amazonOrderItem.getItemPrice().getAmount()));
132
        lineitem.setTotal_price(Double.parseDouble(amazonOrderItem.getItemPrice().getAmount())/amazonOrderItem.getQuantityOrdered());
133
        lineitem.setUnit_weight(item.getWeight());
133
        lineitem.setUnit_weight(item.getWeight());
134
        lineitem.setTotal_weight(item.getWeight());
134
        lineitem.setTotal_weight(item.getWeight());
135
        lineitem.setDealText("");
135
        lineitem.setDealText("");
136
        
136
        
137
        if(item.getWarrantyPeriod() > 0) {
137
        if(item.getWarrantyPeriod() > 0) {