Subversion Repositories SmartDukaan

Rev

Rev 33213 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33213 Rev 34143
Line 1... Line 1...
1
package com.spice.profitmandi.common.model;
1
package com.spice.profitmandi.common.model;
2
 
2
 
-
 
3
import java.text.DecimalFormat;
-
 
4
 
3
public class LineItemModel {
5
public class LineItemModel {
4
    private int itemId;
6
    private int itemId;
5
    private String itemName;
7
    private String itemName;
6
    private int itemQuantity;
8
    private int itemQuantity;
7
    private double sellingPrice;
9
    private double sellingPrice;
Line 16... Line 18...
16
    }
18
    }
17
 
19
 
18
    public double getTotalDp() {
20
    public double getTotalDp() {
19
        return itemQuantity * dp;
21
        return itemQuantity * dp;
20
    }
22
    }
-
 
23
    public String getFormattedTotalSellingPrice() {
-
 
24
        return String.format("%, .2f", getTotalSellingPrice());
-
 
25
    }
-
 
26
 
-
 
27
    public String getFormattedDifference() {
-
 
28
        return String.format("%, .2f", getDifference());
-
 
29
    }
-
 
30
    public String getFormattedTotalDp() {
-
 
31
        return String.format("%,.2f", getTotalDp());
-
 
32
    }
21
 
33
 
22
    public int getItemId() {
34
    public int getItemId() {
23
        return itemId;
35
        return itemId;
24
    }
36
    }
25
 
37