54 lines
1.3 KiB
Java
54 lines
1.3 KiB
Java
package de.antco.projekt.model;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.time.LocalDateTime;
|
|
import java.util.List;
|
|
|
|
public class WorkOrderDetails {
|
|
private final int orderId;
|
|
private final String personName;
|
|
private final String vehicleText;
|
|
private final LocalDateTime createdAt;
|
|
private final String note;
|
|
private final List<WorkOrderItem> items;
|
|
private final BigDecimal total;
|
|
|
|
public WorkOrderDetails(int orderId, String personName, String vehicleText,
|
|
LocalDateTime createdAt, String note, List<WorkOrderItem> items, BigDecimal total) {
|
|
this.orderId = orderId;
|
|
this.personName = personName;
|
|
this.vehicleText = vehicleText;
|
|
this.createdAt = createdAt;
|
|
this.note = note;
|
|
this.items = items;
|
|
this.total = total;
|
|
}
|
|
|
|
public int getOrderId() {
|
|
return orderId;
|
|
}
|
|
|
|
public String getPersonName() {
|
|
return personName;
|
|
}
|
|
|
|
public String getVehicleText() {
|
|
return vehicleText;
|
|
}
|
|
|
|
public LocalDateTime getCreatedAt() {
|
|
return createdAt;
|
|
}
|
|
|
|
public String getNote() {
|
|
return note;
|
|
}
|
|
|
|
public List<WorkOrderItem> getItems() {
|
|
return items;
|
|
}
|
|
|
|
public BigDecimal getTotal() {
|
|
return total;
|
|
}
|
|
}
|