publisher.create(p);
publisher.refresh(p);
}
}
Supplier s = new Supplier();
if(!fSupplier.getValue().isEmpty()) {
s.getByName(conn, supplier,
fSupplier.getValue());
Integer supplier_id = s.getId();
if(supplier_id != 0 && supplier_id != null) {
if(!s.getName().equalsIgnoreCase(fSupplier.getValue())) {
supplier.update(s);
supplier.refresh(s);
}
} else {
s = new Supplier(fSupplier.getValue());
supplier.create(s);
supplier.refresh(s);
}
}