Search in sources :

Example 1 with Entity

use of com.storedobject.core.Entity in project SODevelopment by syampillai.

the class Remove method process.

@Override
protected boolean process() {
    InventoryLocation from = locationFromField.getValue();
    int action = actionField.getValue();
    Entity entity = null;
    if (RemoveItems.requiresEntity(action)) {
        entity = orgField.getObject();
        if (entity == null) {
            warning("Please select organization");
            return false;
        }
    }
    close();
    new RemoveItems(from, action, entity, dateField.getValue()).execute();
    return true;
}
Also used : Entity(com.storedobject.core.Entity) InventoryLocation(com.storedobject.core.InventoryLocation)

Aggregations

Entity (com.storedobject.core.Entity)1 InventoryLocation (com.storedobject.core.InventoryLocation)1