String classification = this.getProperty("classification");
String so_number = this.getProperty("sop_order_no");
String seq_number = so_number.Substring(so_number.Length - 5, 5);
if (classification == "EQUIPMENT") {
Item myItem = this.newItem("Sequence", "edit");
myItem.setAttribute("where",
"[Sequence].name='sop_sale_order_equipment'");
myItem.setProperty("current_value", seq_number);
myItem.apply();
}
if (classification == "SERVICE") {
Item myItem = this.newItem("Sequence", "edit");
myItem.setAttribute("where",
"[Sequence].name='sop_sale_order_service'");
myItem.setProperty("current_value", seq_number);
myItem.apply();
}
return this;