| 37622 |
amit |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Transfer price for a billed order, taken from the vendor catalog pricing of the external supplier the billed
|
|
|
5 |
* stock was most recently purchased from.
|
|
|
6 |
*/
|
|
|
7 |
public class BillingPriceModel {
|
|
|
8 |
|
|
|
9 |
/** Price of the stock's external supplier. */
|
|
|
10 |
public static final String SOURCE_EXTERNAL_ORIGIN = "EXTERNAL_ORIGIN";
|
|
|
11 |
/**
|
|
|
12 |
* No external supplier could be traced for the billed stock (or it has no pricing for the catalog), so the
|
|
|
13 |
* latest externally approved price for the catalog is used. Inferred - never recorded as the vendor.
|
|
|
14 |
*/
|
|
|
15 |
public static final String SOURCE_CATALOG_FALLBACK = "CATALOG_FALLBACK";
|
|
|
16 |
|
|
|
17 |
private int orderId;
|
|
|
18 |
/** External supplier of the billed stock, or 0 when it could not be traced. */
|
|
|
19 |
private int originVendorId;
|
|
|
20 |
private float transferPrice;
|
|
|
21 |
private String source;
|
|
|
22 |
|
|
|
23 |
public int getOrderId() {
|
|
|
24 |
return orderId;
|
|
|
25 |
}
|
|
|
26 |
|
|
|
27 |
public void setOrderId(int orderId) {
|
|
|
28 |
this.orderId = orderId;
|
|
|
29 |
}
|
|
|
30 |
|
|
|
31 |
public int getOriginVendorId() {
|
|
|
32 |
return originVendorId;
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
public void setOriginVendorId(int originVendorId) {
|
|
|
36 |
this.originVendorId = originVendorId;
|
|
|
37 |
}
|
|
|
38 |
|
|
|
39 |
public float getTransferPrice() {
|
|
|
40 |
return transferPrice;
|
|
|
41 |
}
|
|
|
42 |
|
|
|
43 |
public void setTransferPrice(float transferPrice) {
|
|
|
44 |
this.transferPrice = transferPrice;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
public String getSource() {
|
|
|
48 |
return source;
|
|
|
49 |
}
|
|
|
50 |
|
|
|
51 |
public void setSource(String source) {
|
|
|
52 |
this.source = source;
|
|
|
53 |
}
|
|
|
54 |
|
|
|
55 |
@Override
|
|
|
56 |
public String toString() {
|
|
|
57 |
return "BillingPriceModel{" +
|
|
|
58 |
"orderId=" + orderId +
|
|
|
59 |
", originVendorId=" + originVendorId +
|
|
|
60 |
", transferPrice=" + transferPrice +
|
|
|
61 |
", source='" + source + '\'' +
|
|
|
62 |
'}';
|
|
|
63 |
}
|
|
|
64 |
}
|