| 37696 |
amit |
1 |
package com.spice.profitmandi.dao.model;
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* One open movement order that has already spoken for stock standing in a warehouse.
|
|
|
5 |
*
|
|
|
6 |
* <p>Stock promised on an order that has not yet been dispatched is not offered again, so an order raised months ago
|
|
|
7 |
* and never completed quietly reduces what can move today. Naming the order and its date lets whoever is building a
|
|
|
8 |
* new order see what is holding the stock and chase it, rather than only being told a smaller number.
|
|
|
9 |
*/
|
|
|
10 |
public class MovementCommitmentModel {
|
|
|
11 |
|
|
|
12 |
private int itemId;
|
|
|
13 |
private int poId;
|
|
|
14 |
private String poNumber;
|
|
|
15 |
/** PO date, preformatted for display - the order is identified to people by number and date, not by id. */
|
|
|
16 |
private String poDate;
|
| 37722 |
amit |
17 |
/** The other end of the order: where promised stock is going, or, for stock arriving, the supplier sending it. */
|
| 37696 |
amit |
18 |
private String destination;
|
|
|
19 |
private int qty;
|
|
|
20 |
|
|
|
21 |
public int getItemId() {
|
|
|
22 |
return itemId;
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
public void setItemId(int itemId) {
|
|
|
26 |
this.itemId = itemId;
|
|
|
27 |
}
|
|
|
28 |
|
|
|
29 |
public int getPoId() {
|
|
|
30 |
return poId;
|
|
|
31 |
}
|
|
|
32 |
|
|
|
33 |
public void setPoId(int poId) {
|
|
|
34 |
this.poId = poId;
|
|
|
35 |
}
|
|
|
36 |
|
|
|
37 |
public String getPoNumber() {
|
|
|
38 |
return poNumber;
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public void setPoNumber(String poNumber) {
|
|
|
42 |
this.poNumber = poNumber;
|
|
|
43 |
}
|
|
|
44 |
|
|
|
45 |
public String getPoDate() {
|
|
|
46 |
return poDate;
|
|
|
47 |
}
|
|
|
48 |
|
|
|
49 |
public void setPoDate(String poDate) {
|
|
|
50 |
this.poDate = poDate;
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
public String getDestination() {
|
|
|
54 |
return destination;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public void setDestination(String destination) {
|
|
|
58 |
this.destination = destination;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public int getQty() {
|
|
|
62 |
return qty;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public void setQty(int qty) {
|
|
|
66 |
this.qty = qty;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
@Override
|
|
|
70 |
public String toString() {
|
|
|
71 |
return "MovementCommitmentModel [itemId=" + itemId + ", poId=" + poId + ", poNumber=" + poNumber + ", poDate=" + poDate
|
|
|
72 |
+ ", destination=" + destination + ", qty=" + qty + "]";
|
|
|
73 |
}
|
|
|
74 |
}
|