public boolean isLastInvoice(){
  String cm=getCostingMethod();
  return cm != null && cm.equals(COSTINGMETHOD_LastInvoice) && COSTELEMENTTYPE_Material.equals(getCostElementType());
}

public boolean isLastInvoice ( ) { String cm = getCostingMethod ( ) ; return cm != null && cm . equals ( COSTINGMETHOD_LastInvoice ) && COSTELEMENTTYPE_Material . equals ( getCostElementType ( ) ) ; }
is last invoice costing method
