Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 94d587705c |
@@ -24,7 +24,6 @@ import com.unicenta.data.loader.DataRead;
|
||||
import com.unicenta.data.loader.IKeyed;
|
||||
import com.unicenta.data.loader.SerializerRead;
|
||||
|
||||
|
||||
public class VoucherInfo implements IKeyed {
|
||||
private String id;
|
||||
private String voucherNumber;
|
||||
@@ -40,8 +39,7 @@ public class VoucherInfo implements IKeyed {
|
||||
String voucherNumber,
|
||||
String customerName,
|
||||
double amount,
|
||||
String status)
|
||||
{
|
||||
String status) {
|
||||
this.id = id;
|
||||
this.voucherNumber = voucherNumber;
|
||||
this.customerName = customerName;
|
||||
@@ -49,7 +47,6 @@ public class VoucherInfo implements IKeyed {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Object getKey() {
|
||||
return getId();
|
||||
@@ -111,7 +108,6 @@ public class VoucherInfo implements IKeyed {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return voucherNumber;
|
||||
@@ -132,8 +128,7 @@ public class VoucherInfo implements IKeyed {
|
||||
}
|
||||
|
||||
public static SerializerRead getSerializerRead() {
|
||||
return new SerializerRead()
|
||||
{
|
||||
return new SerializerRead() {
|
||||
@Override
|
||||
public Object readValues(DataRead dr) throws BasicException {
|
||||
return new VoucherInfo(
|
||||
@@ -142,6 +137,7 @@ public class VoucherInfo implements IKeyed {
|
||||
dr.getString(3),
|
||||
dr.getDouble(4),
|
||||
dr.getString(5));
|
||||
}};
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user