19 package org.turro.erp.clone;
21 import java.util.Collection;
22 import java.util.HashSet;
23 import org.turro.clone.ClonedEntity;
24 import org.turro.clone.ClonedEntitySet;
25 import org.turro.erp.entity.OrderReference;
26 import org.turro.erp.entity.Task;
27 import org.turro.hierarchy.Hierarchical;
36 private String description;
37 private long productId;
39 private boolean noFraction;
40 private double quantity, price, tax, retention, old_units;
41 private long serviceId;
42 private HashSet<TaskClone> tasks =
new HashSet<TaskClone>();
45 super(orderReference.
getId(), orderReference, entities);
52 tax = orderReference.
getTax();
56 if(task.getId() > 0) {
59 tasks.add((
TaskClone) entities.addClonedEntity(t));
66 this.workOrder = workOrder;
71 (units == 0.0 || old_units == 0.0d) ?
72 1 : units / old_units;
75 ru.setUnitRatio(ratio);
85 taskClone.generateClone();
86 Task task = taskClone.getClone();
90 return orderReference;
109 taskClone.applyChanges();
116 taskClone.assignEntities();
void setWorkOrder(WorkOrderClone workOrder)
void applyData(OrderReference entity)
OrderReferenceClone(OrderReference orderReference, ClonedEntitySet entities)
OrderReference createClone()
void applyChildren(OrderReference entity)
void setUnits(double units)
void setOrderReference(OrderReferenceClone orderReference)
void setRetention(double retention)
void setQuantity(double quantity)
void setPrice(double price)
void setNoFraction(boolean noFraction)
void setServiceId(long serviceId)
void setDescription(String description)
SortedSet< Task > getTasks()
void setProductId(long productId)
void setOrderRef(int orderRef)
void setOrderReference(OrderReference orderReference)