◆ OrderReferenceClone()
org.turro.erp.clone.OrderReferenceClone.OrderReferenceClone |
( |
OrderReference |
orderReference, |
|
|
ClonedEntitySet |
entities |
|
) |
| |
Definition at line 44 of file OrderReferenceClone.java.
45 super(orderReference.getId(), orderReference, entities);
46 description = orderReference.getDescription();
47 productId = orderReference.getProductId();
48 orderRef = orderReference.getOrderRef();
49 noFraction = orderReference.isNoFraction();
50 quantity = orderReference.getQuantity();
51 price = orderReference.getPrice();
52 tax = orderReference.getTax();
53 retention = orderReference.getRetention();
54 serviceId = orderReference.getServiceId();
55 for(Task task : orderReference.getTasks()) {
56 if(task.getId() > 0) {
57 TaskClone t =
new TaskClone(task, entities);
58 t.setOrderReference(
this);
59 tasks.add((TaskClone) entities.addClonedEntity(t));
◆ applyChildren()
void org.turro.erp.clone.OrderReferenceClone.applyChildren |
( |
OrderReference |
entity | ) |
|
|
protected |
◆ applyData()
void org.turro.erp.clone.OrderReferenceClone.applyData |
( |
OrderReference |
entity | ) |
|
|
protected |
Definition at line 94 of file OrderReferenceClone.java.
95 entity.setDescription(description);
96 entity.setProductId(productId);
97 entity.setOrderRef(orderRef);
98 entity.setNoFraction(noFraction);
99 entity.setQuantity(quantity);
100 entity.setPrice(price);
102 entity.setRetention(retention);
103 entity.setServiceId(serviceId);
◆ assignEntities()
void org.turro.erp.clone.OrderReferenceClone.assignEntities |
( |
| ) |
|
|
protected |
◆ children()
Collection org.turro.erp.clone.OrderReferenceClone.children |
( |
| ) |
|
◆ createClone()
OrderReference org.turro.erp.clone.OrderReferenceClone.createClone |
( |
| ) |
|
|
protected |
Definition at line 81 of file OrderReferenceClone.java.
82 OrderReference orderReference =
new OrderReference();
84 for(TaskClone taskClone : tasks) {
85 taskClone.generateClone();
86 Task task = taskClone.getClone();
87 task.setOrderReference(orderReference);
88 orderReference.getTasks().add(task);
90 return orderReference;
void applyData(OrderReference entity)
◆ parent()
Object org.turro.erp.clone.OrderReferenceClone.parent |
( |
| ) |
|
◆ setUnits()
void org.turro.erp.clone.OrderReferenceClone.setUnits |
( |
double |
units | ) |
|
Definition at line 69 of file OrderReferenceClone.java.
71 (units == 0.0 || old_units == 0.0d) ?
72 1 : units / old_units;
74 for(RequiredUsageClone ru : ((TaskClone) t).getRequiredUsages()) {
75 ru.setUnitRatio(ratio);
◆ setWorkOrder()
void org.turro.erp.clone.OrderReferenceClone.setWorkOrder |
( |
WorkOrderClone |
workOrder | ) |
|
The documentation for this class was generated from the following file: